Repository: apache/camel-k (go)

Issue:
Add .flow example to e2e tests
Similar to https://github.com/apache/camel-k/blob/3a4c8823bf311a6d19972243fa1bee6391665fa3/e2e/run_test.go#L45-L51

Pull request description:
test(yaml): Add YAML e2e test
fixes #780

Patch:
diff --git a/pkg/builder/builder_steps.go b/pkg/builder/builder_steps.go
index 113b6467e..ea34d529a 100644
--- a/pkg/builder/builder_steps.go
+++ b/pkg/builder/builder_steps.go
@@ -161,13 +161,6 @@ func generateProject(ctx *Context) error {
 		}
 	}
 
-	// Add Log4j 2 SLF4J binding as default logging impl
-	ctx.Maven.Project.AddDependency(maven.Dependency{
-		GroupID:    "org.apache.logging.log4j",
-		ArtifactID: "log4j-slf4j-impl",
-		Scope:      "runtime",
-	})
-
 	return nil
 }
 


Test patch:
diff --git a/e2e/files/xml.xml b/e2e/files/xml.xml
index a656351ac..953ef8cb7 100644
--- a/e2e/files/xml.xml
+++ b/e2e/files/xml.xml
@@ -21,7 +21,7 @@
 
     <route id="hello">
         <from uri="timer:hello?period=3s"/>
-        <setHeader headerName="m">
+        <setHeader name="m">
             <constant>string!</constant>
         </setHeader>
         <setBody>
diff --git a/e2e/files/yaml.yaml b/e2e/files/yaml.yaml
new file mode 100644
index 000000000..f79e2b49c
--- /dev/null
+++ b/e2e/files/yaml.yaml
@@ -0,0 +1,12 @@
+- id: "yaml"
+  from:
+    uri: "timer:yaml"
+    parameters:
+      period: "5s"
+    steps:
+      - set-header:
+          name: "m"
+          constant: "string!"
+      - set-body:
+          simple: "Magic${header.m}"
+      - to: "log:info"
diff --git a/e2e/run_test.go b/e2e/run_test.go
index 550a685da..90d2a351d 100644
--- a/e2e/run_test.go
+++ b/e2e/run_test.go
@@ -74,5 +74,12 @@ func TestRunSimpleExamples(t *testing.T) {
 			Expect(kamel("delete", "--all", "-n", ns).Execute()).Should(BeNil())
 		})
 
+		t.Run("run yaml", func(t *testing.T) {
+			RegisterTestingT(t)
+			Expect(kamel("run", "-n", ns, "files/yaml.yaml").Execute()).Should(BeNil())
+			Eventually(integrationPodPhase(ns, "yaml"), 5*time.Minute).Should(Equal(v1.PodRunning))
+			Eventually(integrationLogs(ns, "yaml"), 1*time.Minute).Should(ContainSubstring("Magicstring!"))
+			Expect(kamel("delete", "--all", "-n", ns).Execute()).Should(BeNil())
+		})
 	})
 }
diff --git a/pkg/builder/builder_steps_test.go b/pkg/builder/builder_steps_test.go
index 30cfdbaf0..61f622c34 100644
--- a/pkg/builder/builder_steps_test.go
+++ b/pkg/builder/builder_steps_test.go
@@ -118,11 +118,6 @@ func TestGenerateJvmProject(t *testing.T) {
 				GroupID:    "org.apache.camel",
 				ArtifactID: "camel-properties",
 			},
-			{
-				GroupID:    "org.apache.logging.log4j",
-				ArtifactID: "log4j-slf4j-impl",
-				Scope:      "runtime",
-			},
 		},
 	)
 }
@@ -308,11 +303,6 @@ func TestGenerateGroovyProject(t *testing.T) {
 				GroupID:    "org.apache.camel",
 				ArtifactID: "camel-groovy",
 			},
-			{
-				GroupID:    "org.apache.logging.log4j",
-				ArtifactID: "log4j-slf4j-impl",
-				Scope:      "runtime",
-			},
 		},
 	)
 }