@@ -19,34 +19,33 @@ func TestIngressClusterAutoTag(t *testing.T) {
1919 expectedTagStyle string
2020 }{
2121 {
22- name : "Remote cluster ottawa - default blue" ,
23- clusterAnnot : "ottawa" ,
24- expectTag : true ,
25- expectedTagName : "ottawa" ,
26- expectedTagStyle : "is-info" , // Default blue
22+ name : "Remote cluster without tagstyle - no tag" ,
23+ clusterAnnot : "ottawa" ,
24+ expectTag : false ,
2725 },
2826 {
29- name : "Remote cluster robbinsdale - default blue" ,
30- clusterAnnot : "robbinsdale" ,
27+ name : "Remote cluster with blue tag" ,
28+ clusterAnnot : "ottawa" ,
29+ tagStyleLabel : "is-info" ,
3130 expectTag : true ,
32- expectedTagName : "robbinsdale " ,
33- expectedTagStyle : "is-info" , // Default blue
31+ expectedTagName : "ottawa " ,
32+ expectedTagStyle : "is-info" ,
3433 },
3534 {
36- name : "Remote cluster with custom red color " ,
37- clusterAnnot : "ottawa " ,
35+ name : "Remote cluster with red tag " ,
36+ clusterAnnot : "production " ,
3837 tagStyleLabel : "is-danger" ,
3938 expectTag : true ,
40- expectedTagName : "ottawa " ,
41- expectedTagStyle : "is-danger" , // Custom red
39+ expectedTagName : "production " ,
40+ expectedTagStyle : "is-danger" ,
4241 },
4342 {
44- name : "Remote cluster with custom yellow color " ,
43+ name : "Remote cluster with yellow tag " ,
4544 clusterAnnot : "staging" ,
4645 tagStyleLabel : "is-warning" ,
4746 expectTag : true ,
4847 expectedTagName : "staging" ,
49- expectedTagStyle : "is-warning" , // Custom yellow
48+ expectedTagStyle : "is-warning" ,
5049 },
5150 {
5251 name : "Local cluster" ,
@@ -137,26 +136,25 @@ func TestHTTPRouteClusterAutoTag(t *testing.T) {
137136 expectedTagStyle string
138137 }{
139138 {
140- name : "Remote cluster ottawa - default blue" ,
141- clusterAnnot : "ottawa" ,
142- expectTag : true ,
143- expectedTagName : "ottawa" ,
144- expectedTagStyle : "is-info" , // Default blue
139+ name : "Remote cluster without tagstyle - no tag" ,
140+ clusterAnnot : "ottawa" ,
141+ expectTag : false ,
145142 },
146143 {
147- name : "Remote cluster robbinsdale - default blue" ,
148- clusterAnnot : "robbinsdale" ,
144+ name : "Remote cluster with blue tag" ,
145+ clusterAnnot : "ottawa" ,
146+ tagStyleLabel : "is-info" ,
149147 expectTag : true ,
150- expectedTagName : "robbinsdale " ,
151- expectedTagStyle : "is-info" , // Default blue
148+ expectedTagName : "ottawa " ,
149+ expectedTagStyle : "is-info" ,
152150 },
153151 {
154- name : "Remote cluster with custom red color " ,
152+ name : "Remote cluster with red tag " ,
155153 clusterAnnot : "production" ,
156154 tagStyleLabel : "is-danger" ,
157155 expectTag : true ,
158156 expectedTagName : "production" ,
159- expectedTagStyle : "is-danger" , // Custom red
157+ expectedTagStyle : "is-danger" ,
160158 },
161159 {
162160 name : "Local cluster" ,
0 commit comments