mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Fix tests
This commit is contained in:
@@ -196,8 +196,8 @@ func TestSecretsEnableCommand_Run(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for _, p := range plugins {
|
||||
if p.IsDir() && strings.HasPrefix(p.Name(), "vault-plugin-") && !strings.HasPrefix(p.Name(), "vault-plugin-auth-") {
|
||||
backends = append(backends, strings.TrimPrefix(p.Name(), "vault-plugin-"))
|
||||
if p.IsDir() && strings.HasPrefix(p.Name(), "vault-plugin-secrets-") {
|
||||
backends = append(backends, strings.TrimPrefix(p.Name(), "vault-plugin-secrets-"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1419,11 +1419,13 @@ func TestSysTuneMount_passthroughRequestHeaders(t *testing.T) {
|
||||
"data": map[string]interface{}{
|
||||
"default_lease_ttl": json.Number("2764800"),
|
||||
"max_lease_ttl": json.Number("2764800"),
|
||||
"options": map[string]interface{}{"versioned": "true"},
|
||||
"force_no_cache": false,
|
||||
"passthrough_request_headers": []interface{}{"X-Vault-Foo"},
|
||||
},
|
||||
"default_lease_ttl": json.Number("2764800"),
|
||||
"max_lease_ttl": json.Number("2764800"),
|
||||
"options": map[string]interface{}{"versioned": "true"},
|
||||
"force_no_cache": false,
|
||||
"passthrough_request_headers": []interface{}{"X-Vault-Foo"},
|
||||
}
|
||||
@@ -1455,10 +1457,12 @@ func TestSysTuneMount_passthroughRequestHeaders(t *testing.T) {
|
||||
"default_lease_ttl": json.Number("2764800"),
|
||||
"max_lease_ttl": json.Number("2764800"),
|
||||
"force_no_cache": false,
|
||||
"options": map[string]interface{}{"versioned": "true"},
|
||||
},
|
||||
"default_lease_ttl": json.Number("2764800"),
|
||||
"max_lease_ttl": json.Number("2764800"),
|
||||
"force_no_cache": false,
|
||||
"options": map[string]interface{}{"versioned": "true"},
|
||||
}
|
||||
testResponseBody(t, resp, &actual)
|
||||
expected["request_id"] = actual["request_id"]
|
||||
|
||||
Reference in New Issue
Block a user