Remove sensitive fields when reading config data (#4216)

* Remove sensitive fields when reading config data

* Do not use structs; build and return map explicitly

* Revert tag in postgresql

* Fix tests
This commit is contained in:
Calvin Leung Huang
2018-03-30 10:17:39 -04:00
committed by GitHub
parent 08770c6366
commit 938b748914
14 changed files with 65 additions and 43 deletions

View File

@@ -102,10 +102,6 @@ func TestBackend_config_connection(t *testing.T) {
if err != nil || (resp != nil && resp.IsError()) {
t.Fatalf("err:%s resp:%#v\n", err, resp)
}
if resp.Data["uri"] != configData["uri"] {
t.Fatalf("bad: %#v", resp)
}
}
func TestBackend_basic(t *testing.T) {