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/23 17:31:44 UTC

[camel-k] 03/03: test: Remove irrelevant operator upgrade test

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 5bd1c4601c6dad7e81b12a326a75182e1a91a680
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Tue Mar 23 15:31:58 2021 +0100

    test: Remove irrelevant operator upgrade test
---
 e2e/common/upgrade_test.go | 43 -------------------------------------------
 1 file changed, 43 deletions(-)

diff --git a/e2e/common/upgrade_test.go b/e2e/common/upgrade_test.go
index 4002f28..ede3a0c 100644
--- a/e2e/common/upgrade_test.go
+++ b/e2e/common/upgrade_test.go
@@ -27,8 +27,6 @@ import (
 
 	. "github.com/onsi/gomega"
 
-	v1 "k8s.io/api/core/v1"
-
 	. "github.com/apache/camel-k/e2e/support"
 	"github.com/apache/camel-k/pkg/util/defaults"
 )
@@ -55,44 +53,3 @@ func TestPlatformUpgrade(t *testing.T) {
 		Eventually(PlatformVersion(ns)).Should(Equal(defaults.Version))
 	})
 }
-
-func TestIntegrationUpgrade(t *testing.T) {
-	WithNewTestNamespace(t, func(ns string) {
-		Expect(Kamel("install", "-n", ns).Execute()).To(Succeed())
-		Eventually(PlatformVersion(ns)).Should(Equal(defaults.Version))
-
-		// Run an integration
-		Expect(Kamel("run", "-n", ns, "files/yaml.yaml").Execute()).To(Succeed())
-		Eventually(IntegrationPodPhase(ns, "yaml"), TestTimeoutMedium).Should(Equal(v1.PodRunning))
-		initialKit := IntegrationKit(ns, "yaml")()
-
-		// Scale the operator down to zero
-		Eventually(ScaleOperator(ns, 0)).Should(BeNil())
-		Eventually(OperatorPod(ns)).Should(BeNil())
-
-		// Change the version to an older one
-		Expect(SetIntegrationVersion(ns, "yaml", "an.older.one")).To(Succeed())
-		Expect(SetAllKitsVersion(ns, "an.older.one")).To(Succeed())
-		Eventually(IntegrationVersion(ns, "yaml")).Should(Equal("an.older.one"))
-		Eventually(KitsWithVersion(ns, "an.older.one")).Should(Equal(1))
-		Eventually(KitsWithVersion(ns, defaults.Version)).Should(Equal(0))
-
-		// Scale the operator up
-		Eventually(ScaleOperator(ns, 1)).Should(BeNil())
-		Eventually(OperatorPod(ns)).ShouldNot(BeNil())
-		Eventually(OperatorPodPhase(ns)).Should(Equal(v1.PodRunning))
-
-		// No auto-update expected
-		Consistently(IntegrationVersion(ns, "yaml"), 3*time.Second).Should(Equal("an.older.one"))
-
-		// Clear the integration status
-		Expect(Kamel("rebuild", "yaml", "-n", ns).Execute()).To(Succeed())
-
-		// Check the integration version change
-		Eventually(IntegrationVersion(ns, "yaml")).Should(Equal(defaults.Version))
-		Eventually(KitsWithVersion(ns, "an.older.one")).Should(Equal(1)) // old one is not recycled
-		Eventually(KitsWithVersion(ns, defaults.Version)).Should(Equal(1))
-		Eventually(IntegrationKit(ns, "yaml"), TestTimeoutMedium).ShouldNot(Equal(initialKit))
-		Eventually(IntegrationPodPhase(ns, "yaml"), TestTimeoutMedium).Should(Equal(v1.PodRunning))
-	})
-}