Skip to content

Commit a2e7514

Browse files
Merge pull request #413 from chiragkyal/update-bundle-e2e
CM-873: e2e: use size comparison for CA bundle propagation assertion
2 parents fd719a4 + c8294e0 commit a2e7514

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)