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

tests.testkube.io/v3

Package v3 contains API Schema definitions for the tests v3 API group

Resource Types

ArgsModeType

Underlying type: ArgsModeType

Appears in:

ArtifactRequest

artifact request body with test artifacts

Appears in:

FieldDescriptionDefaultValidation
storageClassName stringartifact storage class name for container executor
volumeMountPath stringartifact volume mount path for container executor
dirs string arrayartifact directories for scraping
masks string arrayregexp to filter scraped artifacts, single or comma separated
storageBucket stringartifact bucket storage
omitFolderPerExecution booleandon't use a separate folder for execution artifacts
sharedBetweenPods booleanwhether to share volume between pods
useDefaultStorageClassName booleanwhether to use default storage class name
sidecarScraper booleanrun scraper as pod sidecar container

DownloadArtifactOptions

options to download artifacts from previous steps

Appears in:

FieldDescriptionDefaultValidation
allPreviousSteps boolean
previousStepNumbers integer arrayprevious step numbers starting from 1
previousTestNames string arrayprevious test names

EnvReference

Reference to env resource

Appears in:

FieldDescriptionDefaultValidation
reference LocalObjectReference
mount booleanwhether we shoud mount resource
mountPath stringwhere we shoud mount resource
mapToVariables booleanwhether we shoud map to variables from resource

ExecutionCore

test execution core

Appears in:

FieldDescriptionDefaultValidation
id stringexecution id
number integerexecution number
startTime Timetest start time
endTime Timetest end time

ExecutionRequest

test execution request body

Appears in:

FieldDescriptionDefaultValidation
name stringtest execution custom name
testSuiteName stringunique test suite name (CRD Test suite name), if it's run as a part of test suite
number integertest execution number
executionLabels object (keys:string, values:string)test execution labels
namespace stringtest kubernetes namespace ("testkube" when not set)
variablesFile stringvariables file content - need to be in format for particular executor (e.g. postman envs file)
isVariablesFileUploaded boolean
variables object (keys:string, values:Variable)
testSecretUUID stringtest secret uuid
testSuiteSecretUUID stringtest suite secret uuid, if it's run as a part of test suite
args string arrayadditional executor binary arguments
argsMode ArgsModeTypeusage mode for arguments
command string arrayexecutor binary command
image stringcontainer executor image
imagePullSecrets LocalObjectReference arraycontainer executor image pull secrets
envs object (keys:string, values:string)Environment variables passed to executor.
Deprecated: use Basic Variables instead
secretEnvs object (keys:string, values:string)Execution variables passed to executor from secrets.
Deprecated: use Secret Variables instead
sync booleanwhether to start execution sync or async
httpProxy stringhttp proxy for executor containers
httpsProxy stringhttps proxy for executor containers
negativeTest booleannegative test will fail the execution if it is a success and it will succeed if it is a failure
activeDeadlineSeconds integerOptional 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.
artifactRequest ArtifactRequest
jobTemplate stringjob template extensions
jobTemplateReference stringname of the template resource
cronJobTemplate stringcron job template extensions
cronJobTemplateReference stringname of the template resource
preRunScript stringscript to run before test execution
postRunScript stringscript to run after test execution
executePostRunScriptBeforeScraping booleanexecute post run script before scraping (prebuilt executor only)
sourceScripts booleanrun scripts using source command (container executor only)
scraperTemplate stringscraper template extensions
scraperTemplateReference stringname of the template resource
pvcTemplate stringpvc template extensions
pvcTemplateReference stringname of the template resource
envConfigMaps EnvReference arrayconfig map references
envSecrets EnvReference arraysecret references
slavePodRequest PodRequest
executionNamespace stringnamespace for test execution (Pro edition only)
disableWebhooks booleanwhether webhooks should be called on execution
Deprecated: field is not used

GitAuthType

Underlying type: string

GitAuthType defines git auth type

Validation:

  • Enum: [basic header]

Appears in:

FieldDescription
basicGitAuthTypeBasic for git basic auth requests
headerGitAuthTypeHeader for git header auth requests

PodRequest

pod request body

Appears in:

FieldDescriptionDefaultValidation
resources PodResourcesRequest
podTemplate stringpod template extensions
podTemplateReference stringname of the template resource

PodResourcesRequest

pod resources request specification

Appears in:

FieldDescriptionDefaultValidation
requests ResourceRequest
limits ResourceRequest

Repository

Repository represents VCS repo, currently we're handling Git only

Appears in:

FieldDescriptionDefaultValidation
type stringVCS repository type
uri stringuri of content file or git directory
branch stringbranch/tag name for checkout
commit stringcommit id (sha) for checkout
path stringif needed we can checkout particular path (dir or file) in case of BIG/mono repositories
usernameSecret SecretRef
tokenSecret SecretRef
certificateSecret stringgit auth certificate secret for private repositories
workingDir stringif provided we checkout the whole repository and run test from this directory
authType GitAuthTypeauth type for git requestsEnum: [basic header]

ResourceRequest

resource request specification

Appears in:

FieldDescriptionDefaultValidation
cpu stringrequested cpu units
memory stringrequested memory units

RunningContextType

Underlying type: string

Appears in:

FieldDescription
user-cli
user-ui
testsuite
testtrigger
scheduler
``

SecretRef

