From 235680a3eca59c6a18b33a9cb930a9933c68542e Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Wed, 13 Nov 2024 20:44:21 +0300 Subject: [PATCH] feat: add execute test workflows api method spec Signed-off-by: Vladislav Sukhin --- api/v1/testkube.yaml | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/api/v1/testkube.yaml b/api/v1/testkube.yaml index f462bdaa0b..58d8d7ee55 100644 --- a/api/v1/testkube.yaml +++ b/api/v1/testkube.yaml @@ -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