Browse Source

Configure weed to use s3_kms.json for SSE-KMS tests; set OpenBao env vars

feature/modernize-s3-tests
Chris Lu 2 months ago
parent
commit
d0d2b021d9
  1. 8
      test/s3/sse/s3_test_main_test.go

8
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 {

Loading…
Cancel
Save