forked from sonatype/nexus-iq-server-ha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alb-target-group-binding_test.yaml
56 lines (56 loc) · 1.55 KB
/
alb-target-group-binding_test.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
suite: alb-target-group-binding
templates:
- alb-target-group-binding.yaml
tests:
- it: is disabled by default
asserts:
- hasDocuments:
count: 0
- it: renders an application target group binding if configured
set:
existingApplicationLoadBalancer:
applicationTargetGroupARN: "someAppARN"
asserts:
- hasDocuments:
count: 1
- equal:
path: apiVersion
value: elbv2.k8s.aws/v1beta1
- isKind:
of: TargetGroupBinding
- equal:
path: metadata.name
value: RELEASE-NAME-alb-app-target-group-binding
- equal:
path: spec.serviceRef.name
value: RELEASE-NAME-iq-server-application-service
- equal:
path: spec.serviceRef.port
value: 8070
- equal:
path: spec.targetGroupARN
value: someAppARN
- it: renders an admin target group binding if configured
set:
existingApplicationLoadBalancer:
adminTargetGroupARN: "someAdminARN"
asserts:
- hasDocuments:
count: 1
- equal:
path: apiVersion
value: elbv2.k8s.aws/v1beta1
- isKind:
of: TargetGroupBinding
- equal:
path: metadata.name
value: RELEASE-NAME-alb-admin-target-group-binding
- equal:
path: spec.serviceRef.name
value: RELEASE-NAME-iq-server-admin-service
- equal:
path: spec.serviceRef.port
value: 8071
- equal:
path: spec.targetGroupARN
value: someAdminARN