Skip to content

Commit 1bf8456

Browse files
issue-504: working on things
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent d8ba0b4 commit 1bf8456

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ SUPPORTED := chart \
3636
issue-471 \
3737
issue-494 \
3838
issue-497 \
39-
issue-499
39+
issue-499 \
40+
issue-504
4041

41-
ISSUE := issue-471
42+
ISSUE := issue-504
4243

4344
FILTER_FOLDER := $(filter $(folder),$(SUPPORTED))
4445

issue-504/Chart.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v2
2+
description: Allow for skipping specific tests
3+
name: skip-tests
4+
version: 0.1.0
5+
issueLink: https://github.com/helm-unittest/helm-unittest/issues/504
6+
supportedLinks:
7+
- https://github.com/helm-unittest/helm-unittest/issues/504

issue-504/templates/simple.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{- if .Values.node.enabled }}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: {{ .Release.Name }}-{{ .Values.node.name }}-http
6+
{{- end}}
7+

issue-504/tests/simple_test.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
suite: test wardend service
2+
templates:
3+
- simple.yaml
4+
skip: true
5+
# - reason: "This test is not ready yet"
6+
tests:
7+
- it: "should create Service if node is enabled"
8+
set:
9+
node:
10+
enabled: true
11+
asserts:
12+
- hasDocuments:
13+
count: 1
14+
- isKind:
15+
of: Service

issue-504/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
hosts:
2+
- chart-example.local
3+
- chart-example.remote
4+
5+
hostsMap:
6+
- name: value0
7+
attribute: attribute0
8+
- name: value1
9+
attribute: attribute1

0 commit comments

Comments
 (0)