-
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: executor tests - container executor for jmeter and soapui, play…
…wright artifacts fixed, run script updated (#5045) * executor tests - container executor - soapui * run script extended - container-soapui-smoke * executor tests - container executor - soapui - artifacts * executor tests - container executor - jmeter * executor tests - container executor - jmeter - command fixed, soapui artifacts commented out * executor tests - cypress container - video artifacts only, playwright container - playwright-report artifacts fixed * empty lines added * empty lines added
- Loading branch information
1 parent
24cc463
commit b9233fc
Showing
11 changed files
with
178 additions
and
2 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
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,26 @@ | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: container-executor-jmeter-smoke | ||
labels: | ||
core-tests: executors | ||
spec: | ||
type: container-executor-jmeter-5.5/test | ||
content: | ||
type: git | ||
repository: | ||
type: git | ||
uri: https://github.com/kubeshop/testkube.git | ||
branch: main | ||
path: test/jmeter/executor-tests/jmeter-executor-smoke.jmx | ||
workingDir: test/jmeter/executor-tests | ||
executionRequest: | ||
executePostRunScriptBeforeScraping: true | ||
postRunScript: "echo 'post-run script' && cd /data/artifacts && ls -lah" | ||
args: | ||
- "-n -t jmeter-executor-smoke.jmx -j /data/artifacts/jmeter.log -o /data/artifacts/report -l /data/artifacts/jtl-report.jtl -e" | ||
artifactRequest: | ||
storageClassName: standard | ||
volumeMountPath: /data/artifacts | ||
dirs: | ||
- ./ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: tests.testkube.io/v3 | ||
kind: Test | ||
metadata: | ||
name: container-executor-soapui-smoke | ||
labels: | ||
core-tests: executors | ||
spec: | ||
type: container-executor-soapui-5.7/test | ||
content: | ||
type: git | ||
repository: | ||
type: git | ||
uri: https://github.com/kubeshop/testkube | ||
branch: main | ||
path: test/soapui/executor-smoke/soapui-smoke-test.xml | ||
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: 512m\n" | ||
activeDeadlineSeconds: 180 | ||
variables: | ||
COMMAND_LINE: | ||
name: COMMAND_LINE | ||
value: "-r -f /reports -a -j /data/repo/test/soapui/executor-smoke/soapui-smoke-incorrect-name.xml" | ||
type: basic | ||
# artifactRequest: # TODO: temporary disabled - not working for some reason | ||
# storageClassName: standard | ||
# volumeMountPath: /artifacts | ||
# dirs: | ||
# - ./ |
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,13 @@ | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-jmeter-5.5 | ||
spec: | ||
image: justb4/jmeter:5.5 | ||
command: | ||
- "jmeter" | ||
executor_type: container | ||
types: | ||
- container-executor-jmeter-5.5/test | ||
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ metadata: | |
name: container-executor-playwright-v1.32.3-args | ||
spec: | ||
image: mcr.microsoft.com/playwright:v1.32.3-focal | ||
command: ["npx", "--yes", "[email protected]", "test", "--output", "/data/artifacts"] | ||
command: ["npx", "--yes", "[email protected]", "test", "--output", "/data/artifacts/playwright-results"] | ||
executor_type: container | ||
types: | ||
- container-executor-playwright-v1.32.3-args/test | ||
|
@@ -19,7 +19,7 @@ spec: | |
image: mcr.microsoft.com/playwright:v1.32.3-focal | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
- "npm ci && CI=1 npx --yes [email protected] test --output /data/artifacts" | ||
- "npm ci && CI=1 npx --yes [email protected] test --output /data/artifacts/playwright-results" | ||
executor_type: container | ||
types: | ||
- container-executor-playwright-v1.32.3/test | ||
|
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,11 @@ | ||
apiVersion: executor.testkube.io/v1 | ||
kind: Executor | ||
metadata: | ||
name: container-executor-soapui-5.7 | ||
spec: | ||
image: smartbear/soapuios-testrunner:5.7.2 | ||
executor_type: container | ||
types: | ||
- container-executor-soapui-5.7/test | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: tests.testkube.io/v3 | ||
kind: TestSuite | ||
metadata: | ||
name: executor-container-jmeter-smoke-tests | ||
labels: | ||
app: testkube | ||
spec: | ||
description: "container executor jmeter smoke tests" | ||
steps: | ||
- stopOnFailure: false | ||
execute: | ||
- test: container-executor-jmeter-smoke |
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,12 @@ | ||
apiVersion: tests.testkube.io/v3 | ||
kind: TestSuite | ||
metadata: | ||
name: executor-container-soapui-smoke-tests | ||
labels: | ||
app: testkube | ||
spec: | ||
description: "container executor soapui smoke tests" | ||
steps: | ||
- stopOnFailure: false | ||
execute: | ||
- test: container-executor-soapui-smoke |