You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/08/19 17:51:32 UTC

[camel-k] branch main updated (7debc8f -> 2f03e96)

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

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


    from 7debc8f  feat(trait): container image pull policy
     new 5ec3548  rest_test integrations to YAML
     new aba09ff  cron_test integrations to YAML
     new 2f03e96  Not used resources (integrations) were deleted

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 e2e/common/cron_test.go                            |  8 +++---
 e2e/common/files/RestConsumer.java                 | 29 ----------------------
 e2e/common/files/RestProducer.groovy               | 19 --------------
 e2e/common/files/cron-fallback.groovy              | 23 -----------------
 .../files/{cron-yaml.yaml => cron-fallback.yaml}   |  6 ++---
 e2e/common/files/cron-quartz.groovy                | 23 -----------------
 .../files/{cron-yaml.yaml => cron-quartz.yaml}     | 12 +++++----
 e2e/common/files/cron-timer.groovy                 | 23 -----------------
 .../files/{cron-yaml.yaml => cron-timer.yaml}      | 13 ++++++----
 e2e/common/files/cron.groovy                       | 23 -----------------
 e2e/common/files/{cron-yaml.yaml => cron.yaml}     |  4 +--
 .../rest-consumer.yaml}                            | 18 ++++++++------
 .../flow.yaml => common/files/rest-producer.yaml}  |  9 ++++---
 e2e/common/rest_test.go                            |  8 +++---
 14 files changed, 43 insertions(+), 175 deletions(-)
 delete mode 100644 e2e/common/files/RestConsumer.java
 delete mode 100644 e2e/common/files/RestProducer.groovy
 delete mode 100644 e2e/common/files/cron-fallback.groovy
 copy e2e/common/files/{cron-yaml.yaml => cron-fallback.yaml} (95%)
 delete mode 100644 e2e/common/files/cron-quartz.groovy
 copy e2e/common/files/{cron-yaml.yaml => cron-quartz.yaml} (90%)
 delete mode 100644 e2e/common/files/cron-timer.groovy
 copy e2e/common/files/{cron-yaml.yaml => cron-timer.yaml} (90%)
 delete mode 100644 e2e/common/files/cron.groovy
 copy e2e/common/files/{cron-yaml.yaml => cron.yaml} (98%)
 copy e2e/common/{languages/files/yaml-polyglot.yaml => files/rest-consumer.yaml} (81%)
 copy e2e/{knative/files/flow.yaml => common/files/rest-producer.yaml} (87%)

[camel-k] 03/03: Not used resources (integrations) were deleted

Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 2f03e965d27bd2575c2dd55893d413cdfe407d27
Author: Vladislav Sokolovskii <vs...@redhat.com>
AuthorDate: Thu Aug 19 15:09:19 2021 +0200

    Not used resources (integrations) were deleted
---
 e2e/common/files/RestConsumer.java    | 29 -----------------------------
 e2e/common/files/RestProducer.groovy  | 19 -------------------
 e2e/common/files/cron-fallback.groovy | 23 -----------------------
 e2e/common/files/cron-quartz.groovy   | 23 -----------------------
 e2e/common/files/cron-timer.groovy    | 23 -----------------------
 e2e/common/files/cron.groovy          | 23 -----------------------
 6 files changed, 140 deletions(-)

