You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/03/09 15:37:45 UTC
[camel-k] 05/06: chore: tweak tests
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch release-1.10.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 63339f0348ed6da72a819b6142a53e04e532180f
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu Mar 9 11:11:24 2023 +0100
chore: tweak tests
---
e2e/namespace/install/cli/run_test.go | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/e2e/namespace/install/cli/run_test.go b/e2e/namespace/install/cli/run_test.go
index e367f6356..589f5d6ed 100644
--- a/e2e/namespace/install/cli/run_test.go
+++ b/e2e/namespace/install/cli/run_test.go
@@ -51,7 +51,7 @@ func TestKamelCLIRun(t *testing.T) {
Eventually(IntegrationConditionStatus(ns, "java", v1.IntegrationConditionReady), TestTimeoutShort).
Should(Equal(corev1.ConditionTrue))
Eventually(IntegrationLogs(ns, "java"), TestTimeoutShort).Should(ContainSubstring("Hello Camel K!"))
- Eventually(DeleteIntegrations(ns), TestTimeoutLong).Should(Equal(0))
+ Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
})
t.Run("Java (RAW)", func(t *testing.T) {
@@ -62,7 +62,7 @@ func TestKamelCLIRun(t *testing.T) {
Eventually(IntegrationConditionStatus(ns, "java", v1.IntegrationConditionReady), TestTimeoutShort).
Should(Equal(corev1.ConditionTrue))
Eventually(IntegrationLogs(ns, "java"), TestTimeoutShort).Should(ContainSubstring("Hello Camel K!"))
- Eventually(DeleteIntegrations(ns), TestTimeoutLong).Should(Equal(0))
+ Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
})
t.Run("Java (branch)", func(t *testing.T) {
@@ -72,7 +72,7 @@ func TestKamelCLIRun(t *testing.T) {
Eventually(IntegrationConditionStatus(ns, "java", v1.IntegrationConditionReady), TestTimeoutShort).
Should(Equal(corev1.ConditionTrue))
Eventually(IntegrationLogs(ns, "java"), TestTimeoutShort).Should(ContainSubstring("Hello Camel K!"))
- Eventually(DeleteIntegrations(ns), TestTimeoutLong).Should(Equal(0))
+ Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
})
t.Run("Gist (ID)", func(t *testing.T) {
@@ -98,9 +98,6 @@ func TestKamelCLIRun(t *testing.T) {
Eventually(IntegrationLogs(ns, name), TestTimeoutShort).Should(ContainSubstring("Tick!"))
Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
})
-
- // Clean up
- Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
})
t.Run("Run and update", func(t *testing.T) {