remove adding hash for configmap/secret read from resource yaml files

This commit is contained in:
Jingfang Liu
2018-07-18 10:37:02 -07:00
parent 94dab9ddc4
commit 9645f397ef
9 changed files with 36 additions and 27 deletions

View File

@@ -64,7 +64,7 @@ func TestNewFromConfigMaps(t *testing.T) {
"DB_USERNAME": "admin",
"DB_PASSWORD": "somepw",
},
}),
}).SetBehavior(resource.BehaviorCreate),
},
},
{
@@ -92,7 +92,7 @@ func TestNewFromConfigMaps(t *testing.T) {
BAR=baz
`,
},
}),
}).SetBehavior(resource.BehaviorCreate),
},
},
{
@@ -118,7 +118,7 @@ BAR=baz
"a": "x",
"b": "y",
},
}),
}).SetBehavior(resource.BehaviorCreate),
},
},
// TODO: add testcase for data coming from multiple sources like

View File

@@ -60,7 +60,7 @@ func TestNewResMapFromSecretArgs(t *testing.T) {
"DB_USERNAME": base64.StdEncoding.EncodeToString([]byte("admin")),
"DB_PASSWORD": base64.StdEncoding.EncodeToString([]byte("somepw")),
},
}),
}).SetBehavior(resource.BehaviorCreate),
}
if !reflect.DeepEqual(actual, expected) {
t.Fatalf("%#v\ndoesn't match expected:\n%#v", actual, expected)