Skip to content

Commit

Permalink
fix: [TKC-3010] Change Execution config model
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed Dec 17, 2024
1 parent 4d02d93 commit 01690ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8243,7 +8243,7 @@ components:
runningContext:
description: running context for the test workflow execution (Pro edition only)
$ref: "#/components/schemas/TestWorkflowRunningContext"
config:
configParams:
$ref: "#/components/schemas/TestWorkflowExecutionConfig"
required:
- id
Expand Down Expand Up @@ -8282,7 +8282,7 @@ components:
runningContext:
description: running context for the test workflow execution (Pro edition only)
$ref: "#/components/schemas/TestWorkflowRunningContext"
config:
configParams:
$ref: "#/components/schemas/TestWorkflowExecutionConfig"
required:
- id
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1/testkube/model_test_workflow_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ type TestWorkflowExecution struct {
DisableWebhooks bool `json:"disableWebhooks,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
RunningContext *TestWorkflowRunningContext `json:"runningContext,omitempty"`
Config map[string]TestWorkflowExecutionConfigValue `json:"config,omitempty"`
ConfigParams map[string]TestWorkflowExecutionConfigValue `json:"configParams,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ type TestWorkflowExecutionSummary struct {
Workflow *TestWorkflowSummary `json:"workflow"`
Tags map[string]string `json:"tags,omitempty"`
RunningContext *TestWorkflowRunningContext `json:"runningContext,omitempty"`
Config map[string]TestWorkflowExecutionConfigValue `json:"config,omitempty"`
ConfigParams map[string]TestWorkflowExecutionConfigValue `json:"configParams,omitempty"`
}
2 changes: 1 addition & 1 deletion pkg/testworkflows/testworkflowexecutor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func (e *executor) initialize(ctx context.Context, workflow *testworkflowsv1.Tes
}

if storeConfig {
execution.Config = config
execution.ConfigParams = config
}
}

Expand Down

0 comments on commit 01690ba

Please sign in to comment.