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

API Reference

Packages

testworkflows.testkube.io/v1

Package v1 contains API Schema definitions for the Test Workflows v1 API group

Resource Types

ArtifactCompression

Appears in:

FieldDescriptionDefaultValidation
name stringartifact nameMinLength: 1
Required: {}

ContainerConfig

Appears in:

FieldDescriptionDefaultValidation
workingDir stringoverride default working directory in the image (empty string to default WORKDIR for the image)
image stringimage to be used for the container
imagePullPolicy PullPolicypulling policy for the image
env EnvVar arrayenvironment variables to append to the container
envFrom EnvFromSource arrayexternal environment variables to append to the container
command stringoverride default command in the image (empty string to default ENTRYPOINT of the image)
args stringoverride default command in the image (empty string to default CMD of the image)
resources Resourcesexpected resources for the container
securityContext SecurityContextsecurity context for the container
volumeMounts VolumeMount arrayvolume mounts to append to the container

Content

Appears in:

FieldDescriptionDefaultValidation
git ContentGitgit repository details
files ContentFile arrayfiles to load
tarball ContentTarball arraytarballs to unpack

ContentFile

Appears in:

FieldDescriptionDefaultValidation
path stringpath where the file should be accessible atMinLength: 1
content stringplain-text content to put inside
contentFrom EnvVarSourceexternal source to use
mode integermode to use for the file

ContentGit

Appears in:

FieldDescriptionDefaultValidation
uri stringuri for the Git repository
revision stringbranch, commit or a tag name to fetch
username stringplain text username to fetch with
usernameFrom EnvVarSourceexternal username to fetch with
token stringplain text token to fetch with
tokenFrom EnvVarSourceexternal token to fetch with
sshKey stringplain text SSH private key to fetch with
sshKeyFrom EnvVarSourceexternal SSH private key to fetch with
authType GitAuthTypeauthorization type for the credentialsEnum: [basic header]
mountPath stringwhere to mount the fetched repository contents (defaults to "repo" directory in the data volume)
paths string arraypaths to fetch for the sparse checkout

ContentTarball

Appears in:

FieldDescriptionDefaultValidation
url stringurl for the tarball to extract
path stringpath where the tarball should be extracted
mount booleanshould it mount a new volume there

CronJobConfig

cron job configuration

Appears in:

FieldDescriptionDefaultValidation
cron stringcron schedule to run a test workflow
labels object (keys:string, values:string)labels to attach to the cron job
annotations object (keys:string, values:string)annotations to attach to the cron job

DynamicList

Validation:

  • Type: dynamicList

Appears in:

FieldDescriptionDefaultValidation
Dynamic boolean
Static interface array
Expression string

Event

Appears in:

FieldDescriptionDefaultValidation
cronjob CronJobConfig

IndependentServiceSpec

Appears in:

FieldDescriptionDefaultValidation
matrix object (keys:string, values:DynamicList)matrix of parameters to spawn instances (static)
count IntOrStringstatic number of sharded instances to spawn
maxCount IntOrStringdynamic number of sharded instances to spawn - it will be lowered if there is not enough sharded values
shards object (keys:string, values:DynamicList)parameters that should be distributed across sharded instances
description stringservice description to display
logs stringshould save logs for the service (false if not specified)
timeout stringmaximum time until reaching readinessPattern: ^((0|[1-9][0-9]*)h)?((0|[1-9][0-9]*)m)?((0|[1-9][0-9]*)s)?((0|[1-9][0-9]*)ms)?$
transfer StepParallelTransfer arrayinstructions for transferring files
content Contentglobal content that should be fetched into all containers
pod PodConfigconfiguration for the scheduled pod
workingDir stringoverride default working directory in the image (empty string to default WORKDIR for the image)
image stringimage to be used for the container
imagePullPolicy PullPolicypulling policy for the image
env EnvVar arrayenvironment variables to append to the container
envFrom EnvFromSource arrayexternal environment variables to append to the container
command stringoverride default command in the image (empty string to default ENTRYPOINT of the image)
args stringoverride default command in the image (empty string to default CMD of the image)
resources Resourcesexpected resources for the container
securityContext SecurityContextsecurity context for the container
volumeMounts VolumeMount arrayvolume mounts to append to the container
shell stringscript to run in a default shell for the container
restartPolicy ServiceRestartPolicyRestart policy for the main container in the pod. One of OnFailure or Never.
readinessProbe ProbeProbe to check if the service has started correctly

