Commit 35fc2de
Fold MCP chart validation into the standard render tests
MCP was the only chart area in the repository with a dedicated
ci/validate-*.sh. It had grown to 360 lines against a house harness of 78
that covered MCP not at all, and it ran from its own CI step, so MCP chart
rendering was checked by a mechanism nothing else in the repository used.
Most of what it asserted was not behaviour. Numeric ranges, URL shapes and
scope patterns are enforced by MCPAuthConfig at start-up, so re-proving
them at render time stated the same contract twice in two languages, and
each new bound needed editing in both.
Move the behavioural assertions into tests/render-tests.sh: that MCP
renders nothing when disabled, that the gateway publishes one /mcp prefix
route and rewrites it off, that the health carve-out answers 404 itself
rather than leaning on jwt_authn, that Redis is inherited from
services.redis, that derived values do not reappear as deployer inputs,
that the proxy scales out, and that extraEnv cannot redirect the relay.
The roles Lua filter assertions come along because they are its only
coverage anywhere in the repository.
Each new assertion was negative-tested by reintroducing the defect it
guards and confirming the harness fails.
The route extractor scopes a route by its own indentation rather than
ending at the first nested "- name:". Every route with a headers matcher
has one at line five, so the naive version returned only the match block
and the prefix_rewrite assertion for mcp-authorization-server-metadata
could never see the value it checks.
The proxy fixture moves to tests/ alongside the harness that uses it, and
ci/ is now empty.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 22415f1 commit 35fc2de
6 files changed
Lines changed: 87 additions & 278 deletions
File tree
- .github/workflows
- deployments/charts/service
- ci
- tests
- src/service/mcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 196 | | |
201 | 197 | | |
202 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
0 commit comments