Skip to content

Commit

Permalink
executor tests - TestSources - overwrite tests (#2566)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkonieczny committed Oct 19, 2022
1 parent 01c2ecb commit 240b68f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/cypress/executor-smoke/crd/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
type: git
uri: https://github.com/kubeshop/testkube.git
branch: main
path: test/cypress/executor-smoke/cypress-10 # TODO move path to Test after validation issue will be fixed: https://github.com/kubeshop/testkube/issues/2560
path: test/cypress/executor-smoke/cypress-10
---
# cypress-default-executor-smoke-electron-testsource-git-dir - Test
apiVersion: tests.testkube.io/v3
Expand All @@ -46,9 +46,9 @@ metadata:
namespace: testkube
spec:
type: cypress/project
# content:
# repository:
# path: test/cypress/executor-smoke/cypress-10
content:
repository:
path: test/cypress/executor-smoke/cypress-10
source: testsource-cypress-default-executor-smoke-electron-testsource-git-dir
executionRequest:
variables:
Expand Down
32 changes: 32 additions & 0 deletions test/postman/executor-smoke/crd/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,38 @@ metadata:
spec:
type: postman/collection
source: testsource-postman-executor-smoke-testsource-git-file
executionRequest:
args:
- --env-var
- TESTKUBE_POSTMAN_PARAM=TESTKUBE_POSTMAN_PARAM_value
---
# postman-executor-smoke-testsource-overwrite - TestSource
apiVersion: tests.testkube.io/v1
kind: TestSource
metadata:
name: testsource-postman-executor-smoke-testsource-overwrite
namespace: testkube
spec:
type: git-file
repository:
type: git
uri: https://github.com/kubeshop/testkube.git
branch: some-random-non-existing-branch
path: some/incorrect/random/directory/non-existing-postman-collection.json
---
# postman-executor-smoke-testsource-overwrite - Test
apiVersion: tests.testkube.io/v3
kind: Test
metadata:
name: postman-executor-smoke-testsource-overwrite
namespace: testkube
spec:
type: postman/collection
source: testsource-postman-executor-smoke-testsource-overwrite
content:
repository:
branch: main
path: test/postman/executor-smoke/postman-executor-smoke.postman_collection.json
executionRequest:
args:
- --env-var
Expand Down
3 changes: 2 additions & 1 deletion test/suites/executor-postman-smoke-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "postman executor smoke tests",
"steps": [
{"execute": {"name": "postman-executor-smoke"}},
{"execute": {"name": "postman-executor-smoke-testsource-git-file"}}
{"execute": {"name": "postman-executor-smoke-testsource-git-file"}},
{"execute": {"name": "postman-executor-smoke-testsource-overwrite"}}
]
}

0 comments on commit 240b68f

Please sign in to comment.