Commit 908f1fbc
908f1fbc4addMerged
Dmitriy Zhilyaev <[email protected]> · 5 years ago · 10 files · +1 added · ~9 modified
Description
Merge pull request #162 from helmwave/gomplate_url
Tune config for gomplate datasources
Details
- Commit
- 908f1fbc4add
- Parent
- 3eb569e74e3d
- Merge parent
- 54f46073b5b6
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/config.gomodifiedView file
Loading diff…
pkg/template/func.gomodifiedView file
Loading diff…
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/08_helmwave.ymlmodifiedView file
Loading diff…
tests/08_values.yamlmodifiedView file
Loading diff…
tests/09_values.yamladdedView file
Loading diff…