forked from TrueCloudLab/distribution
Don't test the OUTPOSTS storage class
This test will only work on an s3 bucket on an s3 outpost. Most developers won't have access to one of these. Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
This commit is contained in:
parent
6ceb904c3e
commit
f7bdd9127b
1 changed files with 5 additions and 0 deletions
|
@ -213,6 +213,11 @@ func TestStorageClass(t *testing.T) {
|
||||||
t.Fatalf("unexpected error creating driver with storage class %v: %v", storageClass, err)
|
t.Fatalf("unexpected error creating driver with storage class %v: %v", storageClass, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Can only test outposts if using s3 outposts
|
||||||
|
if storageClass == s3.StorageClassOutposts {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
err = s3Driver.PutContent(ctx, filename, contents)
|
err = s3Driver.PutContent(ctx, filename, contents)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unexpected error creating content with storage class %v: %v", storageClass, err)
|
t.Fatalf("unexpected error creating content with storage class %v: %v", storageClass, err)
|
||||||
|
|
Loading…
Reference in a new issue