From f59e54ffe5c66ebf8935b07667369ff58c55b0aa Mon Sep 17 00:00:00 2001 From: Janos <86970079+janosdebugs@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:14:53 +0200 Subject: [PATCH] Bugfixes Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com> --- backend/internal/factory/factory.go | 2 +- backend/internal/indexstorage/s3storage/direct_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/internal/factory/factory.go b/backend/internal/factory/factory.go index 5193a1c6..f2220235 100644 --- a/backend/internal/factory/factory.go +++ b/backend/internal/factory/factory.go @@ -109,7 +109,7 @@ func getBackend(ctx context.Context, log logger.Logger, registryDir string, work backingStorage, err = s3storage.New( ctx, s3storage.WithBucket(s3Params.Bucket), - //s3storage.WithRegion(s3Params.Region), + s3storage.WithRegion(s3Params.Region), s3storage.WithEndpoint(s3Params.Endpoint), s3storage.WithTLSConfig(&tls.Config{ RootCAs: tlsPool, diff --git a/backend/internal/indexstorage/s3storage/direct_test.go b/backend/internal/indexstorage/s3storage/direct_test.go index ccc055a4..7e8a8acb 100644 --- a/backend/internal/indexstorage/s3storage/direct_test.go +++ b/backend/internal/indexstorage/s3storage/direct_test.go @@ -1,6 +1,7 @@ package s3storage_test import ( + "context" "crypto/tls" "crypto/x509" "os" @@ -20,6 +21,7 @@ func TestDirect(t *testing.T) { certPool := x509.NewCertPool() certPool.AppendCertsFromPEM(aws.CACert()) storage := tofutestutils.Must2(s3storage.New( + context.Background(), s3storage.WithBucket(aws.S3Bucket()), s3storage.WithAccessKey(aws.AccessKey()), s3storage.WithSecretKey(aws.SecretKey()),