Skip to content

Commit b37e380

Browse files
skip tests
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent 1bf8456 commit b37e380

File tree

4 files changed

+63
-3
lines changed

4 files changed

+63
-3
lines changed

issue-504/templates/configmap.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: test-me
6+
data:
7+
special.array:
8+
- phony-service.phony:graphql
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
suite: "test skip single test"
3+
templates:
4+
- templates/configmap.yaml
5+
tests:
6+
- it: "should test paradox"
7+
asserts:
8+
- equal:
9+
path: metadata.name
10+
value: test-me
11+
12+
- it: should validate camelcase function
13+
skip:
14+
reason: "This test 'validate camelcase function' is not ready yet"
15+
asserts:
16+
- equal:
17+
path: data["special.array"]
18+
value:
19+
- phony-service.phony:graphql

issue-504/tests/not_skip_test.yaml

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

issue-504/tests/simple_test.yaml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
suite: test wardend service
1+
suite: test skip suite level
22
templates:
33
- simple.yaml
4-
skip: true
5-
# - reason: "This test is not ready yet"
4+
skip:
5+
reason: "This suite 'abkaradabra' is not ready yet"
66
tests:
77
- it: "should create Service if node is enabled"
88
set:
@@ -13,3 +13,23 @@ tests:
1313
count: 1
1414
- isKind:
1515
of: Service
16+
17+
- it: "should second test"
18+
set:
19+
node:
20+
enabled: true
21+
asserts:
22+
- hasDocuments:
23+
count: 1
24+
- isKind:
25+
of: Service
26+
27+
- it: "should third test"
28+
set:
29+
node:
30+
enabled: true
31+
asserts:
32+
- hasDocuments:
33+
count: 1
34+
- isKind:
35+
of: Service

0 commit comments

Comments
 (0)