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/03/15 18:40:29 UTC

[camel-k] 02/02: test: Add missing files to CLI e2e test suite

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

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

commit c03b6ff2adb54edadef3829e8d3c39f89e45a88a
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Mon Mar 15 18:09:22 2021 +0100

    test: Add missing files to CLI e2e test suite
---
 .../{ => cli}/files/timer-kamelet-usage.groovy     |  0
 e2e/common/cli/files/yaml.yaml                     | 28 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/e2e/common/files/timer-kamelet-usage.groovy b/e2e/common/cli/files/timer-kamelet-usage.groovy
similarity index 100%
rename from e2e/common/files/timer-kamelet-usage.groovy
rename to e2e/common/cli/files/timer-kamelet-usage.groovy
diff --git a/e2e/common/cli/files/yaml.yaml b/e2e/common/cli/files/yaml.yaml
new file mode 100644
index 0000000..9ccf652
--- /dev/null
+++ b/e2e/common/cli/files/yaml.yaml
@@ -0,0 +1,28 @@
+# ---------------------------------------------------------------------------
+# 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:yaml"
+    parameters:
+      period: "5000"
+    steps:
+      - set-header:
+          name: "m"
+          constant: "string!"
+      - set-body:
+          simple: "Magic${header.m}"
+      - to: "log:info"