Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Tests - timeouts added #4300

Merged
merged 1 commit into from
Aug 28, 2023
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
4 changes: 3 additions & 1 deletion test/artillery/executor-smoke/crd/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
path: test/artillery/executor-smoke/artillery-smoke-test.yaml
executionRequest:
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 256Mi\n cpu: 128m\n"
activeDeadlineSeconds: 60
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -33,4 +34,5 @@ spec:
path: test/artillery/executor-smoke/artillery-smoke-test-negative.yaml
executionRequest:
negativeTest: true
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 256Mi\n cpu: 128m\n"
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 256Mi\n cpu: 128m\n"
activeDeadlineSeconds: 60
2 changes: 2 additions & 0 deletions test/container-executor/executor-smoke/crd/curl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
type: basic
value: https://testkube.kubeshop.io/
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 32Mi\n cpu: 32m\n"
activeDeadlineSeconds: 60
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -34,3 +35,4 @@ spec:
value: https://testkube.non.existing.url.example
negativeTest: true
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 32Mi\n cpu: 32m\n"
activeDeadlineSeconds: 60
5 changes: 3 additions & 2 deletions test/container-executor/executor-smoke/crd/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
dirs:
- ./
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"

activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -65,4 +65,5 @@ spec:
volumeMountPath: /data/artifacts
dirs:
- ./
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
3 changes: 2 additions & 1 deletion test/container-executor/executor-smoke/crd/k6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ spec:
workingDir: test/k6/executor-tests
executionRequest:
args: ["run", "k6-smoke-test-without-envs.js"]
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 64Mi\n cpu: 128m\n"
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 64Mi\n cpu: 128m\n"
activeDeadlineSeconds: 60
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ spec:
volumeMountPath: /data/artifacts
dirs:
- ./
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
4 changes: 3 additions & 1 deletion test/curl/executor-tests/crd/smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
path: test/curl/executor-tests/curl-smoke-test.json
executionRequest:
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 32Mi\n cpu: 32m\n"
activeDeadlineSeconds: 60
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -33,4 +34,5 @@ spec:
path: test/curl/executor-tests/curl-smoke-test-negative.json
executionRequest:
negativeTest: true
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 32Mi\n cpu: 32m\n"
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 32Mi\n cpu: 32m\n"
activeDeadlineSeconds: 60
24 changes: 23 additions & 1 deletion test/cypress/executor-tests/crd/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -55,6 +56,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -85,6 +87,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -113,6 +116,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -143,6 +147,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -173,6 +178,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -201,6 +207,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -229,6 +236,7 @@ spec:
- --config
- video=true
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -261,6 +269,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -289,6 +298,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
# cypress-default-executor-smoke-electron-testsource TestSource
apiVersion: tests.testkube.io/v1
Expand Down Expand Up @@ -326,6 +336,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
# cypress-default-executor-smoke-electron-testsource-git-dir - TestSource
apiVersion: tests.testkube.io/v1
Expand Down Expand Up @@ -363,6 +374,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -391,6 +403,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -421,6 +434,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand Down Expand Up @@ -451,6 +465,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -469,6 +484,7 @@ spec:
path: test/cypress/executor-tests/cypress-9
executionRequest:
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -492,6 +508,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -515,6 +532,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -536,6 +554,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -559,6 +578,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -582,6 +602,7 @@ spec:
- --config
- video=false
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 2Gi\n cpu: 2\n"
activeDeadlineSeconds: 120
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -602,4 +623,5 @@ spec:
args:
- --some-incorrect-argument
negativeTest: true
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 1Gi\n cpu: 1\n"
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 1Gi\n cpu: 1\n"
activeDeadlineSeconds: 120
1 change: 1 addition & 0 deletions test/dashboard-e2e/crd/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ spec:
artifactRequest:
storageClassName: standard
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 4Gi\n cpu: 3\n"
activeDeadlineSeconds: 240
schedule: "15 */4 * * *"
4 changes: 3 additions & 1 deletion test/ginkgo/executor-tests/crd/smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
path: test/ginkgo/executor-tests/smoke
executionRequest:
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
activeDeadlineSeconds: 60

---
apiVersion: tests.testkube.io/v3
Expand All @@ -34,4 +35,5 @@ spec:
path: test/ginkgo/executor-tests/smoke-negative
executionRequest:
negativeTest: true
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
activeDeadlineSeconds: 60
7 changes: 6 additions & 1 deletion test/gradle/executor-smoke/crd/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
value: "true"
type: basic
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
activeDeadlineSeconds: 60
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -45,6 +46,7 @@ spec:
value: "true"
type: basic
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
activeDeadlineSeconds: 60
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -68,6 +70,7 @@ spec:
value: "true"
type: basic
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
activeDeadlineSeconds: 60
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -91,6 +94,7 @@ spec:
value: "true"
type: basic
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
activeDeadlineSeconds: 60
---
apiVersion: tests.testkube.io/v3
kind: Test
Expand All @@ -109,4 +113,5 @@ spec:
path: examples/hello-gradle-jdk18
executionRequest:
negativeTest: true
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n template:\n spec:\n containers:\n - name: \"{{ .Name }}\"\n image: {{ .Image }}\n resources:\n requests:\n memory: 512Mi\n cpu: 512m\n"
activeDeadlineSeconds: 60
Loading
Loading