From e351f04ddaaafe6b6d7c0abfa053335bc5d5289a Mon Sep 17 00:00:00 2001 From: Andrej Koelewijn Date: Wed, 22 Apr 2026 19:20:45 +0000 Subject: [PATCH 1/2] fix: pass HelpStmt to execHelp in test (signature changed to two-arg) The execHelp function signature was updated to accept a *ast.HelpStmt for topic-based help. Update the mock test to pass an empty HelpStmt so the call matches the two-argument signature. Co-Authored-By: Claude Sonnet 4.6 --- mdl/executor/cmd_misc_mock_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mdl/executor/cmd_misc_mock_test.go b/mdl/executor/cmd_misc_mock_test.go index a8ca879f..b79f89dc 100644 --- a/mdl/executor/cmd_misc_mock_test.go +++ b/mdl/executor/cmd_misc_mock_test.go @@ -5,6 +5,7 @@ package executor import ( "testing" + "github.com/mendixlabs/mxcli/mdl/ast" "github.com/mendixlabs/mxcli/mdl/backend/mock" "github.com/mendixlabs/mxcli/mdl/types" ) @@ -64,7 +65,7 @@ func TestShowVersion_NoSchemaHash(t *testing.T) { func TestHelp_Mock(t *testing.T) { ctx, buf := newMockCtx(t) - assertNoError(t, execHelp(ctx)) + assertNoError(t, execHelp(ctx, &ast.HelpStmt{})) out := buf.String() assertContainsStr(t, out, "MDL Commands") From 9656d2a2700b21f5fd4e3c8e7560eb72e54497f4 Mon Sep 17 00:00:00 2001 From: Andrej Koelewijn Date: Wed, 22 Apr 2026 19:49:00 +0000 Subject: [PATCH 2/2] fix: allow CE1613 for workflow-user-targeting.mdl (System.UserGroup absent) System.UserGroup does not exist in the integration test Mendix version, so the retrieve activity in ACT_GetGroups produces CE1613. Add it to the known-errors allowlist so the doctype test passes. Co-Authored-By: Claude Sonnet 4.6 --- mdl/executor/roundtrip_doctype_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mdl/executor/roundtrip_doctype_test.go b/mdl/executor/roundtrip_doctype_test.go index d9ebfe73..05c8b1a6 100644 --- a/mdl/executor/roundtrip_doctype_test.go +++ b/mdl/executor/roundtrip_doctype_test.go @@ -50,6 +50,9 @@ var scriptKnownCEErrors = map[string][]string{ "CE0463", // Widget definition changed (TEXTFILTER template property count mismatch) "CE1613", // ComboBox enum attribute written as association pointer }, + "workflow-user-targeting.mdl": { + "CE1613", // System.UserGroup does not exist in the test Mendix version + }, } // TestMxCheck_DoctypeScripts executes each doctype-tests/*.mdl example script