Skip to content

Commit 066e539

Browse files
committed
add testing
1 parent f8bf5a3 commit 066e539

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
suite: Service configuration
2+
templates:
3+
- service.yaml
4+
release:
5+
namespace: default
6+
tests:
7+
- it: should provide a single service by default
8+
asserts:
9+
- isKind:
10+
of: Service
11+
- hasDocuments:
12+
count: 1
13+
- equal:
14+
path: spec.type
15+
value: ClusterIP
16+
- equal:
17+
path: spec.ports[0].port
18+
value: 7979
19+
20+
- it: should provide a way to disable the service
21+
set:
22+
service:
23+
enabled: false
24+
asserts:
25+
- hasDocuments:
26+
count: 0

0 commit comments

Comments
 (0)