diff --git a/registry/storage/driver/s3-aws/s3_test.go b/registry/storage/driver/s3-aws/s3_test.go index cff8b1be9..08792f7f2 100644 --- a/registry/storage/driver/s3-aws/s3_test.go +++ b/registry/storage/driver/s3-aws/s3_test.go @@ -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)