Skip to content

Commit

Permalink
feat: Workflows - suites and cron triggers for dev and sandbox (#5810)
Browse files Browse the repository at this point in the history
* run script fixed - missing artillery workflow added

* test workflow suites - parallelism options added

* test workflow suites - full smoke and small smoke, cron triggers - dev full/small and sandbox small

* run script fixed - missing artillery workflow added - all

* artillery .yaml renamed

* workflow suites - labels added

* workflow suites - labels added
  • Loading branch information
tkonieczny authored Sep 4, 2024
1 parent 915992b commit 01fbdca
Show file tree
Hide file tree
Showing 15 changed files with 89 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/scripts/executor-tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ main() {
playwright-smoke
postman-smoke
soapui-smoke
workflow-artillery-smoke
workflow-cypress-smoke
workflow-gradle-smoke
workflow-jmeter-smoke
Expand All @@ -586,6 +587,7 @@ main() {
special-cases-jmeter
;;
workflow)
workflow-artillery-smoke
workflow-cypress-smoke
workflow-gradle-smoke
workflow-jmeter-smoke
Expand Down
1 change: 1 addition & 0 deletions test/suites/test-workflows/artillery-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: artillery-workflow-smoke
- name: artillery-workflow-smoke-template
14 changes: 14 additions & 0 deletions test/suites/test-workflows/cron/dev/full-smoke-cron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: TestWorkflow
apiVersion: testworkflows.testkube.io/v1
metadata:
name: tw-suite-full-smoke-cron-trigger
labels:
core-tests: workflows
spec:
steps:
- execute:
workflows:
- name: tw-suite-full-smoke
events:
- cronjob:
cron: "30 */4 * * *" # every 4 hours
14 changes: 14 additions & 0 deletions test/suites/test-workflows/cron/dev/small-smoke-cron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: TestWorkflow
apiVersion: testworkflows.testkube.io/v1
metadata:
name: tw-suite-small-smoke-cron-trigger
labels:
core-tests: workflows
spec:
steps:
- execute:
workflows:
- name: tw-suite-small-smoke
events:
- cronjob:
cron: "0,20,40 * * * *" # every 20 minutes
14 changes: 14 additions & 0 deletions test/suites/test-workflows/cron/sandbox/small-smoke-cron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: TestWorkflow
apiVersion: testworkflows.testkube.io/v1
metadata:
name: tw-suite-small-sandbox-smoke-cron-trigger
labels:
core-tests: workflows
spec:
steps:
- execute:
workflows:
- name: tw-suite-small-smoke
events:
- cronjob:
cron: "15 */2 * * *" # every 2 hours
1 change: 1 addition & 0 deletions test/suites/test-workflows/cypress-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: cypress-workflow-smoke-13
- name: cypress-workflow-smoke-13-video-recording-enabled
Expand Down
20 changes: 20 additions & 0 deletions test/suites/test-workflows/full-smoke.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
kind: TestWorkflow
apiVersion: testworkflows.testkube.io/v1
metadata:
name: tw-suite-full-smoke
labels:
core-tests: workflows-suite
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: artillery-workflow-suite
- name: cypress-workflow-suite
- name: gradle-workflow-suite
- name: jmeter-workflow-suite
- name: k6-workflow-suite
- name: maven-workflow-suite
- name: playwright-workflow-suite
- name: postman-workflow-suite
- name: soapui-workflow-suite
1 change: 1 addition & 0 deletions test/suites/test-workflows/gradle-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: gradle-workflow-smoke-jdk11
- name: gradle-workflow-smoke-jdk11-default-command
Expand Down
1 change: 1 addition & 0 deletions test/suites/test-workflows/jmeter-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: jmeter-workflow-smoke
- name: jmeter-workflow-smoke-shell-artifacts
Expand Down
1 change: 1 addition & 0 deletions test/suites/test-workflows/k6-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: k6-workflow-smoke
- name: k6-workflow-smoke-template
Expand Down
1 change: 1 addition & 0 deletions test/suites/test-workflows/maven-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: maven-workflow-smoke-jdk11
- name: maven-workflow-smoke-jdk11-from-template
1 change: 1 addition & 0 deletions test/suites/test-workflows/playwright-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: playwright-workflow-smoke-v1.32.3
- name: playwright-workflow-smoke-v1.32.3-custom-report-dir
Expand Down
17 changes: 17 additions & 0 deletions test/suites/test-workflows/small-smoke.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
kind: TestWorkflow
apiVersion: testworkflows.testkube.io/v1
metadata:
name: tw-suite-small-smoke
labels:
core-tests: workflows-suite
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: artillery-workflow-smoke
- name: gradle-workflow-smoke-jdk11-from-template
- name: jmeter-workflow-smoke-shell-artifacts
- name: k6-workflow-smoke-artifacts
- name: postman-workflow-smoke-template
- name: soapui-workflow-smoke
1 change: 1 addition & 0 deletions test/suites/test-workflows/soapui-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ metadata:
spec:
steps:
- execute:
parallelism: 2
workflows:
- name: soapui-workflow-smoke

0 comments on commit 01fbdca

Please sign in to comment.