File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ suite : test service with load balancer enabled
2+ chart :
3+ version : 9.9.9+test
4+ appVersion : 9.9.9
5+ tests :
6+ - it : should render default service
7+ template : templates/service.yaml
8+ set :
9+ service.type : LoadBalancer
10+ ingress.enabled : false
11+ asserts :
12+ - hasDocuments :
13+ count : 1
14+ - isAPIVersion :
15+ of : v1
16+ - isKind :
17+ of : Service
18+ - equal :
19+ path : metadata.name
20+ value : RELEASE-NAME-emby
21+ - exists :
22+ path : spec.type
23+ - equal :
24+ path : spec.type
25+ value : LoadBalancer
26+ - lengthEqual :
27+ path : spec.ports
28+ count : 1
29+
30+ - it : should not render "LoadBalancer" service, when service.type == "LoadBalancer" and Ingress is disabled
31+ template : templates/service-LB.yaml
32+ set :
33+ service.type : LoadBalancer
34+ ingress.enabled : false
35+ asserts :
36+ - hasDocuments :
37+ count : 0
38+
39+ - it : should render "LoadBalancer" service, when service.type == "LoadBalancer" and Ingress is enabled
40+ template : templates/service-LB.yaml
41+ set :
42+ service.type : LoadBalancer
43+ ingress.enabled : true
44+ asserts :
45+ - hasDocuments :
46+ count : 1
47+ - isAPIVersion :
48+ of : v1
49+ - isKind :
50+ of : Service
51+ - equal :
52+ path : metadata.name
53+ value : RELEASE-NAME-emby-LB
54+ - exists :
55+ path : spec.type
56+ - equal :
57+ path : spec.type
58+ value : LoadBalancer
59+ - lengthEqual :
60+ path : spec.ports
61+ count : 1
62+
63+ - it : should render default service with type "ClusterIP", when service.type == "LoadBalancer" and Ingress is enabled
64+ template : templates/service.yaml
65+ set :
66+ service.type : LoadBalancer
67+ ingress.enabled : true
68+ asserts :
69+ - hasDocuments :
70+ count : 1
71+ - isAPIVersion :
72+ of : v1
73+ - isKind :
74+ of : Service
75+ - equal :
76+ path : metadata.name
77+ value : RELEASE-NAME-emby
78+ - exists :
79+ path : spec.type
80+ - equal :
81+ path : spec.type
82+ value : ClusterIP
83+ - lengthEqual :
84+ path : spec.ports
85+ count : 1
You can’t perform that action at this time.
0 commit comments