Rename skip verify env
This commit is contained in:
parent
7c180fb6fd
commit
ce5786d133
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue