From 7686bdc294654baea0d0e4ed538b9cb9ec0b8ad6 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Thu, 2 Nov 2023 23:14:13 -0700 Subject: [PATCH] fix: fix broken build For some reason a PR we merged passed the build even though it was missing various func parameters. This commmit fixes it. Signed-off-by: Milos Gajdos --- registry/storage/driver/gcs/gcs_test.go | 2 +- registry/storage/driver/middleware/cloudfront/s3filter_test.go | 1 + registry/storage/driver/middleware/redirect/middleware.go | 1 + registry/storage/driver/middleware/redirect/middleware_test.go | 1 + registry/storage/driver/s3-aws/s3_test.go | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/registry/storage/driver/gcs/gcs_test.go b/registry/storage/driver/gcs/gcs_test.go index a76015d0..bfb21c3a 100644 --- a/registry/storage/driver/gcs/gcs_test.go +++ b/registry/storage/driver/gcs/gcs_test.go @@ -94,7 +94,7 @@ func init() { maxConcurrency: 8, } - return New(parameters) + return New(context.Background(), parameters) } testsuites.RegisterSuite(func() (storagedriver.StorageDriver, error) { diff --git a/registry/storage/driver/middleware/cloudfront/s3filter_test.go b/registry/storage/driver/middleware/cloudfront/s3filter_test.go index 7c55c635..bd789ed1 100644 --- a/registry/storage/driver/middleware/cloudfront/s3filter_test.go +++ b/registry/storage/driver/middleware/cloudfront/s3filter_test.go @@ -1,6 +1,7 @@ package middleware import ( + "context" "crypto/rand" "encoding/json" "fmt" diff --git a/registry/storage/driver/middleware/redirect/middleware.go b/registry/storage/driver/middleware/redirect/middleware.go index e4b0663b..3b1e4a30 100644 --- a/registry/storage/driver/middleware/redirect/middleware.go +++ b/registry/storage/driver/middleware/redirect/middleware.go @@ -1,6 +1,7 @@ package middleware import ( + "context" "fmt" "net/http" "net/url" diff --git a/registry/storage/driver/middleware/redirect/middleware_test.go b/registry/storage/driver/middleware/redirect/middleware_test.go index 7be383f5..7b7c0619 100644 --- a/registry/storage/driver/middleware/redirect/middleware_test.go +++ b/registry/storage/driver/middleware/redirect/middleware_test.go @@ -1,6 +1,7 @@ package middleware import ( + "context" "testing" "gopkg.in/check.v1" diff --git a/registry/storage/driver/s3-aws/s3_test.go b/registry/storage/driver/s3-aws/s3_test.go index 35af9249..5568ac86 100644 --- a/registry/storage/driver/s3-aws/s3_test.go +++ b/registry/storage/driver/s3-aws/s3_test.go @@ -2,6 +2,7 @@ package s3 import ( "bytes" + "context" "crypto/rand" "errors" "fmt"