TestExecution
tests.testkube.io / v1
apiVersion: tests.testkube.io/v1
kind: TestExecution
metadata:
name: example
apiVersion
string
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind
string
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata
object
spec object
TestExecutionSpec defines the desired state of TestExecution
executionRequest object
test execution request body
activeDeadlineSeconds
integer
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.
format:
int64
args
[]string
additional executor binary arguments
argsMode
string
usage mode for arguments
enum:
append, override, replaceartifactRequest object
artifact request body with test artifacts
dirs
[]string
artifact directories for scraping
masks
[]string
regexp to filter scraped artifacts, single or comma separated
omitFolderPerExecution
boolean
don't use a separate folder for execution artifacts
sharedBetweenPods
boolean
whether to share volume between pods
sidecarScraper
boolean
run scraper as pod sidecar container
storageBucket
string
artifact bucket storage
storageClassName
string
artifact storage class name for container executor
useDefaultStorageClassName
boolean
whether to use default storage class name
volumeMountPath
string
artifact volume mount path for container executor
command
[]string
executor binary command
cronJobTemplate
string
cron job template extensions
disableWebhooks
boolean
whether webhooks should be called on execution
envConfigMaps []object
config map references
mapToVariables
boolean
whether we shoud map to variables from resource
mount
boolean
whether we shoud mount resource
mountPath
string
where we shoud mount resource
reference object required
LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
name
string
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?
envSecrets []object
secret references
mapToVariables
boolean
whether we shoud map to variables from resource
mount
boolean
whether we shoud mount resource
mountPath
string
where we shoud mount resource
reference object required
LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
name
string
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?
envs
object
Environment variables passed to executor. Deprecated: use Basic Variables instead
executePostRunScriptBeforeScraping
boolean
execute post run script before scraping (prebuilt executor only)
executionLabels
object
test execution labels
executionNamespace
string
namespace for test execution (Pro edition only)
httpProxy
string
http proxy for executor containers
httpsProxy
string
https proxy for executor containers
image
string
container executor image
imagePullSecrets []object
container executor image pull secrets
name
string
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?
isVariablesFileUploaded
boolean
jobTemplate
string
job template extensions
name
string
test execution custom name
namespace
string
test kubernetes namespace (\"testkube\" when not set)
negativeTest
boolean
negative test will fail the execution if it is a success and it will succeed if it is a failure
number
integer
test execution number
format:
int32
postRunScript
string
script to run after test execution
preRunScript
string
script to run before test execution
runningContext object
running context for test or test suite execution
context
string
Context value depending from its type
type
string required
One of possible context types
enum:
user-cli, user-ui, testsuite, testtrigger, scheduler, testexecution, testsuiteexecution
scraperTemplate
string
scraper template extensions
secretEnvs
object
Execution variables passed to executor from secrets. Deprecated: use Secret Variables instead
slavePodRequest object
pod request body
podTemplate
string
pod template extensions
podTemplateReference
string
name of the template resource
resources object
pod resources request specification
limits object
resource request specification
cpu
string
requested cpu units
memory
string
requested memory units
requests object
resource request specification
cpu
string
requested cpu units
memory
string
requested memory units
sourceScripts
boolean
run scripts using source command (container executor only)
sync
boolean
whether to start execution sync or async
testSecretUUID
string
test secret uuid
testSuiteName
string
unique test suite name (CRD Test suite name), if it's run as a part of test suite
testSuiteSecretUUID
string
test suite secret uuid, if it's run as a part of test suite
variables
object
variablesFile
string
variables file content - need to be in format for particular executor (e.g. postman envs file)
test object required
name
string required
object name
namespace
string
object kubernetes namespace
status object
TestExecutionStatus defines the observed state of TestExecution
generation
integer
test execution generation
format:
int64latestExecution object
INSERT ADDITIONAL STATUS FIELD - define observed state of cluster Important: Run "make" to regenerate code after modifying this file
args
[]string
additional arguments/flags passed to executor binary
args_mode
string
usage mode for arguments
enum:
append, override, replaceartifactRequest object
artifact request body with test artifacts
dirs
[]string
artifact directories for scraping
masks
[]string
regexp to filter scraped artifacts, single or comma separated
omitFolderPerExecution
boolean
don't use a separate folder for execution artifacts
sharedBetweenPods
boolean
whether to share volume between pods
sidecarScraper
boolean
run scraper as pod sidecar container
storageBucket
string
artifact bucket storage
storageClassName
string
artifact storage class name for container executor
useDefaultStorageClassName
boolean
whether to use default storage class name
volumeMountPath
string
artifact volume mount path for container executor
bucketName
string
minio bucket name to get uploads from
command
[]string
executor image command
containerShell
string
shell used in container executor
content object
TestContent defines test content
data
string
test content body
repository object
repository of test content
authType
string
auth type for git requests
enum:
basic, header
branch
string
branch/tag name for checkout
certificateSecret
string
git auth certificate secret for private repositories
commit
string
commit id (sha) for checkout
path
string
if needed we can checkout particular path (dir or file) in case of BIG/mono repositories
tokenSecret object
Testkube internal reference for secret storage in Kubernetes secrets
key
string required
object key
name
string required
object name
namespace
string
object kubernetes namespace
type
string
VCS repository type
uri
string
uri of content file or git directory
usernameSecret object
Testkube internal reference for secret storage in Kubernetes secrets
key
string required
object key
name
string required
object name
namespace
string
object kubernetes namespace
workingDir
string
if provided we checkout the whole repository and run test from this directory
type
string
test type
enum:
string, file-uri, git-file, git-dir, git
uri
string
uri of test content
disableWebhooks
boolean
whether webhooks should be called on execution
duration
string
test duration
durationMs
integer
test duration in milliseconds
format:
int32
endTime
string
test end time
format:
date-time
envs
object
Environment variables passed to executor. Deprecated: use Basic Variables instead
executePostRunScriptBeforeScraping
boolean
execute post run script before scraping (prebuilt executor only)
executionNamespace
string
namespace for test execution (Pro edition only)
executionResult object
execution result returned from executor
errorMessage
string
error message when status is error, separate to output as output can be partial in case of error
reports object
junit
string
status
string required
enum:
queued, running, passed, failed, aborted, timeoutsteps []object
execution steps (for collection of requests)
assertionResults []object
errorMessage
string
name
string
status
string
duration
string
name
string required
step name
status
string required
execution step status
id
string
execution id
isVariablesFileUploaded
boolean
in case the variables file is too big, it will be uploaded to storage
labels
object
test and execution labels
name
string
execution name
number
integer
execution number
format:
int32
postRunScript
string
script to run after test execution
preRunScript
string
script to run before test execution
runningContext object
running context for test or test suite execution
context
string
Context value depending from its type
type
string required
One of possible context types
enum:
user-cli, user-ui, testsuite, testtrigger, scheduler, testexecution, testsuiteexecutionslavePodRequest object
pod request body
podTemplate
string
pod template extensions
podTemplateReference
string
name of the template resource
resources object
pod resources request specification
limits object
resource request specification
cpu
string
requested cpu units
memory
string
requested memory units
requests object
resource request specification
cpu
string
requested cpu units
memory
string
requested memory units
sourceScripts
boolean
run scripts using source command (container executor only)
startTime
string
test start time
format:
date-time
testName
string
unique test name (CRD Test name)
testNamespace
string
test namespace
testSecretUUID
string
test secret uuid
testSuiteName
string
unique test suite name (CRD Test suite name), if it's run as a part of test suite
testSuiteSecretUUID
string
test suite secret uuid, if it's run as a part of test suite
testType
string
test type e.g. postman/collection
uploads
[]string
list of file paths that need to be copied into the test from uploads
variables
object
variablesFile
string
variables file content - need to be in format for particular executor (e.g. postman envs file)
No matches. Try .spec.executionRequest for an exact path