From ce5786d13344d82a42a92ca44d261fbde8cbe945 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 11 May 2015 11:27:20 -0700 Subject: [PATCH] Rename skip verify env --- command/meta.go | 2 +- command/meta_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/command/meta.go b/command/meta.go index 5529c3211..96f53f1f5 100644 --- a/command/meta.go +++ b/command/meta.go @@ -25,7 +25,7 @@ import ( const EnvVaultAddress = "VAULT_ADDR" const EnvVaultCACert = "VAULT_CACERT" const EnvVaultCAPath = "VAULT_CAPATH" -const EnvVaultInsecure = "VAULT_INSECURE" +const EnvVaultInsecure = "VAULT_SKIP_VERIFY" // FlagSetFlags is an enum to define what flags are present in the // default FlagSet returned by Meta.FlagSet. diff --git a/command/meta_test.go b/command/meta_test.go index 1d72a8bef..e80a41c0a 100644 --- a/command/meta_test.go +++ b/command/meta_test.go @@ -44,10 +44,10 @@ func TestFlagSet(t *testing.T) { func TestEnvSettings(t *testing.T) { os.Setenv("VAULT_CACERT", "/path/to/fake/cert.crt") os.Setenv("VAULT_CAPATH", "/path/to/fake/certs") - os.Setenv("VAULT_INSECURE", "true") + os.Setenv("VAULT_SKIP_VERIFY", "true") defer os.Setenv("VAULT_CACERT", "") defer os.Setenv("VAULT_CAPATH", "") - defer os.Setenv("VAULT_INSECURE", "") + defer os.Setenv("VAULT_SKIP_VERIFY", "") var m Meta // Err is ignored as it is expected that the test settings