Skip to content

Commit

Permalink
feat: workflow examples - expected failures extended (#5707)
Browse files Browse the repository at this point in the history
* workflow examples - expected failures extended

* test

* test-suite like workflow - edge cases - updated

---------

Co-authored-by: ypoplavs <yulia.poplavska@kubeshop.io>
  • Loading branch information
2 people authored and rangoo94 committed Aug 14, 2024
1 parent f05a366 commit c7f7001
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
38 changes: 37 additions & 1 deletion test/special-cases/test-workflows/edge-cases-expected-fails.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
uri: https://github.com/kubeshop/testkube
revision: main
paths:
- test/cypress/executor-tests/cypress
- test/cypress/executor-tests/some-incorrect-path
container:
resources:
requests:
Expand All @@ -36,6 +36,42 @@ spec:
---
apiVersion: testworkflows.testkube.io/v1
kind: TestWorkflow
metadata:
name: expected-fail-cypress-incorrect-image-name
labels:
core-tests: expected-fail
spec:
content:
git:
uri: https://github.com/kubeshop/testkube
revision: main
paths:
- test/cypress/executor-tests/cypress-13
container:
resources:
requests:
cpu: 2
memory: 2Gi
workingDir: /data/repo/test/cypress/executor-tests/cypress-13
steps:
- name: Run tests
run:
image: cypress/some-incorrect-name:13.6.4
args:
- --env
- NON_CYPRESS_ENV=NON_CYPRESS_ENV_value
- --config
- '{"screenshotsFolder":"/data/artifacts/screenshots","videosFolder":"/data/artifacts/videos"}'
env:
- name: CYPRESS_CUSTOM_ENV
value: CYPRESS_CUSTOM_ENV_value
artifacts:
workingDir: /data/artifacts
paths:
- '**/*'
---
apiVersion: testworkflows.testkube.io/v1
kind: TestWorkflow
metadata:
name: expected-fail-cypress-incorrect-workingdir
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
- execute:
workflows:
- name: expected-fail-cypress-incorrect-repo-path
- name: expected-fail-cypress-incorrect-image-name
- name: expected-fail-cypress-incorrect-workingdir
- name: expected-fail-cypress-resource-limits
- name: expected-fail-cypress-artifacts-condition-always-with-artifacts
Expand Down

0 comments on commit c7f7001

Please sign in to comment.