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

Testkube Control Plane ../test-workflows operations

Testkube Pro API (cloud-api/1.10.38)

Download OpenAPI specification:Download

API for Testkube Pro

List test workflows

List test workflows from the kubernetes cluster

path Parameters
id
required
string

organizationId

environmentId
required
string

environmentID

query Parameters
selector
string
Example: selector=kubernetes.io/app=demo

Only workflow executions with given status are included in this time series chart.

Responses

Response samples

Content type
[
  • {
    }
]

Create test workflow

Create test workflow in the kubernetes cluster

path Parameters
id
required
string

organizationId

environmentId
required
string

environmentID

Request Body schema:
required

test workflow body

name
string

kubernetes resource name

namespace
string

kubernetes namespace

description
string

human-readable description

object

test workflow labels

object

test workflow annotations

created
string <date-time>
object (TestWorkflowSpec)
readOnly
boolean

if test workflow is offline and cannot be executed

object (TestWorkflowStatusSummary)

test workflow status

Responses

Request samples

Content type
{
  • "name": "string",
  • "namespace": "string",
  • "description": "string",
  • "labels": {
    },
  • "annotations": {
    },
  • "created": "2022-07-30T06:54:15Z",
  • "spec": {
    },
  • "readOnly": true,
  • "status": {
    }
}

Response samples

Content type
[
  • {
    }
]

Delete test workflows

Delete test workflows from the kubernetes cluster

path Parameters
id
required
string

organizationId

environmentId
required
string

environmentID

query Parameters
selector
string
Example: selector=kubernetes.io/app=demo

Only workflow executions with given status are included in this time series chart.

testWorkflowNames
Array of strings

Responses

Response samples

Content type
application/problem+json
[]

Get test workflow details

Get test workflow details from the kubernetes cluster

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

Responses

Response samples

Content type
{
  • "name": "string",
  • "namespace": "string",
  • "description": "string",
  • "labels": {
    },
  • "annotations": {
    },
  • "created": "2022-07-30T06:54:15Z",
  • "spec": {
    },
  • "readOnly": true,
  • "status": {
    }
}

Update test workflow details

Update test workflow details in the kubernetes cluster

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

Request Body schema:
required

test workflow body

name
string

kubernetes resource name

namespace
string

kubernetes namespace

description
string

human-readable description

object

test workflow labels

object

test workflow annotations

created
string <date-time>
object (TestWorkflowSpec)
readOnly
boolean

if test workflow is offline and cannot be executed

object (TestWorkflowStatusSummary)

test workflow status

Responses

Request samples

Content type
{
  • "name": "string",
  • "namespace": "string",
  • "description": "string",
  • "labels": {
    },
  • "annotations": {
    },
  • "created": "2022-07-30T06:54:15Z",
  • "spec": {
    },
  • "readOnly": true,
  • "status": {
    }
}

Response samples

Content type
{
  • "name": "string",
  • "namespace": "string",
  • "description": "string",
  • "labels": {
    },
  • "annotations": {
    },
  • "created": "2022-07-30T06:54:15Z",
  • "spec": {
    },
  • "readOnly": true,
  • "status": {
    }
}

Delete test workflow

Delete test workflow from the kubernetes cluster

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

query Parameters
skipDeleteExecutions
boolean
Default: false

dont delete executions

Responses

Response samples

Content type
application/problem+json
[]

Abort all test workflow executions

Abort all test workflow executions

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

Responses

Response samples

Content type
application/problem+json
[]

List test workflow executions

List test workflow executions

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

Responses

Response samples

Content type
[
  • {
    }
]

Execute test workflow

Execute test workflow in the kubernetes cluster

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

query Parameters
testWorkflowExecutionName
string

test workflow execution name stated the test workflow execution

Request Body schema: application/json
required

test workflow execution request

name
string

custom execution name

object (TestWorkflowConfigValue)

configuration values to pass to the template

testWorkflowExecutionName
string

test workflow execution name started the test workflow execution

disableWebhooks
boolean
Default: false

whether webhooks on the executions of this test workflow are disabled

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "config": {
    },
  • "testWorkflowExecutionName": "string",
  • "disableWebhooks": false
}

Response samples

Content type
application/json
[
  • {
    }
]

Get test workflow execution

Get test workflow execution details

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

executionID
required
string

unique id of the object execution

Responses

Response samples

Content type
{
  • "id": "62f395e004109209b50edfc1",
  • "name": "some-workflow-name-1",
  • "namespace": "my-testkube",
  • "number": 0,
  • "scheduledAt": "2019-08-24T14:15:22Z",
  • "statusAt": "2019-08-24T14:15:22Z",
  • "signature": [
    ],
  • "result": {
    },
  • "output": [
    ],
  • "reports": [
    ],
  • "workflow": {
    },
  • "resolvedWorkflow": {
    },
  • "testWorkflowExecutionName": "string",
  • "disableWebhooks": [
    ]
}

Abort test workflow execution

Abort test workflow execution

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

executionID
required
string

unique id of the object execution

Responses

Response samples

Content type
application/problem+json
[]

Get test workflow metrics

Get metrics of test workflow executions

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

Responses

Response samples

Content type
{
  • "passFailRatio": 50,
  • "executionDurationP50": "7m2.71s",
  • "executionDurationP50ms": 422,
  • "executionDurationP90": "7m2.71s",
  • "executionDurationP90ms": 422,
  • "executionDurationP95": "7m2.71s",
  • "executionDurationP95ms": 422,
  • "executionDurationP99": "7m2.71s",
  • "executionDurationP99ms": 422,
  • "totalExecutions": 2,
  • "failedExecutions": 1,
  • "executions": [
    ]
}