IndependentStep

Appears in:

FieldDescriptionDefaultValidation
name stringreadable name for the step
condition stringexpression to declare under which conditions the step should be run
defaults to: "passed", except artifacts where it defaults to "always"
pure booleanmark the step as pure, applying optimizations to merge the containers together
negative booleanis the step expected to fail
optional booleanis the step optional, so its failure won't affect the TestWorkflow result
paused booleanpause the step initially
retry RetryPolicypolicy for retrying the step
timeout stringmaximum time this step may takePattern: ^((0|[1-9][0-9]*)h)?((0|[1-9][0-9]*)m)?((0|[1-9][0-9]*)s)?((0|[1-9][0-9]*)ms)?$
content Contentcontent that should be fetched for this step
services object (keys:string, values:IndependentServiceSpec)list of accompanying services to start
container ContainerConfigdefaults for the containers in this step
workingDir stringworking directory to use for this step
setup IndependentStep arraysteps to run before other operations in this stepSchemaless: {}
delay stringdelay before the stepPattern: ^((0|[1-9][0-9]*)h)?((0|[1-9][0-9]*)m)?((0|[1-9][0-9]*)s)?((0|[1-9][0-9]*)ms)?$
shell stringscript to run in a default shell for the container
run StepRunrun specific container in the current step
execute StepExecuteexecute other Testkube resources
artifacts StepArtifactsscrape artifacts from the volumes
parallel IndependentStepParallelinstructions for parallel execution
steps IndependentStep arraysub-steps to runSchemaless: {}

IndependentStepParallel

Underlying type: struct{Parallelism int32 "json:"parallelism,omitempty""; StepExecuteStrategy "json:",inline" expr:"include""; Description string "json:"description,omitempty" expr:"template""; Logs *string "json:"logs,omitempty" expr:"expression""; Transfer []StepParallelTransfer "json:"transfer,omitempty" expr:"include""; Fetch []StepParallelFetch "json:"fetch,omitempty" expr:"include""; TestWorkflowTemplateSpec "json:",inline" expr:"include""; StepControl "json:",inline" expr:"include""; StepOperations "json:",inline" expr:"include""}

Appears in:

JobConfig

Appears in:

FieldDescriptionDefaultValidation
labels object (keys:string, values:string)labels added to the scheduled job
annotations object (keys:string, values:string)annotations added to the scheduled job
namespace stringnamespace for execution of test workflow
activeDeadlineSeconds integerduration in seconds the job may be active on the node

NotificationsConfig

Appears in:

FieldDescriptionDefaultValidation
disableWebhooks boolean

ParameterNumberSchema

Appears in:

FieldDescriptionDefaultValidation
minimum integerminimum value for the number (inclusive)
maximum integermaximum value for the number (inclusive)
exclusiveMinimum integerminimum value for the number (exclusive)
exclusiveMaximum integermaximum value for the number (exclusive)
multipleOf integerthe number needs to be multiple of this value

ParameterSchema

Appears in:

FieldDescriptionDefaultValidation
description stringparameter description
type ParameterTypetype of the parameterstringEnum: [string integer number boolean]
enum string arraythe list of allowed values, when limited
example IntOrStringexemplary value
default IntOrStringdefault value - if not provided, the parameter is requiredXIntOrString: {}
sensitive booleanwhether this value should be stored in the secret
format stringpredefined format for the string
pattern stringregular expression to match
minLength integerminimum length for the string
maxLength integermaximum length for the string
minimum integerminimum value for the number (inclusive)
maximum integermaximum value for the number (inclusive)
exclusiveMinimum integerminimum value for the number (exclusive)
exclusiveMaximum integermaximum value for the number (exclusive)
multipleOf integerthe number needs to be multiple of this value

ParameterStringSchema

Appears in:

FieldDescriptionDefaultValidation
format stringpredefined format for the string
pattern stringregular expression to match
minLength integerminimum length for the string
maxLength integermaximum length for the string

ParameterType

Underlying type: string

Validation:

  • Enum: [string integer number boolean]

Appears in:

FieldDescription
string
integer
number
boolean

PodConfig

Appears in:

