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/v2

Package v2 contains API Schema definitions for the testkube v2 API group

Resource Types

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
username stringgit auth username for private repositories
token stringgit auth token for private repositories

RunningContextType

Underlying type: string

Appears in:

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

Script

Script is the Schema for the scripts API

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringtests.testkube.io/v2
kind stringScript
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec ScriptSpec

ScriptContent

Appears in:

FieldDescriptionDefaultValidation
type stringscript type
repository Repositoryrepository of script content
data stringscript content body
uri stringuri of script content

ScriptList

ScriptList contains a list of Script

FieldDescriptionDefaultValidation
apiVersion stringtests.testkube.io/v2
kind stringScriptList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Script array

ScriptSpec

ScriptSpec defines the desired state of Script

Appears in:

FieldDescriptionDefaultValidation
type stringscript type
name stringscript execution custom name
params object (keys:string, values:string)execution params passed to executor
content ScriptContentscript content object
tags string arrayscript tags

Test

Test is the Schema for the tests API

Appears in:

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

TestContent

TestContent defines test content

Appears in:

FieldDescriptionDefaultValidation
type stringtest type
repository Repositoryrepository of test content
data stringtest content body
uri stringuri of test content

TestList

TestList contains a list of Test

FieldDescriptionDefaultValidation
apiVersion stringtests.testkube.io/v2
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 execution custom name
params object (keys:string, values:string)DEPRECATED execution params passed to executor
variables object (keys:string, values:Variable)Variables are new params with secrets attached
content TestContenttest content object
schedule stringschedule in cron job format for scheduled test execution
executorArgs string arrayadditional executor binary arguments

TestSuite

TestSuite is the Schema for the testsuites API

Appears in:

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

TestSuiteExecutionCore

test suite execution core

Appears in:

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

TestSuiteExecutionRequest

TestSuiteExecutionRequest defines the 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
cronJobTemplate stringcron job template extensions

TestSuiteList

TestSuiteList contains a list of TestSuite

FieldDescriptionDefaultValidation
apiVersion stringtests.testkube.io/v2
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 TestSuiteStepSpec arrayBefore steps is list of tests which will be sequentially orchestrated
steps TestSuiteStepSpec arraySteps is list of tests which will be sequentially orchestrated
after TestSuiteStepSpec arrayAfter steps is list of tests which will be sequentially orchestrated
repeats integer
description string
schedule stringschedule in cron job format for scheduled test execution
executionRequest TestSuiteExecutionRequest

TestSuiteStepDelay

TestSuiteStepDelay contains step delay parameters

Appears in:

FieldDescriptionDefaultValidation
duration integerDuration in ms

TestSuiteStepExecute

TestSuiteStepExecute defines step to be executed

Appears in:

FieldDescriptionDefaultValidation
namespace string
name string
stopOnFailure boolean

TestSuiteStepSpec

TestSuiteStepSpec for particular type will have config for possible step types

Appears in:

FieldDescriptionDefaultValidation
type TestSuiteStepTypeEnum: [execute delay]
execute TestSuiteStepExecute
delay TestSuiteStepDelay

TestSuiteStepType

Underlying type: string

TestSuiteStepType defines different type of test suite steps

Validation:

  • Enum: [execute delay]

Appears in:

FieldDescription
execute
delay

Variable

Underlying type: Variable

Appears in:

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