Skip to content

Commit

Permalink
feat: add execute test workflows api method spec
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Nov 13, 2024
1 parent 238c55b commit 235680a
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4065,6 +4065,57 @@ paths:
items:
$ref: "#/components/schemas/Problem"
/test-workflow-executions:
post:
parameters:
- $ref: "#/components/parameters/Selector"
- $ref: "#/components/parameters/ConcurrencyLevel"
tags:
- api
- test-workflows
- pro
summary: "Execute test workflows"
description: "Execute test workflows in the kubernetes cluster"
operationId: executeTestWorkflows
requestBody:
description: test workflow execution request
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/TestWorkflowExecutionRequest"
responses:
200:
description: successful execution
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/TestWorkflowExecution"
400:
description: "problem with body parsing - probably some bad input occurs"
content:
application/problem+json:
schema:
type: array
items:
$ref: "#/components/schemas/Problem"
402:
description: "missing Pro subscription for a commercial feature"
content:
application/problem+json:
schema:
type: array
items:
$ref: "#/components/schemas/Problem"
502:
description: problem communicating with kubernetes cluster
content:
application/problem+json:
schema:
type: array
items:
$ref: "#/components/schemas/Problem"
get:
tags:
- test-workflows
Expand Down

0 comments on commit 235680a

Please sign in to comment.