Convert file system based test to in-memory.

This commit is contained in:
jregan
2018-12-16 20:21:42 -08:00
committed by Jeffrey Regan
parent 186dd20ad6
commit 243cbae411
16 changed files with 254 additions and 462 deletions

View File

@@ -99,17 +99,15 @@ func TestBuild(t *testing.T) {
return nil
})
// sanity check that we found the right folder
if !kustfile.StringInSlice("simple", testcases) {
if !kustfile.StringInSlice("multiple-patches-noconflict", testcases) {
t.Fatalf("Error locating testcases")
}
for _, testcaseName := range testcases {
t.Run(testcaseName,
func(t *testing.T) {
runBuildTestCase(t, testcaseName, updateKustomizeExpected, fSys)
})
}
}
func runBuildTestCase(t *testing.T, testcaseName string, updateKustomizeExpected bool, fSys fs.FileSystem) {