Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ on:
branches:
- main
- 1.6.x
- 1.8.x
push:
branches:
- main
- 1.6.x
- 1.8.x

jobs:
test:
runs-on: ubuntu-latest
env:
CAMEL_K_VERSION: 1.8.2
YAKS_VERSION: 0.10.0
YAKS_IMAGE_NAME: "docker.io/citrusframework/yaks"
YAKS_VERSION: "0.7.0"
YAKS_RUN_OPTIONS: "--timeout=15m"
KUBECTL_WAIT_TIMEOUT: "180s"
steps:
Expand Down Expand Up @@ -72,6 +75,8 @@ jobs:
kubectl describe nodes
- name: Camel K Tools
uses: container-tools/camel-k-action@v1
with:
version: v${{ env.CAMEL_K_VERSION }}
- name: Install Camel K
run: |
# Configure install options
Expand All @@ -91,3 +96,12 @@ jobs:
run: |
# Then run integration tests
yaks run test/integration.feature $YAKS_RUN_OPTIONS
- name: YAKS Report
if: failure()
run: |
yaks report
- uses: actions/upload-artifact@v2
if: failure()
with:
name: dumps
path: _output/*-dump.log
20 changes: 10 additions & 10 deletions test/integration.feature
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Feature: Basic

Background:
Given Camel-K resource polling configuration
Given Camel K resource polling configuration
| maxAttempts | 200 |
| delayBetweenAttempts | 2000 |

Scenario: Run Basic Camel-K integration
When load Camel-K integration Basic.java
Then Camel-K integration basic should be running
And Camel-K integration basic should print Hello World
When load Camel K integration Basic.java
Then Camel K integration basic should be running
And Camel K integration basic should print Hello World

Scenario: Run Routing Camel-K integration
Given Camel-K integration property file routing.properties
When load Camel-K integration Routing.java
Then Camel-K integration routing should be running
Then Camel-K integration routing should print Standard item: door
Then Camel-K integration routing should print !!Priority item: engine
Scenario: Run Routing Camel K integration
Given Camel K integration property file routing.properties
When load Camel K integration Routing.java
Then Camel K integration routing should be running
Then Camel K integration routing should print Standard item: door
Then Camel K integration routing should print !!Priority item: engine
9 changes: 9 additions & 0 deletions test/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ config:
- ../Basic.java
- ../Routing.java
- ../routing.properties
dump:
enabled: true
failedOnly: true
includes:
- app=camel-k
post:
- name: print dump
if: env:CI=true && failure()
run: kamel dump