diff --git a/api/v1/testkube.yaml b/api/v1/testkube.yaml index de673a015e..63d862b1cd 100644 --- a/api/v1/testkube.yaml +++ b/api/v1/testkube.yaml @@ -8086,10 +8086,7 @@ components: tags: $ref: "#/components/schemas/TestWorkflowTagValue" runningContext: - type: array - description: running context for the test workflow execution - items: - $ref: "#/components/schemas/TestWorkflowRunningContext" + $ref: "#/components/schemas/TestWorkflowRunningContext" parentExecutionIds: type: array description: parent execution ids @@ -8189,10 +8186,7 @@ components: tags: $ref: "#/components/schemas/TestWorkflowTagValue" runningContext: - type: array - description: running context for the test workflow execution - items: - $ref: "#/components/schemas/TestWorkflowRunningContext" + $ref: "#/components/schemas/TestWorkflowRunningContext" required: - id - name @@ -8228,10 +8222,7 @@ components: tags: $ref: "#/components/schemas/TestWorkflowTagValue" runningContext: - type: array - description: running context for the test workflow execution - items: - $ref: "#/components/schemas/TestWorkflowRunningContext" + $ref: "#/components/schemas/TestWorkflowRunningContext" required: - id - name diff --git a/pkg/api/v1/testkube/model_test_workflow_execution.go b/pkg/api/v1/testkube/model_test_workflow_execution.go index 32a3e51da0..b5d00ff3a9 100644 --- a/pkg/api/v1/testkube/model_test_workflow_execution.go +++ b/pkg/api/v1/testkube/model_test_workflow_execution.go @@ -38,8 +38,7 @@ type TestWorkflowExecution struct { // test workflow execution name started the test workflow execution TestWorkflowExecutionName string `json:"testWorkflowExecutionName,omitempty"` // whether webhooks on the execution of this test workflow are disabled - DisableWebhooks bool `json:"disableWebhooks,omitempty"` - Tags map[string]string `json:"tags,omitempty"` - // running context for the test workflow execution - RunningContext []TestWorkflowRunningContext `json:"runningContext,omitempty"` + DisableWebhooks bool `json:"disableWebhooks,omitempty"` + Tags map[string]string `json:"tags,omitempty"` + RunningContext *TestWorkflowRunningContext `json:"runningContext,omitempty"` } diff --git a/pkg/api/v1/testkube/model_test_workflow_execution_request.go b/pkg/api/v1/testkube/model_test_workflow_execution_request.go index ff5eefd0c7..53d575edb5 100644 --- a/pkg/api/v1/testkube/model_test_workflow_execution_request.go +++ b/pkg/api/v1/testkube/model_test_workflow_execution_request.go @@ -16,10 +16,9 @@ type TestWorkflowExecutionRequest struct { // test workflow execution name started the test workflow execution TestWorkflowExecutionName string `json:"testWorkflowExecutionName,omitempty"` // whether webhooks on the execution of this test workflow are disabled - DisableWebhooks bool `json:"disableWebhooks,omitempty"` - Tags map[string]string `json:"tags,omitempty"` - // running context for the test workflow execution - RunningContext []TestWorkflowRunningContext `json:"runningContext,omitempty"` + DisableWebhooks bool `json:"disableWebhooks,omitempty"` + Tags map[string]string `json:"tags,omitempty"` + RunningContext *TestWorkflowRunningContext `json:"runningContext,omitempty"` // parent execution ids ParentExecutionIds []string `json:"parentExecutionIds,omitempty"` } diff --git a/pkg/api/v1/testkube/model_test_workflow_execution_summary.go b/pkg/api/v1/testkube/model_test_workflow_execution_summary.go index 1c9cd8325a..92f9868167 100644 --- a/pkg/api/v1/testkube/model_test_workflow_execution_summary.go +++ b/pkg/api/v1/testkube/model_test_workflow_execution_summary.go @@ -23,10 +23,9 @@ type TestWorkflowExecutionSummary struct { // when the execution has been scheduled to run ScheduledAt time.Time `json:"scheduledAt,omitempty"` // when the execution result's status has changed last time (queued, passed, failed) - StatusAt time.Time `json:"statusAt,omitempty"` - Result *TestWorkflowResultSummary `json:"result,omitempty"` - Workflow *TestWorkflowSummary `json:"workflow"` - Tags map[string]string `json:"tags,omitempty"` - // running context for the test workflow execution - RunningContext []TestWorkflowRunningContext `json:"runningContext,omitempty"` + StatusAt time.Time `json:"statusAt,omitempty"` + Result *TestWorkflowResultSummary `json:"result,omitempty"` + Workflow *TestWorkflowSummary `json:"workflow"` + Tags map[string]string `json:"tags,omitempty"` + RunningContext *TestWorkflowRunningContext `json:"runningContext,omitempty"` }