From 9f684d43b0e20a172278ee1e187a426b08b240a9 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e2e/common/traits/camel_test.go b/e2e/common/traits/camel_test.go index aa41d69f9f..29360d263e 100644 --- a/e2e/common/traits/camel_test.go +++ b/e2e/common/traits/camel_test.go @@ -31,13 +31,15 @@ import ( . "github.com/apache/camel-k/v2/e2e/support" v1 "github.com/apache/camel-k/v2/pkg/apis/camel/v1" + "github.com/apache/camel-k/v2/pkg/util/log" ) func TestCamelTrait(t *testing.T) { RegisterTestingT(t) t.Run("properties changes should not rebuild", func(t *testing.T) { - name := "java" + name := "javapropertiesnorebuild" + log.Info("operator [%s][ns], integration [%s]", operatorID, ns, name) Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name, ).Execute()).To(Succeed()) @@ -46,6 +48,7 @@ func TestCamelTrait(t *testing.T) { Eventually(IntegrationLogs(ns, name), TestTimeoutShort).Should(ContainSubstring("Magicstring!")) integrationKit := IntegrationKit(ns, name)() + log.Info("change property for integration [%s], with lit [%s]", "java", integrationKit) Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name, "-p", "a=1", @@ -54,6 +57,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