Rename skip verify env

This commit is contained in:
Mitchell Hashimoto 2015-05-11 11:27:20 -07:00
parent 7c180fb6fd
commit ce5786d133
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ import (
const EnvVaultAddress = "VAULT_ADDR" const EnvVaultAddress = "VAULT_ADDR"
const EnvVaultCACert = "VAULT_CACERT" const EnvVaultCACert = "VAULT_CACERT"
const EnvVaultCAPath = "VAULT_CAPATH" 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 // FlagSetFlags is an enum to define what flags are present in the
// default FlagSet returned by Meta.FlagSet. // default FlagSet returned by Meta.FlagSet.

View File

@ -44,10 +44,10 @@ func TestFlagSet(t *testing.T) {
func TestEnvSettings(t *testing.T) { func TestEnvSettings(t *testing.T) {
os.Setenv("VAULT_CACERT", "/path/to/fake/cert.crt") os.Setenv("VAULT_CACERT", "/path/to/fake/cert.crt")
os.Setenv("VAULT_CAPATH", "/path/to/fake/certs") 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_CACERT", "")
defer os.Setenv("VAULT_CAPATH", "") defer os.Setenv("VAULT_CAPATH", "")
defer os.Setenv("VAULT_INSECURE", "") defer os.Setenv("VAULT_SKIP_VERIFY", "")
var m Meta var m Meta
// Err is ignored as it is expected that the test settings // Err is ignored as it is expected that the test settings