From 54c44a058321fc1409d038e7e2e1ad4a5b8d50a8 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Jul 2026 18:31:50 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=85=20test(munit):=20cover=20all=20HT?= =?UTF-8?q?TP=20status=20codes=20simulated=20by=20the=20http-status=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add http-status-all-test-suite.xml exercising GET /api/http-status/{httpStatus} for every supported code: - all 19 codes (200..511) via a permissive 200..599 response validator, asserting returned statusCode and that the JSON body echoes the code - the 15 error codes again through the default response validator, asserting each raises a real Mule error with the expected statusCode Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01FHWtYyqVEVFwgk58e6eo77 --- src/test/munit/http-status-all-test-suite.xml | 154 ++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 src/test/munit/http-status-all-test-suite.xml diff --git a/src/test/munit/http-status-all-test-suite.xml b/src/test/munit/http-status-all-test-suite.xml new file mode 100644 index 0000000..0e11cde --- /dev/null +++ b/src/test/munit/http-status-all-test-suite.xml @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From f7ee455747950d4699582aea2f8dc3f56eb8277c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 20 Jul 2026 23:11:03 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refac(munit):=20split?= =?UTF-8?q?=20http-status-all=20suite=20into=20one=20test=20per=20status?= =?UTF-8?q?=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the two foreach-driven tests with 34 dedicated munit:test blocks (19 simulated via the permissive validator + 15 raising real Mule errors via the default validator), one per HTTP status code, so each is exercised and reported as its own independent test case. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01FHWtYyqVEVFwgk58e6eo77 --- src/test/munit/http-status-all-test-suite.xml | 1414 +++++++++++++++-- 1 file changed, 1293 insertions(+), 121 deletions(-) diff --git a/src/test/munit/http-status-all-test-suite.xml b/src/test/munit/http-status-all-test-suite.xml index 0e11cde..7879197 100644 --- a/src/test/munit/http-status-all-test-suite.xml +++ b/src/test/munit/http-status-all-test-suite.xml @@ -16,138 +16,1310 @@ + which matches the port of HTTP_Listener_config used by http-status-main. + One dedicated munit:test per status code, no foreach. --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + doc:name="GET /api/http-status/500" + path="/api/http-status/500" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +