From d1b8873da8d8652b8c6a92591eec1f9a711cb156 Mon Sep 17 00:00:00 2001 From: michael kubiaczyk Date: Mon, 2 Jun 2025 14:21:19 +0200 Subject: [PATCH 1/3] add missing reason for failure --- pkg/process/runner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/process/runner.go b/pkg/process/runner.go index a0d44be..7083418 100644 --- a/pkg/process/runner.go +++ b/pkg/process/runner.go @@ -436,6 +436,7 @@ func Run(cx1client *Cx1ClientGo.Cx1Client, logger *types.ThreadLogger, CRUD, tes return result } else { result.Result = TST_FAIL + result.Reason = []string{"action failed but should have succeeded"} return result } } else { From 97e378abfacde7320c95b2a55aceee8686601ea1 Mon Sep 17 00:00:00 2001 From: michael kubiaczyk Date: Mon, 2 Jun 2025 14:27:19 +0200 Subject: [PATCH 2/3] add error message to failure reason --- pkg/process/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/process/runner.go b/pkg/process/runner.go index 7083418..2eeba01 100644 --- a/pkg/process/runner.go +++ b/pkg/process/runner.go @@ -436,7 +436,7 @@ func Run(cx1client *Cx1ClientGo.Cx1Client, logger *types.ThreadLogger, CRUD, tes return result } else { result.Result = TST_FAIL - result.Reason = []string{"action failed but should have succeeded"} + result.Reason = []string{"action should have succeeded but failed with error: " + err.Error()} return result } } else { From 3132b7191f4ffb2ea7f911343f761ffedf4b9110 Mon Sep 17 00:00:00 2001 From: michael kubiaczyk Date: Mon, 2 Jun 2025 14:28:09 +0200 Subject: [PATCH 3/3] corrected fix --- pkg/process/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/process/runner.go b/pkg/process/runner.go index 2eeba01..4187465 100644 --- a/pkg/process/runner.go +++ b/pkg/process/runner.go @@ -436,7 +436,7 @@ func Run(cx1client *Cx1ClientGo.Cx1Client, logger *types.ThreadLogger, CRUD, tes return result } else { result.Result = TST_FAIL - result.Reason = []string{"action should have succeeded but failed with error: " + err.Error()} + result.Reason = []string{err.Error()} return result } } else {