Skip to content

Commit

Permalink
feat: add readonly flag to test-suites (#4448)
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv authored Oct 9, 2023
1 parent 7b50053 commit 652b0bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3435,6 +3435,9 @@ components:
$ref: "#/components/schemas/TestSuiteExecutionRequest"
status:
$ref: "#/components/schemas/TestSuiteStatus"
readOnly:
type: boolean
description: if test suite is offline and cannot be executed

TestSuiteV2:
type: object
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/v1/testkube/model_test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ type TestSuite struct {
Created time.Time `json:"created,omitempty"`
ExecutionRequest *TestSuiteExecutionRequest `json:"executionRequest,omitempty"`
Status *TestSuiteStatus `json:"status"`
// if test suite is offline and cannot be executed
ReadOnly bool `json:"readOnly,omitempty"`
}
2 changes: 2 additions & 0 deletions pkg/api/v1/testkube/model_test_suite_update_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ type TestSuiteUpdateRequest struct {
Created time.Time `json:"created,omitempty"`
ExecutionRequest **TestSuiteExecutionUpdateRequest `json:"executionRequest,omitempty"`
Status *TestSuiteStatus `json:"status"`
// if test suite is offline and cannot be executed
ReadOnly *bool `json:"readOnly,omitempty"`
}
2 changes: 2 additions & 0 deletions pkg/api/v1/testkube/model_test_suite_upsert_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ type TestSuiteUpsertRequest struct {
Created time.Time `json:"created,omitempty"`
ExecutionRequest *TestSuiteExecutionRequest `json:"executionRequest,omitempty"`
Status *TestSuiteStatus `json:"status"`
// if test suite is offline and cannot be executed
ReadOnly bool `json:"readOnly,omitempty"`
}

0 comments on commit 652b0bb

Please sign in to comment.