FieldDescriptionDefaultValidation
serviceAccountName stringdefault service account name for the scheduled pod
imagePullSecrets LocalObjectReference arrayreferences to secrets with credentials for pulling the images from registry
nodeSelector object (keys:string, values:string)node selector to define on which node the pod should land
labels object (keys:string, values:string)labels added to the scheduled pod
annotations object (keys:string, values:string)annotations added to the scheduled pod
volumes Volume arrayvolumes to include in the podSchemaless: {}
activeDeadlineSeconds integerduration in seconds the pod may be active on the node
dnsPolicy DNSPolicyDNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
nodeName stringNodeName is a request to schedule this pod onto a specific node.
securityContext PodSecurityContextSecurityContext holds pod-level security attributes and common container settings.
hostname stringSpecifies the hostname of the Pod
subdomain stringIf specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
affinity AffinityIf specified, the pod's scheduling constraintsSchemaless: {}
tolerations Toleration arrayIf specified, the pod's tolerations.
hostAliases HostAlias arrayHostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified
priorityClassName stringIf specified, indicates the pod's priority.
priority integerThe priority value. Various system components use this field to find the priority of the pod.
dnsConfig PodDNSConfigSpecifies the DNS parameters of a pod.
preemptionPolicy PreemptionPolicyPreemptionPolicy is the Policy for preempting pods with lower priority.
topologySpreadConstraints TopologySpreadConstraint arrayTopologySpreadConstraints describes how a group of pods ought to spread across topology domains.Schemaless: {}
schedulingGates PodSchedulingGate arraySchedulingGates is an opaque list of values that if specified will block scheduling the pod.
resourceClaims PodResourceClaim arrayResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start.

Resources

Appears in:

FieldDescriptionDefaultValidation
limits object (keys:ResourceName, values:IntOrString)resource limits for the container
requests object (keys:ResourceName, values:IntOrString)resource requests for the container

RetryPolicy

Appears in:

FieldDescriptionDefaultValidation
count integerhow many times at most it should retryMinimum: 1
Required: {}
until stringuntil when it should retry (defaults to: "passed")

ServiceRestartPolicy

Underlying type: string

Appears in:

FieldDescription
OnFailure
Never

ServiceSpec

Appears in:

FieldDescriptionDefaultValidation
use TemplateRef arraymultiple templates to include in this step
matrix object (keys:string, values:DynamicList)matrix of parameters to spawn instances (static)
count IntOrStringstatic number of sharded instances to spawn
maxCount IntOrStringdynamic number of sharded instances to spawn - it will be lowered if there is not enough sharded values
shards object (keys:string, values:DynamicList)parameters that should be distributed across sharded instances
description stringservice description to display
logs stringshould save logs for the service (false if not specified)
timeout stringmaximum time until reaching readinessPattern: ^((0|[1-9][0-9]*)h)?((0|[1-9][0-9]*)m)?((0|[1-9][0-9]*)s)?((0|[1-9][0-9]*)ms)?$
transfer StepParallelTransfer arrayinstructions for transferring files
content Contentglobal content that should be fetched into all containers
pod PodConfigconfiguration for the scheduled pod
workingDir stringoverride default working directory in the image (empty string to default WORKDIR for the image)
image stringimage to be used for the container
imagePullPolicy PullPolicypulling policy for the image
env EnvVar arrayenvironment variables to append to the container
envFrom EnvFromSource arrayexternal environment variables to append to the container
command stringoverride default command in the image (empty string to default ENTRYPOINT of the image)
args stringoverride default command in the image (empty string to default CMD of the image)
resources Resourcesexpected resources for the container
securityContext SecurityContextsecurity context for the container
volumeMounts VolumeMount arrayvolume mounts to append to the container
shell stringscript to run in a default shell for the container
restartPolicy ServiceRestartPolicyRestart policy for the main container in the pod. One of OnFailure or Never.
readinessProbe ProbeProbe to check if the service has started correctly

Step

Appears in:

