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:
James Hewitt 2022-08-12 16:06:03 +01:00
parent 6ceb904c3e
commit f7bdd9127b
No known key found for this signature in database
GPG key ID: EA6C3C654B6193E4

View file

@ -213,6 +213,11 @@ func TestStorageClass(t *testing.T) {
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)
if err != nil {
t.Fatalf("unexpected error creating content with storage class %v: %v", storageClass, err)