diff --git a/e2e/common/files/RestConsumer.java b/e2e/common/files/RestConsumer.java
deleted file mode 100644
index bcdfbdb..0000000
--- a/e2e/common/files/RestConsumer.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.camel.builder.RouteBuilder;
-
-public class RestConsumer extends RouteBuilder {
-  @Override
-  public void configure() throws Exception {
-
-    rest("/customers")
-    .get("/{name}").to("direct:start");
-
-    from("direct:start").log("get ${header.name}").setBody(simple("${header.name} Doe"));
-  }
-}
diff --git a/e2e/common/files/RestProducer.groovy b/e2e/common/files/RestProducer.groovy
deleted file mode 100644
index 42e3e19..0000000
--- a/e2e/common/files/RestProducer.groovy
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-from('timer:tick').to('http:{{serviceName}}/customers/{{name}}')
-    .log('${body}')
diff --git a/e2e/common/files/cron-fallback.groovy b/e2e/common/files/cron-fallback.groovy
deleted file mode 100644
index ae2c5d9..0000000
--- a/e2e/common/files/cron-fallback.groovy
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-from('cron:tab?schedule=0/1+*+*+*+*+?')
-    .routeId('groovy')
-    .setHeader("m").constant("string!")
-    .setBody()
-        .simple('Magic${header.m}')
-    .to('log:info?showAll=false')
diff --git a/e2e/common/files/cron-quartz.groovy b/e2e/common/files/cron-quartz.groovy
deleted file mode 100644
index f1c41bb..0000000
--- a/e2e/common/files/cron-quartz.groovy
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-from('quartz:trigger?cron=0/1+*+*+*+*+?')
-    .routeId('groovy')
-    .setHeader("m").constant("string!")
-    .setBody()
-        .simple('Magic${header.m}')
-    .to('log:info?showAll=false')
diff --git a/e2e/common/files/cron-timer.groovy b/e2e/common/files/cron-timer.groovy
deleted file mode 100644
index 71edffe..0000000
--- a/e2e/common/files/cron-timer.groovy
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-from('timer:tick?period=60000')
-    .routeId('groovy')
-    .setHeader("m").constant("string!")
-    .setBody()
-        .simple('Magic${header.m}')
-    .to('log:info?showAll=false')
diff --git a/e2e/common/files/cron.groovy b/e2e/common/files/cron.groovy
deleted file mode 100644
index dbc26bc..0000000
--- a/e2e/common/files/cron.groovy
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-from('cron:tab?schedule=*+*+*+*+?')
-    .routeId('groovy')
-    .setHeader("m").constant("string!")
-    .setBody()
-        .simple('Magic${header.m}')
-    .to('log:info?showAll=false')

[camel-k] 01/03: rest_test integrations to YAML

Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 5ec35485ccefe26823d3cd084c1133b996652722
Author: Vladislav Sokolovskii <vs...@redhat.com>
AuthorDate: Thu Mar 4 13:16:30 2021 +0100

    rest_test integrations to YAML
---
 e2e/common/cron_test.go             |  8 ++++----
 e2e/common/files/rest-consumer.yaml | 30 ++++++++++++++++++++++++++++++
 e2e/common/files/rest-producer.yaml | 24 ++++++++++++++++++++++++
 e2e/common/rest_test.go             |  8 ++++----
 4 files changed, 62 insertions(+), 8 deletions(-)

