Commit 54f46073
54f46073b5b6Merged
Svyatoslav Dumchenko <[email protected]> · 5 years ago · 6 files · +1 added · ~5 modified
Description
fix tests
Details
- Commit
- 54f46073b5b6
- Parent
- 5f85787c0671
pkg/action/build_test.gomodifiedView file
@@ -169,3 +169,33 @@
169169
t.Error(plan.ErrManifestDirNotFound)170170
}171171
}172+
173+
func TestBuildGomplate(t *testing.T) {174+
defer clean()175+
176+
y := &Yml{177+
tests.Root + "08_helmwave.yml",178+
tests.Root + "08_values.yml",179+
}180+
181+
s := &Build{182+
plandir: tests.Root + plan.Dir,183+
tags: cli.StringSlice{},184+
matchAll: true,185+
autoYml: true,186+
yml: y,187+
}188+
189+
value := "Test08"190+
_ = os.Setenv("PROJECT_NAME", value)191+
_ = os.Setenv("NAMESPACE", value)192+
193+
err := s.Run()194+
if err != nil {195+
t.Error(err)196+
}197+
198+
if ok := helper.IsExists(tests.Root + plan.Dir + plan.Manifest); !ok {199+
t.Error(plan.ErrManifestDirNotFound)200+
}201+
}pkg/template/tpl2yml_test.gomodifiedView file
Loading diff…
tests/01_helmwave.yml.tplmodifiedView file
Loading diff…
tests/04_helmwave.ymlmodifiedView file
Loading diff…
tests/05_helmwave.ymlmodifiedView file
Loading diff…
tests/09_values.yamladdedView file
Loading diff…