@@ -13,11 +13,12 @@ tests:
13
13
- hasDocuments :
14
14
count : 0
15
15
16
- - it : Ingress is present when enabled without hosts (older k8s)
17
- capabilities : &cap_older
16
+ - it : Ingress is present when enabled without hosts
17
+ capabilities : &cap_newer
18
18
majorVersion : 1
19
- minorVersion : 18
19
+ minorVersion : 19
20
20
apiVersions :
21
+ - networking.k8s.io/v1 # introduced in 1.19, stable in 1.22
21
22
- networking.k8s.io/v1beta1
22
23
set :
23
24
ingress :
@@ -39,42 +40,6 @@ tests:
39
40
- equal : &st2web_rules_host
40
41
path : spec.rules[0].host
41
42
value : *st2web_hostname
42
- - contains :
43
- path : spec.rules[0].http.paths
44
- count : 1
45
- content :
46
- path : " /"
47
- backend :
48
- serviceName : st2ha-st2web
49
- servicePort : 80
50
- - isNull :
51
- path : spec.rules[0].http.paths[0].pathType
52
-
53
- - it : Ingress is present when enabled without hosts (newer k8s)
54
- capabilities : &cap_newer
55
- majorVersion : 1
56
- minorVersion : 19
57
- apiVersions :
58
- - networking.k8s.io/v1 # introduced in 1.19, stable in 1.22
59
- - networking.k8s.io/v1beta1
60
- set :
61
- ingress :
62
- enabled : true
63
- hosts : []
64
- tls : []
65
- st2web :
66
- service :
67
- hostname : *st2web_hostname
68
- release :
69
- name : st2ha
70
- asserts :
71
- - hasDocuments :
72
- count : 1
73
- - equal :
74
- path : kind
75
- value : Ingress
76
- # no ingress.hosts, so only st2web.hostname
77
- - equal : *st2web_rules_host
78
43
- contains :
79
44
path : spec.rules[0].http.paths
80
45
count : 1
@@ -87,12 +52,12 @@ tests:
87
52
port :
88
53
number : 80
89
54
90
- - it : Ingress is present when enabled with hosts (older k8s)
91
- capabilities : *cap_older
55
+ - it : Ingress is present when enabled with hosts
56
+ capabilities : *cap_newer
92
57
set :
93
58
ingress :
94
59
enabled : true
95
- hosts : &hosts
60
+ hosts :
96
61
- host : *st2web_hostname
97
62
paths :
98
63
- serviceName : st2ha-st2web
@@ -114,49 +79,9 @@ tests:
114
79
value : Ingress
115
80
# no ingress.hosts, so only st2web.hostname
116
81
- equal : *st2web_rules_host
117
- - equal : &host_path_is_root_glob
82
+ - equal :
118
83
path : spec.rules[0].http.paths[0].path
119
84
value : " /*"
120
- - isNull :
121
- path : spec.rules[0].http.paths[0].pathType
122
- - equal :
123
- path : spec.rules[0].http.paths[0].backend
124
- value :
125
- serviceName : st2ha-st2web
126
- servicePort : 80
127
-
128
- - equal :
129
- path : spec.rules[0].http.paths[1].path
130
- value : " /fancy-sensor"
131
- - isNull :
132
- path : spec.rules[0].http.paths[1].pathType
133
- - equal :
134
- path : spec.rules[0].http.paths[1].backend
135
- value :
136
- serviceName : fancy-sensor
137
- servicePort : 8080
138
-
139
- - it : Ingress is present when enabled with hosts (newer k8s)
140
- capabilities : *cap_newer
141
- set :
142
- ingress :
143
- enabled : true
144
- hosts : *hosts
145
- tls : []
146
- st2web :
147
- service :
148
- hostname : *st2web_hostname
149
- release :
150
- name : st2ha
151
- asserts :
152
- - hasDocuments :
153
- count : 1
154
- - equal :
155
- path : kind
156
- value : Ingress
157
- # no ingress.hosts, so only st2web.hostname
158
- - equal : *st2web_rules_host
159
- - equal : *host_path_is_root_glob
160
85
- equal :
161
86
path : spec.rules[0].http.paths[0].pathType
162
87
value : Prefix
0 commit comments