Skip to content

Commit 2934c5d

Browse files
test
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent 986fbff commit 2934c5d

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

issue-471/templates/simple.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
anArray: {{ .Values.hosts }}
22
anArrayValues:
3+
rules:
34
{{- range $host := .Values.hosts }}
45
- host: {{ $host }}
56
{{- end }}

issue-471/tests/simple_test.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
suite: just a test
22
templates:
3-
- template.yaml
4-
chart:
5-
version: 1.2.3
3+
- simple.yaml
64
tests:
75
- it: paradox
6+
template: simple.yaml
7+
set:
8+
hosts[1]: hotpatch
9+
asserts:
10+
- notEqual:
11+
path: anArrayValues.rules[0].host
12+
value: null
13+
- equal:
14+
path: anArrayValues.rules
15+
value:
16+
- host: null
17+
- host: hotpatch1
18+
- equal:
19+
path: anArrayValues.rules[1].host
20+
value: hotpatch

0 commit comments

Comments
 (0)