@@ -202,6 +202,7 @@ func TestConfigMapChangesWithNonMatchingSelector(t *testing.T) {
202
202
if err := env .Get (ctx , client .ObjectKeyFromObject (coreProvider ), coreProvider ); err != nil {
203
203
return false
204
204
}
205
+
205
206
return conditions .IsTrue (coreProvider , operatorv1 .ProviderInstalledCondition )
206
207
}, timeout ).Should (BeTrue ())
207
208
@@ -286,6 +287,7 @@ func TestConfigMapChangesWithNonMatchingSelector(t *testing.T) {
286
287
return false
287
288
}
288
289
hash := provider .GetAnnotations ()[appliedSpecHashAnnotation ]
290
+
289
291
return hash != ""
290
292
}, timeout ).Should (BeTrue (), "Provider should have a hash annotation after reconciliation" )
291
293
@@ -308,6 +310,7 @@ func TestConfigMapChangesWithNonMatchingSelector(t *testing.T) {
308
310
}
309
311
310
312
currentHash := provider .GetAnnotations ()[appliedSpecHashAnnotation ]
313
+
311
314
return currentHash == initialHash
312
315
}, 10 * time .Second , 2 * time .Second ).Should (BeTrue ())
313
316
@@ -327,6 +330,7 @@ func TestConfigMapChangesWithNonMatchingSelector(t *testing.T) {
327
330
}
328
331
329
332
currentHash := provider .GetAnnotations ()[appliedSpecHashAnnotation ]
333
+
330
334
return currentHash != "" && currentHash != initialHash
331
335
}, 30 * time .Second ).Should (BeTrue ())
332
336
@@ -367,6 +371,7 @@ func TestMultipleConfigMapsError(t *testing.T) {
367
371
if err := env .Get (ctx , client .ObjectKeyFromObject (coreProvider ), coreProvider ); err != nil {
368
372
return false
369
373
}
374
+
370
375
return conditions .IsTrue (coreProvider , operatorv1 .ProviderInstalledCondition )
371
376
}, timeout ).Should (BeTrue ())
372
377
@@ -442,6 +447,7 @@ func TestMultipleConfigMapsError(t *testing.T) {
442
447
if err := env .Get (ctx , client .ObjectKeyFromObject (provider ), provider ); err != nil {
443
448
return false
444
449
}
450
+
445
451
return conditions .IsFalse (provider , operatorv1 .ProviderInstalledCondition ) &&
446
452
conditions .GetReason (provider , operatorv1 .ProviderInstalledCondition ) != ""
447
453
}, timeout ).Should (BeTrue ())
0 commit comments