diff --git a/e2e/common/cron_test.go b/e2e/common/cron_test.go
index b04d7ee..950c52b 100644
--- a/e2e/common/cron_test.go
+++ b/e2e/common/cron_test.go
@@ -37,7 +37,7 @@ func TestRunCronExample(t *testing.T) {
 		Expect(Kamel("install", "-n", ns).Execute()).To(Succeed())
 
 		t.Run("cron", func(t *testing.T) {
-			Expect(Kamel("run", "-n", ns, "files/cron.groovy").Execute()).To(Succeed())
+			Expect(Kamel("run", "-n", ns, "files/cron.yaml").Execute()).To(Succeed())
 			Eventually(IntegrationCronJob(ns, "cron"), TestTimeoutMedium).ShouldNot(BeNil())
 			Eventually(IntegrationCondition(ns, "cron", camelv1.IntegrationConditionReady), TestTimeoutMedium).Should(Equal(v1.ConditionTrue))
 			Eventually(IntegrationLogs(ns, "cron"), TestTimeoutMedium).Should(ContainSubstring("Magicstring!"))
@@ -53,7 +53,7 @@ func TestRunCronExample(t *testing.T) {
 		})
 
 		t.Run("cron-timer", func(t *testing.T) {
-			Expect(Kamel("run", "-n", ns, "files/cron-timer.groovy").Execute()).To(Succeed())
+			Expect(Kamel("run", "-n", ns, "files/cron-timer.yaml").Execute()).To(Succeed())
 			Eventually(IntegrationCronJob(ns, "cron-timer"), TestTimeoutMedium).ShouldNot(BeNil())
 			Eventually(IntegrationCondition(ns, "cron-timer", camelv1.IntegrationConditionReady), TestTimeoutMedium).Should(Equal(v1.ConditionTrue))
 			Eventually(IntegrationLogs(ns, "cron-timer"), TestTimeoutMedium).Should(ContainSubstring("Magicstring!"))
@@ -61,7 +61,7 @@ func TestRunCronExample(t *testing.T) {
 		})
 
 		t.Run("cron-fallback", func(t *testing.T) {
-			Expect(Kamel("run", "-n", ns, "files/cron-fallback.groovy").Execute()).To(Succeed())
+			Expect(Kamel("run", "-n", ns, "files/cron-fallback.yaml").Execute()).To(Succeed())
 			Eventually(IntegrationPodPhase(ns, "cron-fallback"), TestTimeoutMedium).Should(Equal(v1.PodRunning))
 			Eventually(IntegrationCondition(ns, "cron-fallback", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
 			Eventually(IntegrationLogs(ns, "cron-fallback"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
@@ -69,7 +69,7 @@ func TestRunCronExample(t *testing.T) {
 		})
 
 		t.Run("cron-quartz", func(t *testing.T) {
-			Expect(Kamel("run", "-n", ns, "files/cron-quartz.groovy").Execute()).To(Succeed())
+			Expect(Kamel("run", "-n", ns, "files/cron-quartz.yaml").Execute()).To(Succeed())
 			Eventually(IntegrationPodPhase(ns, "cron-quartz"), TestTimeoutMedium).Should(Equal(v1.PodRunning))
 			Eventually(IntegrationCondition(ns, "cron-quartz", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
 			Eventually(IntegrationLogs(ns, "cron-quartz"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
diff --git a/e2e/common/files/rest-consumer.yaml b/e2e/common/files/rest-consumer.yaml
new file mode 100644
index 0000000..2b01f13
--- /dev/null
+++ b/e2e/common/files/rest-consumer.yaml
@@ -0,0 +1,30 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- rest:
+    verb:
+      - method: get
+        uri: "/customers/{name}"
+        to: "direct:start"
+
+- from:
+    uri: "direct:start"
+    steps:
+      - log:
+          message: "get ${header.name}"
+      - set-body:
+          simple: "${header.name} Doe"
diff --git a/e2e/common/files/rest-producer.yaml b/e2e/common/files/rest-producer.yaml
new file mode 100644
index 0000000..1693bee
--- /dev/null
+++ b/e2e/common/files/rest-producer.yaml
@@ -0,0 +1,24 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- from:
+    uri: "timer:tick"
+    steps:
+      - to:
+          uri: "http:{{serviceName}}/customers/{{name}}"
+      - log:
+          message: "${body}"
diff --git a/e2e/common/rest_test.go b/e2e/common/rest_test.go
index e932dd9..fd7908a 100644
--- a/e2e/common/rest_test.go
+++ b/e2e/common/rest_test.go
@@ -48,17 +48,17 @@ func TestRunRest(t *testing.T) {
 		}
 
 		Expect(Kamel("install", "-n", ns, "--trait-profile", profile).Execute()).To(Succeed())
-		Expect(Kamel("run", "-n", ns, "files/RestConsumer.java").Execute()).To(Succeed())
+		Expect(Kamel("run", "-n", ns, "files/rest-consumer.yaml").Execute()).To(Succeed())
 		Eventually(IntegrationPodPhase(ns, "rest-consumer"), TestTimeoutMedium).Should(Equal(v1.PodRunning))
 
 		t.Run("Service works", func(t *testing.T) {
 			name := "John"
 			service := Service(ns, "rest-consumer")
 			Eventually(service, TestTimeoutShort).ShouldNot(BeNil())
-			Expect(Kamel("run", "-n", ns, "files/RestProducer.groovy", "-p", "serviceName=rest-consumer", "-p", "name="+name).Execute()).To(Succeed())
+			Expect(Kamel("run", "-n", ns, "files/rest-producer.yaml", "-p", "serviceName=rest-consumer", "-p", "name="+name).Execute()).To(Succeed())
 			Eventually(IntegrationPodPhase(ns, "rest-producer"), TestTimeoutMedium).Should(Equal(v1.PodRunning))
-			Eventually(IntegrationLogs(ns, "rest-consumer"), TestTimeoutShort).Should(ContainSubstring(fmt.Sprintf("get %s", name)))
-			Eventually(IntegrationLogs(ns, "rest-producer"), TestTimeoutShort).Should(ContainSubstring(fmt.Sprintf("%s Doe", name)))
+			Eventually(IntegrationLogs(ns, "rest-consumer"), TestTimeoutLong).Should(ContainSubstring(fmt.Sprintf("get %s", name)))
+			Eventually(IntegrationLogs(ns, "rest-producer"), TestTimeoutLong).Should(ContainSubstring(fmt.Sprintf("%s Doe", name)))
 		})
 
 		if ocp {

[camel-k] 02/03: cron_test integrations to YAML

Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit aba09fff14616dd7e5eb7706002633819dc2bfa3
Author: Vladislav Sokolovskii <vs...@redhat.com>
AuthorDate: Sat Jul 17 15:48:14 2021 +0300

    cron_test integrations to YAML
---
 e2e/common/files/cron-fallback.yaml | 31 +++++++++++++++++++++++++++++++
 e2e/common/files/cron-quartz.yaml   | 33 +++++++++++++++++++++++++++++++++
 e2e/common/files/cron-timer.yaml    | 34 ++++++++++++++++++++++++++++++++++
 e2e/common/files/cron.yaml          | 31 +++++++++++++++++++++++++++++++
 4 files changed, 129 insertions(+)

diff --git a/e2e/common/files/cron-fallback.yaml b/e2e/common/files/cron-fallback.yaml
new file mode 100644
index 0000000..c80e309
--- /dev/null
+++ b/e2e/common/files/cron-fallback.yaml
@@ -0,0 +1,31 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- from: 
+    uri: "cron:tab"
+    parameters:
+      schedule: "0/1 * * * * ?"
+    steps:
+      - set-header:
+          name: "m"
+          constant: "string!"
+      - set-body:
+          simple: "Magic${header.m}"
+      - to: 
+          uri: "log:info"
+          parameters:
+            show-all: "false"
diff --git a/e2e/common/files/cron-quartz.yaml b/e2e/common/files/cron-quartz.yaml
new file mode 100644
index 0000000..a036b5c
--- /dev/null
+++ b/e2e/common/files/cron-quartz.yaml
@@ -0,0 +1,33 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+    id: "yaml"
+    from: 
+      uri: "quartz:trigger"
+      parameters:
+        cron: "0/1 * * * * ?"
+    steps:
+      - set-header:
+          name: "m"
+          constant: "string!"
+      - set-body:
+          simple: "Magic${header.m}"
+      - to: 
+          uri: "log:info"
+          parameters:
+            show-all: "false"
diff --git a/e2e/common/files/cron-timer.yaml b/e2e/common/files/cron-timer.yaml
new file mode 100644
index 0000000..1b36023
--- /dev/null
+++ b/e2e/common/files/cron-timer.yaml
@@ -0,0 +1,34 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+    id: "yaml"
+    from: 
+      uri: "timer:tick"
+      parameters:
+        period: "60000"
+    steps:
+      - set-header:
+          name: "m"
+          constant: "string!"
+      - set-body:
+          simple: "Magic${header.m}"
+      - to: 
+          uri: "log:info"
+          parameters:
+            show-all: "false"
+            
\ No newline at end of file
diff --git a/e2e/common/files/cron.yaml b/e2e/common/files/cron.yaml
new file mode 100644
index 0000000..4290e10
--- /dev/null
+++ b/e2e/common/files/cron.yaml
@@ -0,0 +1,31 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- from: 
+    uri: "cron:tab"
+    parameters:
+      schedule: "* * * * ?"
+    steps:
+      - set-header:
+          name: "m"
+          constant: "string!"
+      - set-body:
+          simple: "Magic${header.m}"
+      - to: 
+          uri: "log:info"
+          parameters:
+            show-all: "false"