Use VAULT_ADDR instead

This commit is contained in:
Seth Vargo
2015-04-23 11:46:22 -04:00
parent b3cc97d71f
commit 25962851ba
2 changed files with 5 additions and 5 deletions

View File

@@ -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" {