@@ -122,6 +122,28 @@ func TestLookupImageAndFeatures(t *testing.T) {
122
122
"dev-alerts" ,
123
123
},
124
124
},
125
+ {
126
+ pluginType : uiv1alpha1 .TypeLogging ,
127
+ clusterVersion : "v4.15.0-0.nightly-2024-06-06-064349" ,
128
+ expectedKey : "ui-logging" ,
129
+ expectedErr : nil ,
130
+ expectedFeatures : []string {
131
+ "dev-console" ,
132
+ "alerts" ,
133
+ "dev-alerts" ,
134
+ },
135
+ },
136
+ {
137
+ pluginType : uiv1alpha1 .TypeLogging ,
138
+ clusterVersion : "4.15.46" ,
139
+ expectedKey : "ui-logging" ,
140
+ expectedErr : nil ,
141
+ expectedFeatures : []string {
142
+ "dev-console" ,
143
+ "alerts" ,
144
+ "dev-alerts" ,
145
+ },
146
+ },
125
147
{
126
148
pluginType : uiv1alpha1 .TypeLogging ,
127
149
clusterVersion : "v4.16.9" ,
@@ -183,6 +205,18 @@ func TestLookupImageAndFeatures(t *testing.T) {
183
205
expectedKey : "ui-distributed-tracing" ,
184
206
expectedErr : nil ,
185
207
},
208
+ {
209
+ pluginType : uiv1alpha1 .TypeDistributedTracing ,
210
+ clusterVersion : "v4.15.0-0.nightly-2024-06-06-064349" ,
211
+ expectedKey : "ui-distributed-tracing" ,
212
+ expectedErr : nil ,
213
+ },
214
+ {
215
+ pluginType : uiv1alpha1 .TypeDistributedTracing ,
216
+ clusterVersion : "v4.15.46" ,
217
+ expectedKey : "ui-distributed-tracing" ,
218
+ expectedErr : nil ,
219
+ },
186
220
{
187
221
pluginType : uiv1alpha1 .TypeDistributedTracing ,
188
222
clusterVersion : "4.24.0-0.nightly-2024-03-11-200348" ,
@@ -231,6 +265,8 @@ func TestLookupImageAndFeatures(t *testing.T) {
231
265
t .Run (fmt .Sprintf ("%s/%s" , tc .pluginType , tc .clusterVersion ), func (t * testing.T ) {
232
266
info , err := lookupImageAndFeatures (tc .pluginType , tc .clusterVersion )
233
267
268
+ t .Log (info )
269
+
234
270
if tc .expectedErr != nil {
235
271
assert .Error (t , err , tc .expectedErr .Error ())
236
272
return
0 commit comments