mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Use VAULT_ADDR instead
This commit is contained in:
@@ -13,13 +13,13 @@ import (
|
||||
|
||||
func init() {
|
||||
// Ensure our special envvars are not present
|
||||
os.Setenv("VAULT_HTTP_ADDR", "")
|
||||
os.Setenv("VAULT_ADDR", "")
|
||||
os.Setenv("VAULT_TOKEN", "")
|
||||
}
|
||||
|
||||
func TestDefaultConfig_envvar(t *testing.T) {
|
||||
os.Setenv("VAULT_HTTP_ADDR", "https://vault.mycompany.com")
|
||||
defer os.Setenv("VAULT_HTTP_ADDR", "")
|
||||
os.Setenv("VAULT_ADDR", "https://vault.mycompany.com")
|
||||
defer os.Setenv("VAULT_ADDR", "")
|
||||
|
||||
config := DefaultConfig()
|
||||
if config.Address != "https://vault.mycompany.com" {
|
||||
|
||||
Reference in New Issue
Block a user