-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add test workflow running context model
Signed-off-by: Vladislav Sukhin <[email protected]>
- Loading branch information
Showing
11 changed files
with
186 additions
and
20 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
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
17 changes: 17 additions & 0 deletions
17
pkg/api/v1/testkube/model_test_workflow_running_context.go
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,17 @@ | ||
/* | ||
* Testkube API | ||
* | ||
* Testkube provides a Kubernetes-native framework for test definition, execution and results | ||
* | ||
* API version: 1.0.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package testkube | ||
|
||
// running context for test workflow execution | ||
type TestWorkflowRunningContext struct { | ||
Interface_ *TestWorkflowRunningContextInterface `json:"interface"` | ||
Actor *TestWorkflowRunningContextActor `json:"actor"` | ||
Caller *TestWorkflowRunningContextCaller `json:"caller,omitempty"` | ||
} |
20 changes: 20 additions & 0 deletions
20
pkg/api/v1/testkube/model_test_workflow_running_context_actor.go
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,20 @@ | ||
/* | ||
* Testkube API | ||
* | ||
* Testkube provides a Kubernetes-native framework for test definition, execution and results | ||
* | ||
* API version: 1.0.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package testkube | ||
|
||
// TestWorkflowRunningContextActor : supported actors for test workflow running context | ||
type TestWorkflowRunningContextActor string | ||
|
||
// List of TestWorkflowRunningContextActor | ||
const ( | ||
CRON_TestWorkflowRunningContextActor TestWorkflowRunningContextActor = "cron" | ||
TESTRIGGER_TestWorkflowRunningContextActor TestWorkflowRunningContextActor = "testrigger" | ||
USER_TestWorkflowRunningContextActor TestWorkflowRunningContextActor = "user" | ||
) |
21 changes: 21 additions & 0 deletions
21
pkg/api/v1/testkube/model_test_workflow_running_context_caller.go
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,21 @@ | ||
/* | ||
* Testkube API | ||
* | ||
* Testkube provides a Kubernetes-native framework for test definition, execution and results | ||
* | ||
* API version: 1.0.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package testkube | ||
|
||
// running context caller for test workflow execution | ||
type TestWorkflowRunningContextCaller struct { | ||
CallerResourceType *TestWorkflowRunningContextCallerResourceType `json:"callerResourceType"` | ||
// caller resource name | ||
CallerResourceName string `json:"callerResourceName"` | ||
// caller resource execution id | ||
CallerResourceExecutionID string `json:"callerResourceExecutionID"` | ||
// all test workflow execution ids starting from the root | ||
FullExecutionPath string `json:"fullExecutionPath"` | ||
} |
18 changes: 18 additions & 0 deletions
18
pkg/api/v1/testkube/model_test_workflow_running_context_caller_resource_type.go
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,18 @@ | ||
/* | ||
* Testkube API | ||
* | ||
* Testkube provides a Kubernetes-native framework for test definition, execution and results | ||
* | ||
* API version: 1.0.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package testkube | ||
|
||
// TestWorkflowRunningContextCallerResourceType : supported caller resource types for test workflow running context | ||
type TestWorkflowRunningContextCallerResourceType string | ||
|
||
// List of TestWorkflowRunningContextCallerResourceType | ||
const ( | ||
TESTWORKFLOW_TestWorkflowRunningContextCallerResourceType TestWorkflowRunningContextCallerResourceType = "testworkflow" | ||
) |
20 changes: 20 additions & 0 deletions
20
pkg/api/v1/testkube/model_test_workflow_running_context_interface.go
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,20 @@ | ||
/* | ||
* Testkube API | ||
* | ||
* Testkube provides a Kubernetes-native framework for test definition, execution and results | ||
* | ||
* API version: 1.0.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package testkube | ||
|
||
// TestWorkflowRunningContextInterface : supported interfaces for test workflow running context | ||
type TestWorkflowRunningContextInterface string | ||
|
||
// List of TestWorkflowRunningContextInterface | ||
const ( | ||
CLI_TestWorkflowRunningContextInterface TestWorkflowRunningContextInterface = "cli" | ||
UI_TestWorkflowRunningContextInterface TestWorkflowRunningContextInterface = "ui" | ||
API_TestWorkflowRunningContextInterface TestWorkflowRunningContextInterface = "api" | ||
) |