You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/03/24 12:36:53 UTC

[camel-k] 06/07: fix(e2e): Increase timeouts

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit e038ed3278727bcefac4bc827fc4ed415d307cb4
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Tue Mar 23 19:33:51 2021 +0100

    fix(e2e): Increase timeouts
---
 e2e/upgrade/upgrade_operator_test.go | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/e2e/upgrade/upgrade_operator_test.go b/e2e/upgrade/upgrade_operator_test.go
index a26cce4..13b0960 100644
--- a/e2e/upgrade/upgrade_operator_test.go
+++ b/e2e/upgrade/upgrade_operator_test.go
@@ -45,7 +45,11 @@ func TestOperatorUpgrade(t *testing.T) {
 
 		Expect(Kamel("install", "--cluster-setup").Execute()).To(Succeed())
 		Expect(Kamel("install", "-n", ns).Execute()).To(Succeed())
-		Eventually(PlatformVersion(ns)).Should(Equal(version))
+
+		// Check the operator pod is running
+		Eventually(OperatorPodPhase(ns), TestTimeoutMedium).Should(Equal(v1.PodRunning))
+		// Check the IntegrationPlatform has been reconciled
+		Eventually(PlatformVersion(ns), TestTimeoutMedium).Should(Equal(version))
 
 		// Run the Integration
 		name := "yaml"
@@ -64,9 +68,12 @@ func TestOperatorUpgrade(t *testing.T) {
 		Expect(Kamel("install", "--cluster-setup", "--force").Execute()).To(Succeed())
 		Expect(Kamel("install", "-n", ns, "--force", "--operator-image", image).Execute()).To(Succeed())
 
+		// Check the operator image is the current built one
 		Eventually(OperatorImage(ns)).Should(Equal(image))
-		Eventually(OperatorPodPhase(ns)).Should(Equal(v1.PodRunning))
-		Eventually(PlatformVersion(ns)).Should(Equal(defaults.Version))
+		// Check the operator pod is running
+		Eventually(OperatorPodPhase(ns), TestTimeoutMedium).Should(Equal(v1.PodRunning))
+		// Check the IntegrationPlatform has been reconciled
+		Eventually(PlatformVersion(ns), TestTimeoutMedium).Should(Equal(defaults.Version))
 
 		// Check the Integration hasn't been upgraded
 		Consistently(IntegrationVersion(ns, "yaml"), 3*time.Second).Should(Equal(version))