Testkube Agent /templates operations
Testkube API (1.0.0)
Download OpenAPI specification:Download
E-mail: testkube@kubeshop.io License: MIT
Testkube provides a Kubernetes-native framework for test definition, execution and results
Create new template
Create new template based on variables passed in request
Request Body schema: required
template request body data
name required | string template name for reference |
namespace | string template namespace |
type required | string (TemplateType) Enum: "job" "container" "cronjob" "scraper" "pvc" "webhook" "pod" template type by purpose |
body required | string template body to use |
object template labels |
Responses
Request samples
- Payload
Content type
{- "name": "webhook-template",
- "namespace": "testkube",
- "type": "job",
- "body": "{\"id\": \"{{ .Id }}\"}",
- "labels": {
- "env": "prod",
- "app": "backend"
}
}
Response samples
- 201
- 400
- 502
Content type
application/json
{- "name": "webhook-template",
- "namespace": "testkube",
- "type": "job",
- "body": "{\"id\": \"{{ .Id }}\"}",
- "labels": {
- "env": "prod",
- "app": "backend"
}
}
Update new template
Update new template based on variables passed in request
path Parameters
id required | string unique id of the object |
Request Body schema: required
template request body data
name required | string template name for reference |
namespace | string template namespace |
type required | string (TemplateType) Enum: "job" "container" "cronjob" "scraper" "pvc" "webhook" "pod" template type by purpose |
body required | string template body to use |
object template labels |
Responses
Request samples
- Payload
Content type
{- "name": "webhook-template",
- "namespace": "testkube",
- "type": "job",
- "body": "{\"id\": \"{{ .Id }}\"}",
- "labels": {
- "env": "prod",
- "app": "backend"
}
}
Response samples
- 200
- 400
- 404
- 502
Content type
application/json
{- "name": "webhook-template",
- "namespace": "testkube",
- "type": "job",
- "body": "{\"id\": \"{{ .Id }}\"}",
- "labels": {
- "env": "prod",
- "app": "backend"
}
}