SecretRef is the Testkube internal reference for secret storage in Kubernetes secrets

Appears in:

FieldDescriptionDefaultValidation
name stringobject name
key stringobject key

Test

Test is the Schema for the tests API

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringtests.testkube.io/v3
kind stringTest
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestSpec

TestContent

TestContent defines test content

Appears in:

FieldDescriptionDefaultValidation
type TestContentTypetest typeEnum: [string file-uri git-file git-dir git]
repository Repositoryrepository of test content
data stringtest content body
uri stringuri of test content

TestContentType

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

TestList

TestList contains a list of Test

FieldDescriptionDefaultValidation
apiVersion stringtests.testkube.io/v3
kind stringTestList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Test array

TestSpec

TestSpec defines the desired state of Test

Appears in:

FieldDescriptionDefaultValidation
type stringtest type
name stringtest name
description stringtest description
content TestContenttest content object
source stringreference to test source resource
schedule stringschedule in cron job format for scheduled test execution
executionRequest ExecutionRequest
uploads string arrayfiles to be used from minio uploads

TestSuite

TestSuite is the Schema for the testsuites API

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringtests.testkube.io/v3
kind stringTestSuite
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestSuiteSpec

TestSuiteBatchStep

TestSuiteBatchStep is set of steps run in parallel

Appears in:

FieldDescriptionDefaultValidation
stopOnFailure boolean
downloadArtifacts DownloadArtifactOptions
execute TestSuiteStepSpec array

TestSuiteExecutionCore

TestSuiteExecutionCore defines the observed state of TestSuiteExecution

Appears in:

FieldDescriptionDefaultValidation
id stringexecution id
startTime Timetest suite execution start time
endTime Timetest suite execution end time

TestSuiteExecutionRequest

test suite execution request body

Appears in:

FieldDescriptionDefaultValidation
name stringtest execution custom name
namespace stringtest kubernetes namespace ("testkube" when not set)
variables object (keys:string, values:Variable)
secretUUID stringsecret uuid
labels object (keys:string, values:string)test suite labels
executionLabels object (keys:string, values:string)execution labels
sync booleanwhether to start execution sync or async
httpProxy stringhttp proxy for executor containers
httpsProxy stringhttps proxy for executor containers
timeout integertimeout for test suite execution
jobTemplate stringjob template extensions
jobTemplateReference stringname of the template resource
cronJobTemplate stringcron job template extensions
cronJobTemplateReference stringname of the template resource
scraperTemplate stringscraper template extensions
scraperTemplateReference stringname of the template resource
pvcTemplate stringpvc template extensions
pvcTemplateReference stringname of the template resource
disableWebhooks booleanwhether webhooks should be called on execution
Deprecated: field is not used

TestSuiteList

TestSuiteList contains a list of TestSuite

FieldDescriptionDefaultValidation
apiVersion stringtests.testkube.io/v3
kind stringTestSuiteList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items TestSuite array

TestSuiteSpec

TestSuiteSpec defines the desired state of TestSuite

Appears in:

FieldDescriptionDefaultValidation
before TestSuiteBatchStep arrayBefore batch steps is list of batch tests which will be sequentially orchestrated for parallel tests in each batch
steps TestSuiteBatchStep arrayBatch steps is list of batch tests which will be sequentially orchestrated for parallel tests in each batch
after TestSuiteBatchStep arrayAfter batch steps is list of batch tests which will be sequentially orchestrated for parallel tests in each batch
repeats integer
description string
schedule stringschedule in cron job format for scheduled test execution
executionRequest TestSuiteExecutionRequest

TestSuiteStepExecutionRequest

TestSuiteStepExecutionRequest contains parameters to be used by the executions. These fields will be passed to the execution when a Test Suite is queued for execution. TestSuiteStepExecutionRequest parameters have the highest priority. They override the values coming from Test Suites, Tests, and Test Executions.

Appears in:

FieldDescriptionDefaultValidation
executionLabels object (keys:string, values:string)test execution labels
variables object (keys:string, values:Variable)
args string arrayadditional executor binary arguments
argsMode ArgsModeTypeusage mode for arguments
command string arrayexecutor binary command
sync booleanwhether to start execution sync or async
httpProxy stringhttp proxy for executor containers
httpsProxy stringhttps proxy for executor containers
negativeTest booleannegative test will fail the execution if it is a success and it will succeed if it is a failure
jobTemplate stringjob template extensions
jobTemplateReference stringjob template extensions reference
cronJobTemplate stringcron job template extensions
cronJobTemplateReference stringcron job template extensions reference
scraperTemplate stringscraper template extensions
scraperTemplateReference stringscraper template extensions reference
pvcTemplate stringpvc template extensions
pvcTemplateReference stringpvc template extensions reference
runningContext RunningContext
disableWebhooks booleanwhether webhooks should be called on execution
Deprecated: field is not used

TestSuiteStepSpec

TestSuiteStepSpec for particular type will have config for possible step types

Appears in:

FieldDescriptionDefaultValidation
test stringobject name
delay Durationdelay duration in time unitsFormat: duration
Type: string
executionRequest TestSuiteStepExecutionRequest

Variable

Underlying type: Variable

Appears in:

FieldDescriptionDefaultValidation
type stringvariable type
name stringvariable name
value stringvariable string value
valueFrom EnvVarSourceor load it from var source