FieldDescriptionDefaultValidation
name stringreadable name for the step
condition stringexpression to declare under which conditions the step should be run
defaults to: "passed", except artifacts where it defaults to "always"
pure booleanmark the step as pure, applying optimizations to merge the containers together
negative booleanis the step expected to fail
optional booleanis the step optional, so its failure won't affect the TestWorkflow result
paused booleanpause the step initially
retry RetryPolicypolicy for retrying the step
timeout stringmaximum time this step may takePattern: ^((0|[1-9][0-9]*)h)?((0|[1-9][0-9]*)m)?((0|[1-9][0-9]*)s)?((0|[1-9][0-9]*)ms)?$
use TemplateRef arraymultiple templates to include in this step
content Contentcontent that should be fetched for this step
services object (keys:string, values:ServiceSpec)list of accompanying services to start
container ContainerConfigdefaults for the containers in this step
workingDir stringworking directory to use for this step
setup Step arraysteps to run before other operations in this stepSchemaless: {}
delay stringdelay before the stepPattern: ^((0|[1-9][0-9]*)h)?((0|[1-9][0-9]*)m)?((0|[1-9][0-9]*)s)?((0|[1-9][0-9]*)ms)?$
shell stringscript to run in a default shell for the container
run StepRunrun specific container in the current step
execute StepExecuteexecute other Testkube resources
artifacts StepArtifactsscrape artifacts from the volumes
template TemplateRefsingle template to run in this step
parallel StepParallelinstructions for parallel execution
steps Step arraysub-steps to runSchemaless: {}

StepArtifacts

Appears in:

FieldDescriptionDefaultValidation
workingDir stringworking directory to override, so it will be used as a base dir
compress ArtifactCompressioncompression options for the artifacts
paths string arraypaths to fetch from the container

StepControl

Appears in:

FieldDescriptionDefaultValidation
negative booleanis the step expected to fail
optional booleanis the step optional, so its failure won't affect the TestWorkflow result
paused booleanpause the step initially
retry RetryPolicypolicy for retrying the step
timeout stringmaximum time this step may takePattern: ^((0|[1-9][0-9]*)h)?((0|[1-9][0-9]*)m)?((0|[1-9][0-9]*)s)?((0|[1-9][0-9]*)ms)?$

StepDefaults

Appears in:

FieldDescriptionDefaultValidation
container ContainerConfigdefaults for the containers in this step
workingDir stringworking directory to use for this step

StepExecute

Appears in:

FieldDescriptionDefaultValidation
parallelism integerhow many resources could be scheduled in parallel
async booleanonly schedule the resources, don't watch the results (unless it is needed for parallelism)
tests StepExecuteTest arraytests to run
workflows StepExecuteWorkflow arrayworkflows to run

StepExecuteStrategy

Appears in:

FieldDescriptionDefaultValidation
matrix object (keys:string, values:DynamicList)matrix of parameters to spawn instances (static)
count IntOrStringstatic number of sharded instances to spawn
maxCount IntOrStringdynamic number of sharded instances to spawn - it will be lowered if there is not enough sharded values
shards object (keys:string, values:DynamicList)parameters that should be distributed across sharded instances

StepExecuteTest

Appears in:

FieldDescriptionDefaultValidation
name stringtest name to run
description stringtest execution description to display
matrix object (keys:string, values:DynamicList)matrix of parameters to spawn instances (static)
count IntOrStringstatic number of sharded instances to spawn
maxCount IntOrStringdynamic number of sharded instances to spawn - it will be lowered if there is not enough sharded values
shards object (keys:string, values:DynamicList)parameters that should be distributed across sharded instances
tarball object (keys:string, values:TarballRequest)pack some data from the original file system to serve them down
executionRequest TestExecutionRequestpass the execution request overrides

StepExecuteWorkflow

Appears in:

FieldDescriptionDefaultValidation
name stringworkflow name to run
description stringtest workflow execution description to display
matrix object (keys:string, values:DynamicList)matrix of parameters to spawn instances (static)
count IntOrStringstatic number of sharded instances to spawn
maxCount IntOrStringdynamic number of sharded instances to spawn - it will be lowered if there is not enough sharded values
shards object (keys:string, values:DynamicList)parameters that should be distributed across sharded instances
executionName stringunique execution name to use
tarball object (keys:string, values:TarballRequest)pack some data from the original file system to serve them down
config object (keys:string, values:IntOrString)configuration to pass for the workflow

StepMeta

Appears in:

FieldDescriptionDefaultValidation
name stringreadable name for the step
condition stringexpression to declare under which conditions the step should be run
defaults to: "passed", except artifacts where it defaults to "always"
pure booleanmark the step as pure, applying optimizations to merge the containers together

