mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
VAULT-29784: Skip connection verification on DB config read (#28139)
* skip connection verification on config read * ensure appropriate default on config update call that results in a creation * changelog * leave verify_connection in config read response * update test to handle output of verify_connection parameter * fix remaining tests
This commit is contained in:
@@ -210,6 +210,7 @@ func TestBackend_config_connection(t *testing.T) {
|
||||
"root_credentials_rotate_statements": []string{},
|
||||
"password_policy": "",
|
||||
"plugin_version": "",
|
||||
"verify_connection": false,
|
||||
}
|
||||
configReq.Operation = logical.ReadOperation
|
||||
resp, err = b.HandleRequest(namespace.RootContext(nil), configReq)
|
||||
@@ -264,6 +265,7 @@ func TestBackend_config_connection(t *testing.T) {
|
||||
"root_credentials_rotate_statements": []string{},
|
||||
"password_policy": "",
|
||||
"plugin_version": "",
|
||||
"verify_connection": false,
|
||||
}
|
||||
configReq.Operation = logical.ReadOperation
|
||||
resp, err = b.HandleRequest(namespace.RootContext(nil), configReq)
|
||||
@@ -307,6 +309,7 @@ func TestBackend_config_connection(t *testing.T) {
|
||||
"root_credentials_rotate_statements": []string{},
|
||||
"password_policy": "",
|
||||
"plugin_version": "",
|
||||
"verify_connection": false,
|
||||
}
|
||||
configReq.Operation = logical.ReadOperation
|
||||
resp, err = b.HandleRequest(namespace.RootContext(nil), configReq)
|
||||
@@ -764,6 +767,7 @@ func TestBackend_connectionCrud(t *testing.T) {
|
||||
"root_credentials_rotate_statements": []any{},
|
||||
"password_policy": "",
|
||||
"plugin_version": "",
|
||||
"verify_connection": false,
|
||||
}
|
||||
resp, err = client.Read("database/config/plugin-test")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user