forked from temporalio/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver_service_test.yaml
More file actions
44 lines (44 loc) · 1.08 KB
/
server_service_test.yaml
File metadata and controls
44 lines (44 loc) · 1.08 KB
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
37
38
39
40
41
42
43
44
suite: test server service
templates:
- server-service.yaml
set:
server:
replicaCount: 2
resources:
requests:
cpu: 100m
frontend:
replicaCount: 3
resources:
requests:
cpu: 200m
tests:
- it: omits prometheus annotations when disabled
template: templates/server-service.yaml
documentSelector:
path: '$[?(@.metadata.name == "RELEASE-NAME-temporal-frontend-headless")].kind'
value: Service
matchMany: true
set:
server:
frontend:
metrics:
annotations:
enabled: false
asserts:
- notExists:
path: metadata.annotations["prometheus.io/job"]
- notExists:
path: metadata.annotations["prometheus.io/scrape"]
- notExists:
path: metadata.annotations["prometheus.io/port"]
- it: doesn't create any services when the server is disabled
template: templates/server-service.yaml
set:
server:
enabled: false
asserts:
- not: true
containsDocument:
kind: Service
apiVersion: v1