mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-04 18:24:13 +08:00
Merge pull request #49 from danielkrainas/fix-replaceenvvars-test
fix replaceEnvvars test and clear build
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ func TestReplaceEnvvars(t *testing.T) {
|
||||
prefix := "MY"
|
||||
testText := "this should be ${TAG} now ${TAG}"
|
||||
result := getEnvVars(testText)
|
||||
resolved := replaceEnvvars(result, prefix, testText)
|
||||
resolved := replaceEnvvars(result, prefix, testText, false)
|
||||
if !strings.Contains(resolved, tag) {
|
||||
t.Errorf("EnvVar MY_TAG no replaced by %s -- %s \n", tag, resolved)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user