feat(storage): support signed read options and local byte ranges
This commit is contained in:
@@ -84,7 +84,9 @@ func TestS3Integration(t *testing.T) {
|
||||
if !ready {
|
||||
t.Fatal("isolated S3 server did not start")
|
||||
}
|
||||
client, err := minio.New(address, &minio.Options{Creds: credentials.NewStaticV4("goOmniTest", "goOmniTestSecret", ""), Region: "us-east-1"})
|
||||
// The contract deliberately sends malformed bodies. Avoid retry backoff
|
||||
// exhausting its deadline; these are expected failures, not network retries.
|
||||
client, err := minio.New(address, &minio.Options{Creds: credentials.NewStaticV4("goOmniTest", "goOmniTestSecret", ""), Region: "us-east-1", MaxRetries: 1})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -114,6 +116,7 @@ func TestS3Integration(t *testing.T) {
|
||||
}
|
||||
}
|
||||
s, _ := New(client, bucket, 64)
|
||||
checkReadOptionsIntegration(t, s)
|
||||
storagetest.Run(t, s)
|
||||
s.Put(ctx, "signed", strings.NewReader("hello"), 5, "text/plain")
|
||||
defer s.Delete(context.Background(), "signed")
|
||||
|
||||
Reference in New Issue
Block a user