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
The following commit(s) were added to refs/heads/master by this push: new 9f0515e chore(test): test that propertyless kamelets can be bound 9f0515e is described below commit 9f0515e73db8553cc8f3225ec007d2c3649a4236 Author: nicolaferraro <ni.ferr...@gmail.com> AuthorDate: Thu Dec 10 12:44:55 2020 +0100 chore(test): test that propertyless kamelets can be bound --- deploy/resources.go | 4 ++-- .../kamelet-no-properties/kamelet-no-props.feature | 26 ++++++++++++++++++++++ .../common/kamelet-no-properties/yaks-config.yaml | 24 ++++++++++++++++++++ 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/deploy/resources.go b/deploy/resources.go index ad3eeba..5409381 100644 --- a/deploy/resources.go +++ b/deploy/resources.go @@ -147,9 +147,9 @@ var assets = func() http.FileSystem { "/crd-kamelet-binding.yaml": &vfsgen۰CompressedFileInfo{ name: "crd-kamelet-binding.yaml", modTime: time.Time{}, - uncompressedSize: 14756, + uncompressedSize: 45062, - compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x1b\x4d\x73\xdb\x36\xf6\xae\x5f\xf1\xc6\x3a\x24\x99\xb1\xa8\x26\xdd\xc3\x8e\xf6\xe4\x3a\xc9\xae\x36\xae\xed\xb1\x94\x76\x3a\x9d\x1e\x20\xf2\x89\xc2\x0a\x04\xb8\x00\x68\x59\xdb\xe9\x7f\xdf\x79\x0f\x24\x45\x49\x24\xad\xd8\x49\x7b\x31\x2f\xb6\x48\xf0\xe1\x7d\x7f\x82\x43\x18\x7d\xbd\x6b\x30\x84\x2b\x19\xa3\x76\x98\x80\x37\xe0\x57\x08\x17\xb9\x88\x57\x08\x33\xb3\xf4\x1b\x61\x11\x3e\x9a\x42\x27\xc2\x4b\xa3\xe1\xf5\xc5\x [...] + compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x3c\x69\x6f\xdc\x38\xb2\xdf\xfd\x2b\x0a\xf6\x02\x63\x03\x56\xdb\x6d\x3b\xd9\x99\x7e\x1f\x02\x8f\x93\xec\xeb\x37\x39\x0c\x1f\xbb\x98\x17\x67\x11\xb6\x54\xdd\xcd\x67\x89\xd4\x92\x94\xed\xde\x49\xfe\xfb\x03\x8b\x3a\xdb\xba\x7c\x64\xb2\x1f\x44\x60\x26\x6e\x89\x2a\x56\x15\xeb\x62\x91\xac\x2d\xf0\x9e\xaf\x6d\x6c\xc1\x3b\xee\xa3\xd0\x18\x80\x91\x60\x96\x08\xc7\x31\xf3\x97\x08\xe7\x72\x6e\x6e\x99\x42\x78\x2b\x13\x11\x30\x [...] }, "/crd-kamelet.yaml": &vfsgen۰CompressedFileInfo{ name: "crd-kamelet.yaml", diff --git a/e2e/yaks/common/kamelet-no-properties/kamelet-no-props.feature b/e2e/yaks/common/kamelet-no-properties/kamelet-no-props.feature new file mode 100644 index 0000000..04806ef --- /dev/null +++ b/e2e/yaks/common/kamelet-no-properties/kamelet-no-props.feature @@ -0,0 +1,26 @@ +Feature: Kamelet may have no properties + + Background: + Given Disable auto removal of Camel-K resources + Given Disable auto removal of Kamelet resources + + Scenario: Create Kamelet + Given create Kamelet no-props-source with flow +""" +from: + uri: timer:tick + steps: + - set-body: + constant: "Hello World" + - to: "kamelet:sink" +""" + Then Kamelet no-props-source should be available + + + Scenario: Bind Kamelet to service + Given create Kubernetes service greeting-service with target port 8080 + And bind Kamelet no-props-source to uri log:info + When create KameletBinding no-props-source-uri + Then KameletBinding no-props-source-uri should be available + Then Camel-K integration no-props-source-uri should be running + Then Camel-K integration no-props-source-uri should print Hello World diff --git a/e2e/yaks/common/kamelet-no-properties/yaks-config.yaml b/e2e/yaks/common/kamelet-no-properties/yaks-config.yaml new file mode 100644 index 0000000..95d9bf9 --- /dev/null +++ b/e2e/yaks/common/kamelet-no-properties/yaks-config.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. +# --------------------------------------------------------------------------- + +config: + namespace: + temporary: true +pre: +- name: installation + run: | + kamel install -n $YAKS_NAMESPACE