Skip to main content
New to Testkube? Unleash the power of cloud native testing in Kubernetes with Testkube. Get Started >
warning

Features described in this document are being deprecated as part of the transition to Test Workflows - Read More.

API Reference

Packages

executor.testkube.io/v1

Package v1 contains API Schema definitions for the executor v1 API group

Resource Types

EventType

Underlying type: string

Validation:

  • Enum: [start-test end-test-success end-test-failed end-test-aborted end-test-timeout become-test-up become-test-down become-test-failed become-test-aborted become-test-timeout start-testsuite end-testsuite-success end-testsuite-failed end-testsuite-aborted end-testsuite-timeout become-testsuite-up become-testsuite-down become-testsuite-failed become-testsuite-aborted become-testsuite-timeout start-testworkflow queue-testworkflow end-testworkflow-success end-testworkflow-failed end-testworkflow-aborted become-testworkflow-up become-testworkflow-down become-testworkflow-failed become-testworkflow-aborted]

Appears in:

FieldDescription
start-test
end-test-success
end-test-failed
end-test-aborted
end-test-timeout
become-test-up
become-test-down
become-test-failed
become-test-aborted
become-test-timeout
start-testsuite
end-testsuite-success
end-testsuite-failed
end-testsuite-aborted
end-testsuite-timeout
become-testsuite-up
become-testsuite-down
become-testsuite-failed
become-testsuite-aborted
become-testsuite-timeout
start-testworkflow
queue-testworkflow
end-testworkflow-success
end-testworkflow-failed
end-testworkflow-aborted
become-testworkflow-up
become-testworkflow-down
become-testworkflow-failed
become-testworkflow-aborted

Executor

Executor is the Schema for the executors API

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringexecutor.testkube.io/v1
kind stringExecutor
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec ExecutorSpec

ExecutorList

ExecutorList contains a list of Executor

FieldDescriptionDefaultValidation
apiVersion stringexecutor.testkube.io/v1
kind stringExecutorList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Executor array

ExecutorMeta

Executor meta data

Appears in:

FieldDescriptionDefaultValidation
iconURI stringURI for executor icon
docsURI stringURI for executor docs
tooltips object (keys:string, values:string)executor tooltips

ExecutorSpec

ExecutorSpec defines the desired state of Executor

Appears in:

FieldDescriptionDefaultValidation
types string arrayTypes defines what types can be handled by executor e.g. "postman/collection", ":curl/command" etc
executor_type ExecutorTypeExecutorType one of "rest" for rest openapi based executors or "job" which will be default runners for testkube
or "container" for container executors
Enum: [job container]
uri stringURI for rest based executors
image stringImage for kube-job
args string arrayexecutor binary arguments
command string arrayexecutor default binary command
imagePullSecrets LocalObjectReference arraycontainer executor default image pull secrets
features Feature arrayFeatures list of possible features which executor handlesEnum: [artifacts junit-report]
content_types ScriptContentType arrayContentTypes list of handled content typesEnum: [string file-uri git-file git-dir git]
job_template stringJob template to launch executor
jobTemplateReference stringname of the template resource
meta ExecutorMetaMeta data about executor
slaves SlavesMetaSlaves data to run test in distributed environment
useDataDirAsWorkingDir booleanuse data dir as working dir for executor

ExecutorType

Underlying type: string

Validation:

  • Enum: [job container]

Appears in:

FieldDescription
job
container

Feature

Underlying type: string

Validation:

  • Enum: [artifacts junit-report]

Appears in:

FieldDescription
artifacts
junit-report

ScriptContentType

Underlying type: string

Validation:

  • Enum: [string file-uri git-file git-dir git]

Appears in:

FieldDescription
string
file-uri
git-fileDeprecated: use git instead
git-dirDeprecated: use git instead
git

SlavesMeta

Appears in:

FieldDescriptionDefaultValidation
image string

Webhook

Webhook is the Schema for the webhooks API

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringexecutor.testkube.io/v1
kind stringWebhook
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec WebhookSpec

WebhookList

WebhookList contains a list of Webhook

FieldDescriptionDefaultValidation
apiVersion stringexecutor.testkube.io/v1
kind stringWebhookList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Webhook array

WebhookSpec

WebhookSpec defines the desired state of Webhook

Appears in:

FieldDescriptionDefaultValidation
uri stringUri is address where webhook should be made (golang template supported)
events EventType arrayEvents declare list if events on which webhook should be calledEnum: [start-test end-test-success end-test-failed end-test-aborted end-test-timeout become-test-up become-test-down become-test-failed become-test-aborted become-test-timeout start-testsuite end-testsuite-success end-testsuite-failed end-testsuite-aborted end-testsuite-timeout become-testsuite-up become-testsuite-down become-testsuite-failed become-testsuite-aborted become-testsuite-timeout start-testworkflow queue-testworkflow end-testworkflow-success end-testworkflow-failed end-testworkflow-aborted become-testworkflow-up become-testworkflow-down become-testworkflow-failed become-testworkflow-aborted]
selector stringLabels to filter for tests and test suites
payloadObjectField stringwill load the generated payload for notification inside the object
payloadTemplate stringgolang based template for notification payload
payloadTemplateReference stringname of the template resource
headers object (keys:string, values:string)webhook headers (golang template supported)
disabled booleanDisabled will disable the webhook
onStateChange booleanOnStateChange will trigger the webhook only when the result of the current execution differs from the previous result of the same test/test suite/workflow
Deprecated: field is not used