From d0d2b021d9f742bf0112728988e733889c914c43 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 24 Dec 2025 20:04:41 -0800 Subject: [PATCH] Configure weed to use s3_kms.json for SSE-KMS tests; set OpenBao env vars --- test/s3/sse/s3_test_main_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/s3/sse/s3_test_main_test.go b/test/s3/sse/s3_test_main_test.go index e5f99701d..a2d317655 100644 --- a/test/s3/sse/s3_test_main_test.go +++ b/test/s3/sse/s3_test_main_test.go @@ -24,6 +24,14 @@ func TestMain(m *testing.M) { config.AccessKey = "some_access_key1" config.SecretKey = "some_secret_key1" + // If running KMS tests, point the server at the KMS-aware S3 config + // located in this directory (s3_kms.json). + config.S3Config = "s3_kms.json" + + // Ensure OpenBao env vars are available for any helper scripts + os.Setenv("OPENBAO_ADDR", "http://127.0.0.1:8200") + os.Setenv("OPENBAO_TOKEN", "root-token-for-testing") + var err error testServer, err = testutil.StartServer(config) if err != nil {