Skip to content

Commit

Permalink
Start migration of test Kamel -> CamelK
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Mar 6, 2024
1 parent f5aa28b commit 01eb47e
Show file tree
Hide file tree
Showing 22 changed files with 62 additions and 62 deletions.
4 changes: 2 additions & 2 deletions e2e/common/languages/groovy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func TestRunSimpleGroovyExamples(t *testing.T) {
RegisterTestingT(t)

t.Run("run groovy", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/groovy.groovy").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/groovy.groovy").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "groovy"), TestTimeoutLong).Should(Equal(v1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "groovy", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
Eventually(IntegrationLogs(ns, "groovy"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
4 changes: 2 additions & 2 deletions e2e/common/languages/java_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func TestRunSimpleJavaExamples(t *testing.T) {
RegisterTestingT(t)

t.Run("run java", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/Java.java").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/Java.java").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "java"), TestTimeoutLong).Should(Equal(v1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "java", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
Eventually(IntegrationLogs(ns, "java"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
4 changes: 2 additions & 2 deletions e2e/common/languages/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func TestRunSimpleJavaScriptExamples(t *testing.T) {
RegisterTestingT(t)

t.Run("run js", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/js.js").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/js.js").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "js"), TestTimeoutLong).Should(Equal(v1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "js", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
Eventually(IntegrationLogs(ns, "js"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
4 changes: 2 additions & 2 deletions e2e/common/languages/kotlin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func TestRunSimpleKotlinExamples(t *testing.T) {
RegisterTestingT(t)

t.Run("run kotlin", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/kotlin.kts").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/kotlin.kts").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "kotlin"), TestTimeoutLong).Should(Equal(v1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "kotlin", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
Eventually(IntegrationLogs(ns, "kotlin"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
4 changes: 2 additions & 2 deletions e2e/common/languages/polyglot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ func TestRunPolyglotExamples(t *testing.T) {
RegisterTestingT(t)

t.Run("run polyglot", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "--name", "polyglot", "files/js-polyglot.js", "files/yaml-polyglot.yaml").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "--name", "polyglot", "files/js-polyglot.js", "files/yaml-polyglot.yaml").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "polyglot"), TestTimeoutLong).Should(Equal(v1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "polyglot", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
Eventually(IntegrationLogs(ns, "polyglot"), TestTimeoutShort).Should(ContainSubstring("Magicpolyglot-yaml"))
Eventually(IntegrationLogs(ns, "polyglot"), TestTimeoutShort).Should(ContainSubstring("Magicpolyglot-js"))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
4 changes: 2 additions & 2 deletions e2e/common/languages/xml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func TestRunSimpleXmlExamples(t *testing.T) {
RegisterTestingT(t)

t.Run("run xml", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/xml.xml").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/xml.xml").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "xml"), TestTimeoutLong).Should(Equal(v1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "xml", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
Eventually(IntegrationLogs(ns, "xml"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
4 changes: 2 additions & 2 deletions e2e/common/languages/yaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func TestRunSimpleYamlExamples(t *testing.T) {
RegisterTestingT(t)

t.Run("run yaml", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/yaml.yaml").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/yaml.yaml").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "yaml"), TestTimeoutLong).Should(Equal(v1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "yaml", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
Eventually(IntegrationLogs(ns, "yaml"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
2 changes: 1 addition & 1 deletion e2e/common/misc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ func TestClientFunctionalities(t *testing.T) {
err = camel.CamelV1().Integrations(ns).Delete(TestContext, "dummy", metav1.DeleteOptions{})
assert.Nil(t, err)

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
12 changes: 6 additions & 6 deletions e2e/common/misc/cron_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,39 +37,39 @@ func TestRunCronExample(t *testing.T) {
RegisterTestingT(t)

t.Run("cron", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/cron.yaml").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/cron.yaml").Execute()).To(Succeed())
Eventually(IntegrationCronJob(ns, "cron"), TestTimeoutMedium).ShouldNot(BeNil())
Eventually(IntegrationConditionStatus(ns, "cron", v1.IntegrationConditionReady), TestTimeoutMedium).Should(Equal(corev1.ConditionTrue))
Eventually(IntegrationLogs(ns, "cron"), TestTimeoutMedium).Should(ContainSubstring("Magicstring!"))
})

t.Run("cron-yaml", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/cron-yaml.yaml").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/cron-yaml.yaml").Execute()).To(Succeed())
Eventually(IntegrationCronJob(ns, "cron-yaml"), TestTimeoutMedium).ShouldNot(BeNil())
Eventually(IntegrationConditionStatus(ns, "cron-yaml", v1.IntegrationConditionReady), TestTimeoutMedium).Should(Equal(corev1.ConditionTrue))
Eventually(IntegrationLogs(ns, "cron-yaml"), TestTimeoutMedium).Should(ContainSubstring("Magicstring!"))
})

t.Run("cron-timer", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/cron-timer.yaml").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/cron-timer.yaml").Execute()).To(Succeed())
Eventually(IntegrationCronJob(ns, "cron-timer"), TestTimeoutMedium).ShouldNot(BeNil())
Eventually(IntegrationConditionStatus(ns, "cron-timer", v1.IntegrationConditionReady), TestTimeoutMedium).Should(Equal(corev1.ConditionTrue))
Eventually(IntegrationLogs(ns, "cron-timer"), TestTimeoutMedium).Should(ContainSubstring("Magicstring!"))
})

t.Run("cron-fallback", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/cron-fallback.yaml").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/cron-fallback.yaml").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "cron-fallback"), TestTimeoutLong).Should(Equal(corev1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "cron-fallback", v1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(corev1.ConditionTrue))
Eventually(IntegrationLogs(ns, "cron-fallback"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
})

t.Run("cron-quartz", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/cron-quartz.yaml").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/cron-quartz.yaml").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "cron-quartz"), TestTimeoutLong).Should(Equal(corev1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "cron-quartz", v1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(corev1.ConditionTrue))
Eventually(IntegrationLogs(ns, "cron-quartz"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
20 changes: 10 additions & 10 deletions e2e/common/misc/integration_fail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestBadRouteIntegration(t *testing.T) {

t.Run("run bad java route", func(t *testing.T) {
name := RandomizedSuffixName("bad-route")
Expect(KamelRunWithID(operatorID, ns, "files/BadRoute.java", "--name", name).Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/BadRoute.java", "--name", name).Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, name), TestTimeoutLong).Should(Equal(corev1.PodRunning))
Eventually(IntegrationPhase(ns, name), TestTimeoutShort).Should(Equal(v1.IntegrationPhaseError))
Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).
Expand All @@ -63,7 +63,7 @@ func TestBadRouteIntegration(t *testing.T) {

t.Run("run missing dependency java route", func(t *testing.T) {
name := RandomizedSuffixName("java-route")
Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name,
Expect(CamelKRunWithID(operatorID, ns, "files/Java.java", "--name", name,
"-d", "mvn:com.example:nonexistent:1.0").Execute()).To(Succeed())
// Integration in error
Eventually(IntegrationPhase(ns, name), TestTimeoutLong).Should(Equal(v1.IntegrationPhaseError))
Expand All @@ -82,7 +82,7 @@ func TestBadRouteIntegration(t *testing.T) {
Eventually(build.Status.Failure.Recovery.Attempt, TestTimeoutShort).Should(Equal(5))

// Fixing the route should reconcile the Integration
Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())
Eventually(IntegrationPhase(ns, name), TestTimeoutLong).Should(Equal(v1.IntegrationPhaseRunning))
// New Kit success
kitRecoveryName := IntegrationKit(ns, name)()
Expand All @@ -97,7 +97,7 @@ func TestBadRouteIntegration(t *testing.T) {

t.Run("run invalid dependency java route", func(t *testing.T) {
name := RandomizedSuffixName("invalid-dependency")
Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name,
Expect(CamelKRunWithID(operatorID, ns, "files/Java.java", "--name", name,
"-d", "camel:non-existent").Execute()).To(Succeed())
// Integration in error with Initialization Failed condition
Eventually(IntegrationPhase(ns, name), TestTimeoutLong).Should(Equal(v1.IntegrationPhaseError))
Expand All @@ -111,7 +111,7 @@ func TestBadRouteIntegration(t *testing.T) {
Consistently(IntegrationKit(ns, name), 10*time.Second).Should(BeEmpty())

// Fixing the route should reconcile the Integration in Initialization Failed condition to Running
Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, name), TestTimeoutLong).Should(Equal(corev1.PodRunning))
Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).
Should(Equal(corev1.ConditionTrue))
Expand All @@ -127,7 +127,7 @@ func TestBadRouteIntegration(t *testing.T) {

t.Run("run unresolvable component java route", func(t *testing.T) {
name := RandomizedSuffixName("unresolvable-route")
Expect(KamelRunWithID(operatorID, ns, "files/Unresolvable.java", "--name", name).Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/Unresolvable.java", "--name", name).Execute()).To(Succeed())
// Integration in error with Initialization Failed condition
Eventually(IntegrationPhase(ns, name), TestTimeoutShort).Should(Equal(v1.IntegrationPhaseError))
Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).
Expand All @@ -140,7 +140,7 @@ func TestBadRouteIntegration(t *testing.T) {
Consistently(IntegrationKit(ns, name), 10*time.Second).Should(BeEmpty())

// Fixing the route should reconcile the Integration in Initialization Failed condition to Running
Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, name), TestTimeoutLong).Should(Equal(corev1.PodRunning))
Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).
Should(Equal(corev1.ConditionTrue))
Expand All @@ -156,7 +156,7 @@ func TestBadRouteIntegration(t *testing.T) {

t.Run("run invalid java route", func(t *testing.T) {
name := RandomizedSuffixName("invalid-java-route")
Expect(KamelRunWithID(operatorID, ns, "files/InvalidJava.java", "--name", name).Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/InvalidJava.java", "--name", name).Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, name), TestTimeoutLong).Should(Equal(corev1.PodRunning))
Eventually(IntegrationPhase(ns, name), TestTimeoutShort).Should(Equal(v1.IntegrationPhaseError))
Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).
Expand All @@ -169,7 +169,7 @@ func TestBadRouteIntegration(t *testing.T) {
Eventually(KitPhase(integrationKitNamespace, kitName), TestTimeoutShort).Should(Equal(v1.IntegrationKitPhaseReady))

// Fixing the route should reconcile the Integration in Initialization Failed condition to Running
Expect(KamelRunWithID(operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, name), TestTimeoutLong).Should(Equal(corev1.PodRunning))
Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).
Should(Equal(corev1.ConditionTrue))
Expand All @@ -181,5 +181,5 @@ func TestBadRouteIntegration(t *testing.T) {

})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
6 changes: 3 additions & 3 deletions e2e/common/misc/integration_trait_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ func TestTraitUpdates(t *testing.T) {

t.Run("run and update trait", func(t *testing.T) {
name := RandomizedSuffixName("yaml-route")
Expect(KamelRunWithID(operatorID, ns, "files/yaml.yaml", "--name", name).Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/yaml.yaml", "--name", name).Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, name), TestTimeoutLong).Should(Equal(corev1.PodRunning))
Eventually(IntegrationConditionStatus(ns, name, v1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(corev1.ConditionTrue))
var numberOfPods = func(pods *int32) bool {
return *pods >= 1 && *pods <= 2
}
// Adding a property will change the camel trait
Expect(KamelRunWithID(operatorID, ns, "files/yaml.yaml", "--name", name, "-p", "hello=world").Execute()).To(Succeed())
Expect(CamelKRunWithID(operatorID, ns, "files/yaml.yaml", "--name", name, "-p", "hello=world").Execute()).To(Succeed())
Consistently(IntegrationPodsNumbers(ns, name), TestTimeoutShort, 1*time.Second).Should(Satisfy(numberOfPods))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
4 changes: 2 additions & 2 deletions e2e/common/misc/kamelet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ spec:

// Basic
t.Run("test basic case", func(t *testing.T) {
Expect(KamelRunWithID(operatorID, ns, "files/TimerKameletIntegration.java", "-t", "kamelets.enabled=false",
Expect(CamelKRunWithID(operatorID, ns, "files/TimerKameletIntegration.java", "-t", "kamelets.enabled=false",
"--resource", "configmap:my-kamelet-cm@/kamelets",
"-p camel.component.kamelet.location=file:/kamelets",
"-d", "camel:yaml-dsl",
Expand All @@ -130,5 +130,5 @@ spec:
Expect(kameletsTrait["enabled"]).To(Equal(false))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
2 changes: 1 addition & 1 deletion e2e/common/misc/kamelet_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestBundleKameletUpdate(t *testing.T) {
Consistently(Kamelet("user-sink", ns), 5*time.Second, 1*time.Second).
Should(WithTransform(KameletLabels, HaveKeyWithValue(customLabel, "true")))

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}

func createBundleKamelet(ns string, name string) func() error {
Expand Down
4 changes: 2 additions & 2 deletions e2e/common/misc/maven_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
func TestRunExtraRepository(t *testing.T) {
RegisterTestingT(t)
name := RandomizedSuffixName("java")
Expect(KamelRunWithID(operatorID, ns, "files/Java.java",
Expect(CamelKRunWithID(operatorID, ns, "files/Java.java",
"--maven-repository", "https://maven.repository.redhat.com/ga@id=redhat",
"--dependency", "mvn:org.jolokia:jolokia-core:1.7.1.redhat-00001",
"--name", name,
Expand All @@ -50,5 +50,5 @@ func TestRunExtraRepository(t *testing.T) {
HaveField("Repositories", ContainElements("https://maven.repository.redhat.com/ga@id=redhat")),
)))

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
2 changes: 1 addition & 1 deletion e2e/common/misc/pipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func TestPipe(t *testing.T) {
)))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}

func createErrorProducerKamelet(ns string, name string) func() error {
Expand Down
2 changes: 1 addition & 1 deletion e2e/common/misc/pipe_with_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ func TestPipeWithImage(t *testing.T) {
Should(Equal(expectedImage))
})

Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
Expect(CamelK("delete", "--all", "-n", ns).Execute()).To(Succeed())
}
Loading

0 comments on commit 01eb47e

Please sign in to comment.