From 91833216b7e4208c1a30bb1a678c61d8b7b5e2cb Mon Sep 17 00:00:00 2001 From: Gaelle Fournier Date: Tue, 24 Oct 2023 17:11:22 +0200 Subject: [PATCH] fix(e2e): Fix TestCamelTrait --- e2e/common/traits/camel_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/common/traits/camel_test.go b/e2e/common/traits/camel_test.go index aa41d69f9f..ff3d190571 100644 --- a/e2e/common/traits/camel_test.go +++ b/e2e/common/traits/camel_test.go @@ -37,7 +37,7 @@ func TestCamelTrait(t *testing.T) { RegisterTestingT(t) t.Run("properties changes should not rebuild", func(t *testing.T) { - name := "java" + name := "javapropertiesnorebuild" Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name, ).Execute()).To(Succeed()) @@ -54,6 +54,9 @@ func TestCamelTrait(t *testing.T) { Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(corev1.ConditionTrue)) Eventually(IntegrationLogs(ns, name), TestTimeoutShort).Should(ContainSubstring("Magicstring!")) Eventually(IntegrationKit(ns, name)).Should(Equal(integrationKit)) + + Expect(Kamel("delete", name, "-n", ns).Execute()).To(Succeed()) + Eventually(Integration(ns, name), TestTimeoutLong).Should(BeNil()) }) // Clean-up