forked from quintush/helm-unittest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quintush#145 from mederel/bugfix/Templating-error-…
…parsing-failure-with-helm-v3 Helm v3: templating error parsing failure
- Loading branch information
Showing
10 changed files
with
95 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ untt.exe | |
_dist | ||
|
||
.DS_Store | ||
|
||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(*results.TestJobResult)({ | ||
DisplayName: (string) (len=11) "should work", | ||
Index: (int) 0, | ||
Passed: (bool) true, | ||
ExecError: (error) <nil>, | ||
AssertsResult: ([]*results.AssertionResult) (len=1) { | ||
(*results.AssertionResult)({ | ||
Index: (int) 0, | ||
FailInfo: ([]string) { | ||
}, | ||
Passed: (bool) true, | ||
AssertType: (string) (len=14) "failedTemplate", | ||
Not: (bool) false, | ||
CustomInfo: (string) "" | ||
}) | ||
}, | ||
Duration: (time.Duration) 0s | ||
}) |
14 changes: 14 additions & 0 deletions
14
pkg/unittest/.snapshots/TestV3RunnerOkWithFailingTemplatePassedTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
### Chart [ failing-template ] ../../test/data/v3/failing-template | ||
|
||
|
||
PASS Test failing template ../../test/data/v3/failing-template/tests/configMap_test.yaml | ||
|
||
|
||
Charts: 1 passed, 1 total | ||
Test Suites: 1 passed, 1 total | ||
Tests: 1 passed, 1 total | ||
Snapshot: 0 passed, 0 total | ||
Time: XX.XXXms | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v2 | ||
name: failing-template | ||
description: Test failed template assert | ||
type: application | ||
version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: test-configmap | ||
data: | ||
my-file.yaml: | | ||
{{- include "non-existing-named-template" . | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
suite: Test failing template | ||
templates: | ||
- configMap.yaml | ||
tests: | ||
- it: template should be failing | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: no template "non-existing-named-template" associated with template "gotpl" |