StepOperations

Appears in:

FieldDescriptionDefaultValidation
delay stringdelay before the stepPattern: ^((0|[1-9][0-9]*)h)?((0|[1-9][0-9]*)m)?((0|[1-9][0-9]*)s)?((0|[1-9][0-9]*)ms)?$
shell stringscript to run in a default shell for the container
run StepRunrun specific container in the current step
execute StepExecuteexecute other Testkube resources
artifacts StepArtifactsscrape artifacts from the volumes

StepParallel

Underlying type: struct{Parallelism int32 "json:"parallelism,omitempty""; StepExecuteStrategy "json:",inline" expr:"include""; Description string "json:"description,omitempty" expr:"template""; Logs *string "json:"logs,omitempty" expr:"expression""; Transfer []StepParallelTransfer "json:"transfer,omitempty" expr:"include""; Fetch []StepParallelFetch "json:"fetch,omitempty" expr:"include""; TestWorkflowSpec "json:",inline" expr:"include""; StepControl "json:",inline" expr:"include""; StepOperations "json:",inline" expr:"include""; Template *TemplateRef "json:"template,omitempty" expr:"include""}

Appears in:

StepParallelTransfer

Appears in:

FieldDescriptionDefaultValidation
from stringpath to load the files from
files DynamicListfile patterns to packType: dynamicList
to stringpath where the tarball should be extracted
mount booleanshould it mount a new volume there

StepRun

Appears in:

FieldDescriptionDefaultValidation
workingDir stringoverride default working directory in the image (empty string to default WORKDIR for the image)
image stringimage to be used for the container
imagePullPolicy PullPolicypulling policy for the image
env EnvVar arrayenvironment variables to append to the container
envFrom EnvFromSource arrayexternal environment variables to append to the container
command stringoverride default command in the image (empty string to default ENTRYPOINT of the image)
args stringoverride default command in the image (empty string to default CMD of the image)
resources Resourcesexpected resources for the container
securityContext SecurityContextsecurity context for the container
volumeMounts VolumeMount arrayvolume mounts to append to the container
shell stringscript to run in a default shell for the container

StepSource

Appears in:

FieldDescriptionDefaultValidation
content Contentcontent that should be fetched for this step

TarballRequest

Appears in:

FieldDescriptionDefaultValidation
from stringpath to load the files from
files DynamicListfile patterns to packType: dynamicList

TemplateRef

TemplateRef is the reference for the template inclusion

Appears in:

FieldDescriptionDefaultValidation
name stringname of the template to include
config object (keys:string, values:IntOrString)trait configuration values if needed

TestExecutionRequest

Appears in:

FieldDescriptionDefaultValidation
name stringtest execution custom name
executionLabels object (keys:string, values:string)test execution labels
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
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
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
cronJobTemplate stringcron job template extensions
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
envConfigMaps EnvReference arrayconfig map references
envSecrets EnvReference arraysecret references
executionNamespace stringnamespace for test execution (Pro edition only)

TestWorkflow

TestWorkflow is the Schema for the workflows API

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringtestworkflows.testkube.io/v1
kind stringTestWorkflow
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
description stringTestWorkflow readable description
spec TestWorkflowSpecTestWorkflow specification

TestWorkflowExecution

TestWorkflowExecution is the Schema for the workflows API

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringtestworkflows.testkube.io/v1
kind stringTestWorkflowExecution
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec TestWorkflowExecutionSpecTestWorkflowExecution specification

TestWorkflowExecutionDetails

TestWorkflowExecutionDetails contains the details of TestWorkflowExecution

Appears in:

FieldDescriptionDefaultValidation
id stringunique execution identifier
name stringexecution name
namespace stringexecution namespace
number integersequence number for the execution
scheduledAt Timewhen the execution has been scheduled to run
statusAt Timewhen the execution result's status has changed last time (queued, passed, failed)
signature TestWorkflowSignature arraystructured tree of steps
result TestWorkflowResult
output TestWorkflowOutput arrayadditional information from the steps, like referenced executed tests or artifacts
reports TestWorkflowReport arraygenerated reports from the steps, like junit
workflow TestWorkflowSchemaless: {}
resolvedWorkflow TestWorkflowSchemaless: {}
testWorkflowExecutionName stringtest workflow execution name started the test workflow execution
disableWebhooks booleanwhether webhooks should be disabled for this execution
tags object (keys:string, values:string)test workflow execution tags

