зеркало из https://github.com/getsops/sops.git
Fix tests
This commit is contained in:
Родитель
7ae19681ee
Коммит
285f4dc8a1
|
@ -372,9 +372,9 @@ func TestLoadConfigFileWithVaultDestinationRules(t *testing.T) {
|
|||
conf, err := parseDestinationRuleForFile(parseConfigFile(sampleConfigWithVaultDestinationRules, t), "vault-v2/barfoo", nil)
|
||||
assert.Nil(t, err)
|
||||
assert.NotNil(t, conf.Destination)
|
||||
assert.Equal(t, "http://127.0.0.1:8200/v1/secret/data/foobar/barfoo", conf.Destination.Path("barfoo"))
|
||||
assert.Equal(t, "https://127.0.0.1:8200/v1/secret/data/foobar/barfoo", conf.Destination.Path("barfoo"))
|
||||
conf, err = parseDestinationRuleForFile(parseConfigFile(sampleConfigWithVaultDestinationRules, t), "vault-v1/barfoo", nil)
|
||||
assert.Nil(t, err)
|
||||
assert.NotNil(t, conf.Destination)
|
||||
assert.Equal(t, "http://127.0.0.1:8200/v1/kv/barfoo/barfoo", conf.Destination.Path("barfoo"))
|
||||
assert.Equal(t, "https://127.0.0.1:8200/v1/kv/barfoo/barfoo", conf.Destination.Path("barfoo"))
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче