You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2019/12/17 09:47:21 UTC

[camel-k] 05/10: chore(test): add Quarkus e2e test

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

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

commit ebeea05696d069c500b288a83caf32c137810004
Author: Nicola Ferraro <ni...@gmail.com>
AuthorDate: Mon Dec 16 12:42:15 2019 +0100

    chore(test): add Quarkus e2e test
---
 e2e/run_test.go | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/e2e/run_test.go b/e2e/run_test.go
index 0d44047..c8e0f03 100644
--- a/e2e/run_test.go
+++ b/e2e/run_test.go
@@ -80,5 +80,14 @@ func TestRunSimpleExamples(t *testing.T) {
 			Eventually(integrationLogs(ns, "yaml"), 1*time.Minute).Should(ContainSubstring("Magicstring!"))
 			Expect(kamel("delete", "--all", "-n", ns).Execute()).Should(BeNil())
 		})
+
+		t.Run("run yaml Quarkus", func(t *testing.T) {
+			RegisterTestingT(t)
+			Expect(kamel("run", "-n", ns, "files/yaml.yaml", "-t", "quarkus.enabled=true").Execute()).Should(BeNil())
+			Eventually(integrationPodPhase(ns, "yaml"), 5*time.Minute).Should(Equal(v1.PodRunning))
+			Eventually(integrationLogs(ns, "yaml"), 1*time.Minute).Should(ContainSubstring("running on Quarkus"))
+			Eventually(integrationLogs(ns, "yaml"), 1*time.Minute).Should(ContainSubstring("Magicstring!"))
+			Expect(kamel("delete", "--all", "-n", ns).Execute()).Should(BeNil())
+		})
 	})
 }