Fix cloud-config name in reset tests

Default name is /etc/kubernetes/cloud-config, thus tests
should cover "cloud-config" and not "cloud-config.json"
pull/6/head
Alexander Kanevskiy 2016-12-20 18:21:51 +02:00
parent f42574893b
commit 2ac85d762f
1 changed files with 5 additions and 5 deletions

View File

@ -86,7 +86,7 @@ func TestConfigDirCleaner(t *testing.T) {
"manifests",
},
},
"preserve cloud-config.json": {
"preserve cloud-config": {
setupDirs: []string{
"manifests",
"pki",
@ -97,12 +97,12 @@ func TestConfigDirCleaner(t *testing.T) {
"pki/ca.pem",
"admin.conf",
"kubelet.conf",
"cloud-config.json",
"cloud-config",
},
verifyExists: []string{
"manifests",
"pki",
"cloud-config.json",
"cloud-config",
},
},
"preserve hidden files and directories": {
@ -117,13 +117,13 @@ func TestConfigDirCleaner(t *testing.T) {
"pki/ca.pem",
"admin.conf",
"kubelet.conf",
".cloud-config.json",
".cloud-config",
".mydir/.myfile",
},
verifyExists: []string{
"manifests",
"pki",
".cloud-config.json",
".cloud-config",
".mydir",
".mydir/.myfile",
},