Skip to content

Commit c8294e0

Browse files
committed
test(e2e): use size comparison for CA bundle propagation assertion
Signed-off-by: chiragkyal <ckyal@redhat.com>
1 parent fd719a4 commit c8294e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/e2e/trustmanager_bundle_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,8 @@ var _ = Describe("Bundle", Ordered, Label("Platform:Generic", "Feature:TrustMana
827827
Eventually(func(g Gomega) {
828828
cm, err := k8sClientSet.CoreV1().ConfigMaps(operatorNamespace).Get(ctx, trustedCABundleConfigMapName, metav1.GetOptions{})
829829
g.Expect(err).ShouldNot(HaveOccurred())
830-
g.Expect(cm.Data[trustedCABundleKey]).ShouldNot(Equal(originalInjectedData),
831-
"CNO should have updated the injected CA bundle")
830+
g.Expect(len(cm.Data[trustedCABundleKey])).Should(BeNumerically(">", len(originalInjectedData)),
831+
"CNO-injected CA bundle should have grown after adding a cert")
832832
}, highTimeout, slowPollInterval).Should(Succeed())
833833

834834
// --- Verify operator propagated the change ---

0 commit comments

Comments
 (0)