TestWorkflowExecutionList

TestWorkflowExecutionList contains a list of TestWorkflowExecutiom

FieldDescriptionDefaultValidation
apiVersion stringtestworkflows.testkube.io/v1
kind stringTestWorkflowExecutionList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items TestWorkflowExecution array

TestWorkflowExecutionRequest

TestWorkflowExecutionRequest contains TestWorkflow execution parameters

Appears in:

FieldDescriptionDefaultValidation
name stringcustom execution name
config object (keys:string, values:IntOrString)
testWorkflowExecutionName stringtest workflow execution name started the test workflow execution
disableWebhooks booleanwhether webhooks should be disabled for this execution
tags object (keys:string, values:string)test workflow execution tags

TestWorkflowExecutionSpec

TestWorkflowExecutionSpec defines the desired state of TestWorkflowExecution

Appears in:

FieldDescriptionDefaultValidation
testWorkflow LocalObjectReference
executionRequest TestWorkflowExecutionRequest

TestWorkflowExecutionSummary

TestWorkflowExecutionSummary contains TestWorkflow execution summary

Appears in:

FieldDescriptionDefaultValidation
id stringunique execution identifier
name stringexecution name
number integersequence number for the execution
scheduledAt Timewhen the execution has been scheduled to run
statusAt Timewhen the execution result's status has changed last time (queued, passed, failed)
result TestWorkflowResultSummary
workflow TestWorkflowSummary
tags object (keys:string, values:string)test workflow execution tags

TestWorkflowList

TestWorkflowList contains a list of TestWorkflow

FieldDescriptionDefaultValidation
apiVersion stringtestworkflows.testkube.io/v1
kind stringTestWorkflowList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items TestWorkflow array

TestWorkflowOutput

TestWorkflowOutput defines output of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
ref stringstep reference
name stringoutput kind name
value object (keys:string, values:DynamicList)value returned

TestWorkflowPause

TestWorkflowPause defines pause of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
ref stringstep at which it was paused
pausedAt Timewhen the pause has started
resumedAt Timewhen the pause has ended

TestWorkflowReport

TestWorkflowStepReport contains report of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
ref stringstep reference
kind stringreport kind/type
file stringfile path to full report in artifact storage
summary TestWorkflowReportSummary

TestWorkflowReportSummary

TestWorkflowStepReportSummary contains report summary of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
tests integertotal number of test cases
passed integernumber of passed test cases
failed integernumber of failed test cases
skipped integernumber of skipped test cases
errored integernumber of error test cases
duration integertotal duration of all test cases in milliseconds

TestWorkflowResult

TestWorkflowResult contains result of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
predictedStatus TestWorkflowStatusEnum: [queued running paused passed failed aborted]
queuedAt Timewhen the pod was created
startedAt Timewhen the pod has been successfully assigned
finishedAt Timewhen the pod has been completed
duration stringGo-formatted (human-readable) duration
totalDuration stringGo-formatted (human-readable) total duration (incl. pause)
durationMs integerDuration in milliseconds
pausedMs integerPause duration in milliseconds
totalDurationMs integerTotal duration in milliseconds (incl. pause)
pauses TestWorkflowPause array
initialization TestWorkflowStepResult
steps object (keys:string, values:TestWorkflowStepResult)

TestWorkflowResultSummary

TestWorkflowResultSummary defines TestWorkflow result summary

Appears in:

FieldDescriptionDefaultValidation
predictedStatus TestWorkflowStatusEnum: [queued running paused passed failed aborted]
queuedAt Timewhen the pod was created
startedAt Timewhen the pod has been successfully assigned
finishedAt Timewhen the pod has been completed
duration stringGo-formatted (human-readable) duration
totalDuration stringGo-formatted (human-readable) duration (incl. pause)
durationMs integerDuration in milliseconds
totalDurationMs integerDuration in milliseconds (incl. pause)
pausedMs integerPause duration in milliseconds

TestWorkflowSignature

TestWorkflowSignature has signature of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
ref stringstep reference
name stringstep name
category stringstep category, that may be used as name fallback
optional booleanis the step/group meant to be optional
negative booleanis the step/group meant to be negative
children TestWorkflowSignature arraySchemaless: {}

