You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2021/06/11 14:24:21 UTC

[camel-k] 09/25: chore(e2e): remove duplicate test in knative tests

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

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

commit 607fa91a662c4a607da4406821c63c339d31c63b
Author: Tadayoshi Sato <sa...@gmail.com>
AuthorDate: Tue Jun 8 14:18:26 2021 +0900

    chore(e2e): remove duplicate test in knative tests
    
    The two tests are identical except method names.
---
 e2e/knative/knative_test.go | 13 -------------
 e2e/support/test_support.go | 16 ----------------
 2 files changed, 29 deletions(-)

diff --git a/e2e/knative/knative_test.go b/e2e/knative/knative_test.go
index cd655f0..b2fc785 100644
--- a/e2e/knative/knative_test.go
+++ b/e2e/knative/knative_test.go
@@ -56,19 +56,6 @@ func TestRunServiceCombo(t *testing.T) {
 	})
 }
 
-func TestRunChannelComboV1Alpha1(t *testing.T) {
-	WithNewTestNamespace(t, func(ns string) {
-		Expect(CreateKnativeChannelv1Alpha1(ns, "messages")()).To(Succeed())
-		Expect(Kamel("install", "-n", ns, "--trait-profile", "knative").Execute()).To(Succeed())
-		Expect(Kamel("run", "-n", ns, "files/knativech2.groovy").Execute()).To(Succeed())
-		Expect(Kamel("run", "-n", ns, "files/knativech1.groovy").Execute()).To(Succeed())
-		Eventually(IntegrationPodPhase(ns, "knativech2"), TestTimeoutLong).Should(Equal(v1.PodRunning))
-		Eventually(IntegrationPodPhase(ns, "knativech1"), TestTimeoutLong).Should(Equal(v1.PodRunning))
-		Eventually(IntegrationLogs(ns, "knativech2"), TestTimeoutMedium).Should(ContainSubstring("Received: Hello from knativech1"))
-		Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
-	})
-}
-
 func TestRunChannelComboV1Beta1(t *testing.T) {
 	WithNewTestNamespace(t, func(ns string) {
 		Expect(CreateKnativeChannelv1Beta1(ns, "messages")()).To(Succeed())
diff --git a/e2e/support/test_support.go b/e2e/support/test_support.go
index 39a77c2..aa8c919 100644
--- a/e2e/support/test_support.go
+++ b/e2e/support/test_support.go
@@ -1021,22 +1021,6 @@ func CreateKamelPod(ns string, name string, command ...string) error {
 	Knative
 */
 
-func CreateKnativeChannelv1Alpha1(ns string, name string) func() error {
-	return func() error {
-		channel := messaging.InMemoryChannel{
-			TypeMeta: metav1.TypeMeta{
-				Kind:       "InMemoryChannel",
-				APIVersion: messaging.SchemeGroupVersion.String(),
-			},
-			ObjectMeta: metav1.ObjectMeta{
-				Namespace: ns,
-				Name:      name,
-			},
-		}
-		return TestClient().Create(TestContext, &channel)
-	}
-}
-
 func CreateKnativeChannelv1Beta1(ns string, name string) func() error {
 	return func() error {
 		channel := messaging.InMemoryChannel{