forked from kubeshop/tracetest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update OpenAPI definition to support new CLI features (kubesho…
…p#3768) * wip * chore: update CLI client * chore: update server with OpenAPI definitions * fixing openapi code generation
- Loading branch information
1 parent
c2e8f06
commit e6239b7
Showing
26 changed files
with
2,378 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
openapi: 3.0.0 | ||
components: | ||
schemas: | ||
RunGroupList: | ||
type: object | ||
properties: | ||
items: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/RunGroup" | ||
|
||
RunGroup: | ||
type: object | ||
required: | ||
- id | ||
nullable: false | ||
properties: | ||
id: | ||
type: string | ||
createdAt: | ||
type: string | ||
format: date-time | ||
readOnly: true | ||
status: | ||
type: string | ||
enum: | ||
- created | ||
- inProgress | ||
- succeed | ||
- failed | ||
readOnly: true | ||
summary: | ||
type: object | ||
properties: | ||
pending: | ||
type: integer | ||
succeed: | ||
type: integer | ||
failed: | ||
type: integer | ||
metadata: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
|
||
|
||
RunGroupRun: | ||
type: object | ||
properties: | ||
testId: | ||
type: string | ||
testVersion: | ||
type: integer | ||
name: | ||
type: string | ||
createdAt: | ||
type: string | ||
format: date-time | ||
completedAt: | ||
type: string | ||
format: date-time | ||
linter: | ||
$ref: "linters.yaml#/components/schemas/LinterResult" | ||
requiredGatesResult: | ||
$ref: "./testRunner.yaml#/components/schemas/RequiredGatesResult" | ||
metadata: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
executionTime: | ||
type: integer | ||
description: time in seconds it took for the test to complete, either success or fail. If the test is still running, it will show the time up to the time of the request | ||
runId: | ||
type: integer | ||
trigger: | ||
$ref: "./triggers.yaml#/components/schemas/Trigger" | ||
state: | ||
type: string | ||
enum: | ||
[ | ||
CREATED, | ||
EXECUTING, | ||
AWAITING_TRACE, | ||
AWAITING_TEST_RESULTS, | ||
ANALYZING_TRACE, | ||
ANALYZING_ERROR, | ||
FINISHED, | ||
STOPPED, | ||
TRIGGER_FAILED, | ||
TRACE_FAILED, | ||
ASSERTION_FAILED, | ||
] | ||
description: Current execution state | ||
result: | ||
$ref: "./tests.yaml#/components/schemas/AssertionResults" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.