TestWorkflowSpec

TestWorkflowSpec defines the desired state of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
use TemplateRef arraytemplates to include at a top-level of workflow
events Event arrayevents triggering execution of the test workflow
system TestWorkflowSystemsystem configuration to define the orchestration behavior
config object (keys:string, values:ParameterSchema)make the instance configurable with some input data for scheduling it
content Contentglobal content that should be fetched into all containers
container ContainerConfigdefaults for the containers for all the TestWorkflow steps
job JobConfigconfiguration for the scheduled job
pod PodConfigconfiguration for the scheduled pod
notifications NotificationsConfigconfiguration for notifications
Deprecated: field is not used
execution TestWorkflowTagSchemavalues to be used for test workflow execution
services object (keys:string, values:ServiceSpec)list of accompanying services to start
setup Step arraysteps for setting up the workflow
steps Step arraysteps to execute in the workflow
after Step arraysteps to run at the end of the workflow

TestWorkflowSpecBase

Appears in:

FieldDescriptionDefaultValidation
events Event arrayevents triggering execution of the test workflow
system TestWorkflowSystemsystem configuration to define the orchestration behavior
config object (keys:string, values:ParameterSchema)make the instance configurable with some input data for scheduling it
content Contentglobal content that should be fetched into all containers
container ContainerConfigdefaults for the containers for all the TestWorkflow steps
job JobConfigconfiguration for the scheduled job
pod PodConfigconfiguration for the scheduled pod
notifications NotificationsConfigconfiguration for notifications
Deprecated: field is not used
execution TestWorkflowTagSchemavalues to be used for test workflow execution

TestWorkflowStatus

Underlying type: string

TestWorkflowStatus has status of TestWorkflow

Validation:

  • Enum: [queued running paused passed failed aborted]

Appears in:

FieldDescription
queued
running
paused
passed
failed
aborted

TestWorkflowStepResult

TestWorkflowStepResult contains step result of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
errorMessage string
exitCode integer
queuedAt Timewhen the container was created
startedAt Timewhen the container was started
finishedAt Timewhen the container was finished

TestWorkflowSummary

TestWorkflowSummary fas TestWorkflow summary

Appears in:

FieldDescriptionDefaultValidation
name string
namespace string
labels object (keys:string, values:string)
annotations object (keys:string, values:string)

TestWorkflowSystem

Appears in:

FieldDescriptionDefaultValidation
pureByDefault booleanassume all the steps are pure by default
isolatedContainers booleandisable the behavior of merging multiple operations in a single container

TestWorkflowTagSchema

Appears in:

FieldDescriptionDefaultValidation
tags object (keys:string, values:string)test workflow execution tags

TestWorkflowTemplate

TestWorkflowTemplate is the Schema for the workflows API

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringtestworkflows.testkube.io/v1
kind stringTestWorkflowTemplate
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
description stringTestWorkflowTemplate readable description
spec TestWorkflowTemplateSpecTestWorkflowTemplate specification

TestWorkflowTemplateList

TestWorkflowTemplateList contains a list of TestWorkflowTemplate

FieldDescriptionDefaultValidation
apiVersion stringtestworkflows.testkube.io/v1
kind stringTestWorkflowTemplateList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items TestWorkflowTemplate array

TestWorkflowTemplateSpec

TestWorkflowTemplateSpec defines the desired state of TestWorkflow

Appears in:

FieldDescriptionDefaultValidation
events Event arrayevents triggering execution of the test workflow
system TestWorkflowSystemsystem configuration to define the orchestration behavior
config object (keys:string, values:ParameterSchema)make the instance configurable with some input data for scheduling it
content Contentglobal content that should be fetched into all containers
container ContainerConfigdefaults for the containers for all the TestWorkflow steps
job JobConfigconfiguration for the scheduled job
pod PodConfigconfiguration for the scheduled pod
notifications NotificationsConfigconfiguration for notifications
Deprecated: field is not used
execution TestWorkflowTagSchemavalues to be used for test workflow execution
services object (keys:string, values:IndependentServiceSpec)list of accompanying services to start
setup IndependentStep arraysteps for setting up the workflow
steps IndependentStep arraysteps to execute in the workflow
after IndependentStep arraysteps to run at the end of the workflow