From f7bdd9127bc0afc71d7cc0facd440d8c81276232 Mon Sep 17 00:00:00 2001 From: James Hewitt Date: Fri, 12 Aug 2022 16:06:03 +0100 Subject: [PATCH] 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 --- registry/storage/driver/s3-aws/s3_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/registry/storage/driver/s3-aws/s3_test.go b/registry/storage/driver/s3-aws/s3_test.go index cff8b1be..08792f7f 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)