-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tests - workflows updated after switching to official v1 templa…
…tes (#5591) * tests - workflows updated after switching to official v1 templates * artillery workflows added * matrix workflows - curl and cypress * cypress workflow suite updated * Update test/gradle/executor-smoke/crd-workflow/smoke.yaml Co-authored-by: Dawid Rusnak <[email protected]> --------- Co-authored-by: Dawid Rusnak <[email protected]>
- Loading branch information
1 parent
0601447
commit e2fc767
Showing
22 changed files
with
412 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
metadata: | ||
name: artillery-workflow-smoke | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
content: | ||
git: | ||
uri: https://github.com/kubeshop/testkube | ||
revision: main | ||
paths: | ||
- test/artillery/executor-smoke/artillery-smoke-test.yaml | ||
container: | ||
resources: | ||
requests: | ||
cpu: 128m | ||
memory: 256Mi | ||
workingDir: /data/repo/test/artillery/executor-smoke | ||
steps: | ||
- name: Run test | ||
run: | ||
image: artilleryio/artillery:2.0.9 | ||
args: | ||
- run | ||
- artillery-smoke-test.yaml | ||
--- | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
metadata: | ||
name: artillery-workflow-smoke-template | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
container: | ||
resources: | ||
requests: | ||
cpu: 128m | ||
memory: 256Mi | ||
workingDir: /data/repo/test/artillery/executor-smoke | ||
steps: | ||
- name: Run from template | ||
content: | ||
git: | ||
uri: https://github.com/kubeshop/testkube | ||
revision: main | ||
paths: | ||
- test/artillery/executor-smoke/artillery-smoke-test.yaml | ||
workingDir: /data/repo/test/artillery/executor-smoke | ||
template: | ||
name: official/artillery/v1 | ||
config: | ||
version: 2.0.9 | ||
run: "artillery run artillery-smoke-test.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
metadata: | ||
name: curl-workflow-smoke | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
container: | ||
resources: | ||
requests: | ||
cpu: 32m | ||
memory: 32Mi | ||
steps: | ||
- name: Run tests | ||
shell: curl https://testkube.io | ||
container: | ||
image: curlimages/curl:8.7.1 | ||
--- | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
metadata: | ||
name: curl-workflow-smoke-private-registry | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
pod: | ||
imagePullSecrets: | ||
- name: example-private-registry-credentials | ||
container: | ||
resources: | ||
requests: | ||
cpu: 32m | ||
memory: 32Mi | ||
steps: | ||
- name: Run tests | ||
shell: curl https://testkube.io && sleep 10 | ||
container: | ||
image: tkoniecznykubeshop/example-private-repo:curl-8.7.1 | ||
--- | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
metadata: | ||
name: curl-workflow-smoke-matrix | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
container: | ||
resources: | ||
requests: | ||
cpu: 32m | ||
memory: 32Mi | ||
steps: | ||
- name: Run tests | ||
parallel: | ||
matrix: | ||
url: ['https://testkube.io', 'https://docs.testkube.io'] | ||
shell: curl '{{ matrix.url }}' | ||
container: | ||
image: curlimages/curl:8.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.