Skip to content

Commit

Permalink
fix binding for aws-secret-key env-var
Browse files Browse the repository at this point in the history
  • Loading branch information
Karsten Kraus authored and Karsten Kraus committed Sep 15, 2023
1 parent e429c0b commit 91bc49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/app/vault_raft_snapshot_agent/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestReadConfigBindsEnvVariables(t *testing.T) {

t.Setenv("VAULT_ADDR", "http://from.env:8200")
t.Setenv("AWS_ACCESS_KEY_ID", "env-key")
t.Setenv("SECRET_ACCESS_KEY", "env-secret")
t.Setenv("AWS_SECRET_ACCESS_KEY", "env-secret")
t.Setenv("TEST_VAULT_TEST", "test")


Expand All @@ -45,7 +45,7 @@ func TestReadConfigBindsEnvVariables(t *testing.T) {

assert.Equal(t, os.Getenv("VAULT_ADDR"), data.Vault.Url, "ReadConfig did not bind env-var VAULT_ADDR")
assert.Equal(t, os.Getenv("AWS_ACCESS_KEY_ID"), data.Uploaders.AWS.Credentials.Key, "ReadConfig did not bind env-var AWS_ACCESS_KEY_ID")
assert.Equal(t, os.Getenv("SECRET_ACCESS_KEY"), data.Uploaders.AWS.Credentials.Secret, "ReadConfig did not bind env-var SECRET_ACCESS_KEY")
assert.Equal(t, os.Getenv("AWS_SECRET_ACCESS_KEY"), data.Uploaders.AWS.Credentials.Secret, "ReadConfig did not bind env-var SECRET_ACCESS_KEY")
assert.Equal(t, os.Getenv("TEST_VAULT_TEST"), data.Vault.Test, "ReadConfig did not bind env-var TEST_VAULT_TEST")
}

Expand Down

0 comments on commit 91bc49c

Please sign in to comment.