Skip to content

Commit

Permalink
fix: update openapi schema (#4417)
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv authored Sep 29, 2023
1 parent f5af643 commit 4db3157
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
15 changes: 14 additions & 1 deletion api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,7 @@ paths:
- api
parameters:
- $ref: "#/components/parameters/ID"
- $ref: "#/components/parameters/SkipDeleteExecutions"
summary: "Delete test"
description: "Deletes a test"
operationId: deleteTest
Expand Down Expand Up @@ -3892,6 +3893,10 @@ components:
type: string
description: schedule to run test
example: "* * * * *"
readOnly:
type: boolean
description: if test is offline and cannot be executed

uploads:
type: array
items:
Expand Down Expand Up @@ -5954,6 +5959,14 @@ components:
type: string
description: mask to filter files
required: false
SkipDeleteExecutions:
in: query
name: skipDeleteExecutions
schema:
type: boolean
default: false
description: dont delete executions
required: false
requestBodies:
UploadsBody:
description: "Upload files request body data"
Expand All @@ -5973,4 +5986,4 @@ components:
- execution
filePath:
type: string
example: folder/file.txt
example: folder/file.txt
4 changes: 2 additions & 2 deletions pkg/api/v1/testkube/model_test_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ type Test struct {
Labels map[string]string `json:"labels,omitempty"`
// schedule to run test
Schedule string `json:"schedule,omitempty"`
// if test is offline and cannot be executed
ReadOnly bool `json:"readOnly,omitempty"`
// list of file paths that will be needed from uploads
Uploads []string `json:"uploads,omitempty"`
ExecutionRequest *ExecutionRequest `json:"executionRequest,omitempty"`
Status *TestStatus `json:"status,omitempty"`
// true means that test is offline and cannot be executed
ReadOnly bool `json:"readOnly,omitempty"`
}
2 changes: 2 additions & 0 deletions pkg/api/v1/testkube/model_test_update_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type TestUpdateRequest struct {
Labels *map[string]string `json:"labels,omitempty"`
// schedule to run test
Schedule *string `json:"schedule,omitempty"`
// if test is offline and cannot be executed
ReadOnly *bool `json:"readOnly,omitempty"`
// list of file paths that will be needed from uploads
Uploads *[]string `json:"uploads,omitempty"`
ExecutionRequest **ExecutionUpdateRequest `json:"executionRequest,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/v1/testkube/model_test_upsert_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type TestUpsertRequest struct {
Labels map[string]string `json:"labels,omitempty"`
// schedule to run test
Schedule string `json:"schedule,omitempty"`
// if test is offline and cannot be executed
ReadOnly bool `json:"readOnly,omitempty"`
// list of file paths that will be needed from uploads
Uploads []string `json:"uploads,omitempty"`
ExecutionRequest *ExecutionRequest `json:"executionRequest,omitempty"`
Expand Down

0 comments on commit 4db3157

Please sign in to comment.