essobedo commented on code in PR #3623: URL: https://github.com/apache/camel-k/pull/3623#discussion_r966713905
########## e2e/global/common/kamelet_test.go: ########## @@ -41,18 +41,40 @@ func TestKameletClasspathLoading(t *testing.T) { Eventually(Kamelet(kameletName, ns)).Should(BeNil()) - Expect(KamelRunWithID(operatorID, ns, "files/TimerKameletIntegration.java", "-t", "kamelets.enabled=false", - "--resource", "file:files/timer-source.kamelet.yaml@/kamelets/timer-source.kamelet.yaml", - "-p camel.component.kamelet.location=file:/kamelets", - "-d", "camel:yaml-dsl", - // kamelet dependencies - "-d", "camel:timer").Execute()).To(Succeed()) - Eventually(IntegrationPodPhase(ns, "timer-kamelet-integration"), TestTimeoutLong).Should(Equal(corev1.PodRunning)) - - Eventually(IntegrationLogs(ns, "timer-kamelet-integration")).Should(ContainSubstring("important message")) - - // Cleanup - Expect(Kamel("delete", "--all", "-n", ns).Execute()).Should(BeNil()) + // Basic + t.Run("test basic case", func(t *testing.T) { + + Expect(KamelRunWithID(operatorID, ns, "files/TimerKameletIntegration.java", "-t", "kamelets.enabled=false", + "--resource", "file:files/timer-source.kamelet.yaml@/kamelets/timer-source.kamelet.yaml", + "-p camel.component.kamelet.location=file:/kamelets", + "-d", "camel:yaml-dsl", + // kamelet dependencies + "-d", "camel:timer").Execute()).To(Succeed()) + Eventually(IntegrationPodPhase(ns, "timer-kamelet-integration"), TestTimeoutLong).Should(Equal(corev1.PodRunning)) + + Eventually(IntegrationLogs(ns, "timer-kamelet-integration")).Should(ContainSubstring("important message")) + + // Cleanup + Expect(Kamel("delete", "--all", "-n", ns).Execute()).Should(BeNil()) + }) + + // Custom repo + t.Run("test custom Kamelet repository", func(t *testing.T) { + + // Add the custom repository + Expect(Kamel("kamelet", "add-repo", "github:essobedo/camel-k-test/kamelets", "-n", ns, "-x", operatorID).Execute()).To(Succeed()) + + Expect(KamelRunWithID(operatorID, ns, "files/TimerCustomKameletIntegration.java", + "-d", "camel:yaml-dsl", Review Comment: I confirm that it works without them, thx -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org