From 581d8267f55b517f4b656f60d504fa45935babab Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Tue, 9 Jul 2024 20:03:12 +0300 Subject: [PATCH] feat: get full psth Signed-off-by: Vladislav Sukhin --- cmd/tcl/testworkflow-toolkit/commands/execute.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/tcl/testworkflow-toolkit/commands/execute.go b/cmd/tcl/testworkflow-toolkit/commands/execute.go index 03b71c29abc..a599d1ff118 100644 --- a/cmd/tcl/testworkflow-toolkit/commands/execute.go +++ b/cmd/tcl/testworkflow-toolkit/commands/execute.go @@ -149,6 +149,11 @@ func buildTestExecution(test testworkflowsv1.StepExecuteTest, async, disableWebh func buildWorkflowExecution(workflow testworkflowsv1.StepExecuteWorkflow, async bool) (func() error, error) { return func() (err error) { c := env.Testkube() + path := env.Config().Execution.ResourceId + if env.Config().Execution.ResourceId != env.Config().Execution.RootResourceId { + path = env.Config().Execution.RootResourceId + "/" + path + } + exec, err := c.ExecuteTestWorkflow(workflow.Name, testkube.TestWorkflowExecutionRequest{ Name: workflow.ExecutionName, Config: testworkflows.MapConfigValueKubeToAPI(workflow.Config), @@ -160,7 +165,7 @@ func buildWorkflowExecution(workflow testworkflowsv1.StepExecuteWorkflow, async CallerResourceType: common.Ptr(testkube.TESTWORKFLOW_TestWorkflowRunningContextCallerResourceType), CallerResourceName: env.WorkflowName(), CallerResourceExecutionID: env.ExecutionId(), - FullExecutionPath: env.ExecutionId(), + FullExecutionPath: path, }, }, },