-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: executor tests - special cases added (#4743)
* executor tests - special cases added * executor tests - jmeter - branch names fixed
- Loading branch information
1 parent
6d8a000
commit c439f52
Showing
16 changed files
with
465 additions
and
10 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,79 @@ | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-1gb-artifact | ||
spec: | ||
types: | ||
- container-executor-1gb-artifact/test | ||
executor_type: container | ||
image: alpine:3.17.2 | ||
command: | ||
- /bin/sh | ||
- -c | ||
- cd /share; mkdir artifacts; cd artifacts; dd if=/dev/zero of=1g.img bs=1 count=0 seek=1G; ls -lah | ||
features: | ||
- artifacts | ||
--- | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-1mb-artifact | ||
spec: | ||
types: | ||
- container-executor-1mb-artifact/test | ||
executor_type: container | ||
image: alpine:3.17.2 | ||
command: | ||
- /bin/sh | ||
- -c | ||
- cd /share; mkdir artifacts; cd artifacts; dd if=/dev/zero of=1mb.img bs=1024 count=0 seek=1024; ls -lah | ||
features: | ||
- artifacts | ||
--- | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-1gb-urandom-artifact | ||
spec: | ||
types: | ||
- container-executor-1gb-urandom-artifact/test | ||
executor_type: container | ||
image: alpine:3.17.2 | ||
command: | ||
- /bin/sh | ||
- -c | ||
- cd /share; mkdir artifacts; cd artifacts; dd if=/dev/urandom of=1g.img bs=64M count=16; ls -lah | ||
features: | ||
- artifacts | ||
--- | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-1mb-urandom-artifact | ||
spec: | ||
types: | ||
- container-executor-1mb-urandom-artifact/test | ||
executor_type: container | ||
image: alpine:3.17.2 | ||
command: | ||
- /bin/sh | ||
- -c | ||
- cd /share; mkdir artifacts; cd artifacts; dd if=/dev/urandom of=1mb.img bs=1024 count=0 seek=1024; ls -lah | ||
features: | ||
- artifacts | ||
--- | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-1gb-openssl-artifact | ||
spec: | ||
types: | ||
- container-executor-1gb-openssl-artifact/test | ||
executor_type: container | ||
image: alpine/openssl:latest | ||
command: | ||
- /bin/sh | ||
- -c | ||
- cd /share && mkdir artifacts && cd artifacts && openssl rand -out 1g.txt -base64 $(( 2**30 * 3/4 )) ; ls -lah && echo "File generated - OK" | ||
features: | ||
- artifacts |
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,55 @@ | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-large-logs-1mb | ||
spec: | ||
types: | ||
- container-executor-large-logs-1mb/test | ||
executor_type: container | ||
image: bash:5.1 | ||
command: | ||
- bash | ||
- -c | ||
- 'for iteration in {1..100}; do printf "\niteration $iteration\n"; for sets in {1..20}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..20}; printf "_LINE_END"; printf "\n"; done; done' # 100 iterations - about 1.1MB | ||
--- | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-large-logs-11mb | ||
spec: | ||
types: | ||
- container-executor-large-logs-11mb/test | ||
executor_type: container | ||
image: bash:5.1 | ||
command: | ||
- bash | ||
- -c | ||
- 'for iteration in {1..1000}; do sleep 2; printf "\niteration $iteration\n"; for sets in {1..20}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..20}; printf "_LINE_END"; printf "\n"; done; done' # 1000 iterations - about 11MB | ||
--- | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-large-logs-22mb | ||
spec: | ||
types: | ||
- container-executor-large-logs-22mb/test | ||
executor_type: container | ||
image: bash:5.1 | ||
command: | ||
- bash | ||
- -c | ||
- 'for iteration in {1..2000}; do sleep 1; printf "\niteration $iteration\n"; for sets in {1..20}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..20}; printf "_LINE_END"; printf "\n"; done; done' # 2000 iterations - about 22MB | ||
--- | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-large-logs-long-lines | ||
spec: | ||
types: | ||
- container-executor-large-logs-long-lines/test | ||
executor_type: container | ||
image: bash:5.1 | ||
command: | ||
- bash | ||
- -c | ||
- 'for iteration in {1..100}; do printf "\niteration $iteration\n"; for sets in {1..1}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..3000}; printf "_LINE_END"; printf "\n"; done; done' # 100 lines with 81k characters each |
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
File renamed without changes.
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,75 @@ | ||
|
||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-artifacts-1gb-test | ||
labels: | ||
core-tests: special-cases-large-artifacts | ||
spec: | ||
type: container-executor-1gb-artifact/test | ||
executionRequest: | ||
artifactRequest: | ||
storageClassName: standard | ||
volumeMountPath: /share | ||
dirs: | ||
- artifacts | ||
--- | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-artifacts-1mb-test | ||
labels: | ||
core-tests: special-cases-large-artifacts | ||
spec: | ||
type: container-executor-1mb-artifact/test | ||
executionRequest: | ||
artifactRequest: | ||
storageClassName: standard | ||
volumeMountPath: /share | ||
dirs: | ||
- artifacts | ||
--- | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-artifacts-1gb-urandom-test | ||
labels: | ||
core-tests: special-cases-large-artifacts | ||
spec: | ||
type: container-executor-1gb-urandom-artifact/test | ||
executionRequest: | ||
artifactRequest: | ||
storageClassName: standard | ||
volumeMountPath: /share | ||
dirs: | ||
- artifacts | ||
--- | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-artifacts-1mb-urandom-test | ||
labels: | ||
core-tests: special-cases-large-artifacts | ||
spec: | ||
type: container-executor-1mb-urandom-artifact/test | ||
executionRequest: | ||
artifactRequest: | ||
storageClassName: standard | ||
volumeMountPath: /share | ||
dirs: | ||
- artifacts | ||
--- | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-artifacts-1gb-openssl-test | ||
labels: | ||
core-tests: special-cases-large-artifacts | ||
spec: | ||
type: container-executor-1gb-openssl-artifact/test | ||
executionRequest: | ||
artifactRequest: | ||
storageClassName: standard | ||
volumeMountPath: /share | ||
dirs: | ||
- artifacts |
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,36 @@ | ||
|
||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-logs-1mb-test | ||
labels: | ||
core-tests: special-cases-large-logs | ||
spec: | ||
type: container-executor-large-logs-1mb/test | ||
--- | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-logs-11mb-test | ||
labels: | ||
core-tests: special-cases-large-logs | ||
spec: | ||
type: container-executor-large-logs-11mb/test | ||
--- | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-logs-22mb-test | ||
labels: | ||
core-tests: special-cases-large-logs | ||
spec: | ||
type: container-executor-large-logs-22mb/test | ||
--- | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: large-logs-long-lines-81k-test | ||
labels: | ||
core-tests: special-cases-large-logs | ||
spec: | ||
type: container-executor-large-logs-long-lines/test |
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
test/suites/special-cases/expected-failure-parallel-testsuite-delays.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,23 @@ | ||
apiVersion: tests.testkube.io/v3 | ||
kind: TestSuite | ||
metadata: | ||
name: expected-failure-parallel-testsuite-delays | ||
labels: | ||
core-tests: special-cases-expected-failure | ||
spec: | ||
steps: | ||
- stopOnFailure: false | ||
execute: | ||
- test: k6-executor-smoke | ||
- delay: 30s | ||
- test: container-executor-curl-smoke | ||
- stopOnFailure: false | ||
execute: | ||
- test: k6-executor-smoke | ||
- test: postman-executor-smoke | ||
- delay: 12s | ||
- stopOnFailure: false | ||
execute: | ||
- test: soapui-executor-smoke | ||
- delay: 2s | ||
- delay: 1.223s |
Oops, something went wrong.