@@ -37,19 +37,16 @@ tests:
37
37
- equal : &st2web_rules_host
38
38
path : spec.rules[0].host
39
39
value : *st2web_hostname
40
- - contains : &one_host_path
40
+ - contains :
41
41
path : spec.rules[0].http.paths
42
42
count : 1
43
- - equal : &host_path_is_root
44
- path : spec.rules[0].http.paths[0].path
45
- value : " /"
43
+ content :
44
+ path : " /"
45
+ backend :
46
+ serviceName : st2ha-st2web
47
+ servicePort : 80
46
48
- isNull :
47
49
path : spec.rules[0].http.paths[0].pathType
48
- - equal :
49
- path : spec.rules[0].http.paths[0].backend
50
- value :
51
- serviceName : st2ha-st2web
52
- servicePort : 80
53
50
54
51
- it : Ingress is present when enabled without hosts (newer k8s)
55
52
capabilities :
@@ -74,18 +71,17 @@ tests:
74
71
value : Ingress
75
72
# no ingress.hosts, so only st2web.hostname
76
73
- equal : *st2web_rules_host
77
- - contains : *one_host_path
78
- - equal : *host_path_is_root
79
- - equal :
80
- path : spec.rules[0].http.paths[0].pathType
81
- value : Preix
82
- - equal :
83
- path : spec.rules[0].http.paths[0].backend
84
- value :
85
- service :
86
- name : st2ha-st2web
87
- port :
88
- number : 80
74
+ - contains :
75
+ path : spec.rules[0].http.paths
76
+ count : 1
77
+ content :
78
+ path : " /"
79
+ pathType : Prefix
80
+ backend :
81
+ service :
82
+ name : st2ha-st2web
83
+ port :
84
+ number : 80
89
85
90
86
- it : Ingress is present when enabled with hosts (older k8s)
91
87
capabilities :
@@ -116,9 +112,6 @@ tests:
116
112
value : Ingress
117
113
# no ingress.hosts, so only st2web.hostname
118
114
- equal : *st2web_rules_host
119
- - contains : &two_host_paths
120
- path : spec.rules[0].http.paths
121
- count : 2
122
115
- equal : &host_path_is_root_glob
123
116
path : spec.rules[0].http.paths[0].path
124
117
value : " /*"
@@ -164,7 +157,6 @@ tests:
164
157
value : Ingress
165
158
# no ingress.hosts, so only st2web.hostname
166
159
- equal : *st2web_rules_host
167
- - contains : *two_host_paths
168
160
- equal : *host_path_is_root_glob
169
161
- equal :
170
162
path : spec.rules[0].http.paths[0].pathType
0 commit comments