Skip to content

Commit 528f7da

Browse files
akoclaude
andcommitted
chore: rename REST client examples to run as integration tests
Remove .test. from filename so it runs as part of the integration test suite. Update references in proposal doc. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5d94aa5 commit 528f7da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/11-proposals/show-describe-consumed-rest-services.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**Document type:** `Rest$ConsumedRestService`
66
**Prevalence:** 2 in Evora project (not found in Enquiries or Lato)
77
**Priority:** Medium — newer Mendix feature (10.1.0+), growing in adoption
8-
**Reference:** `mdl-examples/doctype-tests/06-rest-client-examples.test.mdl` (21 examples)
8+
**Reference:** `mdl-examples/doctype-tests/06-rest-client-examples.mdl` (21 examples)
99

1010
Consumed REST Services define external REST API connections. Each service has a base URL, authentication scheme, and one or more operations with HTTP methods, paths, headers, parameters, and response handling.
1111

@@ -92,7 +92,7 @@ Rest$RestOperation
9292

9393
1. **Roundtrip**: DESCRIBE output must be valid CREATE input
9494
2. **Consistency**: Follow existing CREATE REST CLIENT grammar structure (BEGIN...END blocks)
95-
3. **Alignment**: Match the syntax in `06-rest-client-examples.test.mdl`
95+
3. **Alignment**: Match the syntax in `06-rest-client-examples.mdl`
9696
4. **Simplicity**: Use MDL-native types ($variables, data types) rather than exposing BSON internals
9797

9898
### SHOW REST CLIENTS
@@ -537,15 +537,15 @@ func (e *Executor) dropRestClient(s *ast.DropRestClientStmt) error
537537

538538
### Phase 3: Test Enablement
539539

540-
Remove the `exit;` guard from `06-rest-client-examples.test.mdl` (line 34) and verify all 21 examples parse and execute correctly.
540+
Remove the `exit;` guard from `06-rest-client-examples.mdl` (line 34) and verify all 21 examples parse and execute correctly.
541541

542542
## Complexity
543543

544544
**Medium-High** — Multiple polymorphic BSON types (method, body, response handling, authentication, parameter values), value templates with parameter interpolation, and header expression parsing. The OData implementation provides a proven template but REST has more polymorphic variance.
545545

546546
## Testing
547547

548-
- Parse all 21 examples in `06-rest-client-examples.test.mdl` with `mxcli check`
548+
- Parse all 21 examples in `06-rest-client-examples.mdl` with `mxcli check`
549549
- Roundtrip test: CREATE → DESCRIBE → re-parse must produce identical AST
550550
- Verify BSON output against Evora project's existing consumed REST services
551551
- **Important**: Before writing BSON, create a reference REST client in Studio Pro and compare the generated BSON structure field-by-field

mdl-examples/doctype-tests/06-rest-client-examples.test.mdl renamed to mdl-examples/doctype-tests/06-rest-client-examples.mdl

File renamed without changes.

0 commit comments

Comments
 (0)