-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathexecutor_test.yaml
More file actions
36 lines (35 loc) · 979 Bytes
/
executor_test.yaml
File metadata and controls
36 lines (35 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
suite: executor
templates:
- executor/docker-daemon.ConfigMap.yaml
- executor/executor.Deployment.yaml
- executor/executor.Service.yaml
tests:
- it: should render the Deployment and Service if executor is enabled
set:
executor:
enabled: true
env:
EXECUTOR_QUEUE_NAME:
value: "test"
asserts:
- containsDocument:
kind: Deployment
apiVersion: apps/v1
name: executor-test
template: executor/executor.Deployment.yaml
- containsDocument:
kind: Service
apiVersion: v1
name: executor-test
template: executor/executor.Service.yaml
- it: should not render any resources if executor is disabled
set:
executor:
enabled: false
asserts:
- hasDocuments:
count: 0
templates:
- executor/docker-daemon.ConfigMap.yaml
- executor/executor.Deployment.yaml
- executor/executor.Service.yaml