Files
floci/compatibility-tests/sdk-test-java/src/test/java
TiM 58c0ebbabd test(apigatewayv2): management API compat suite with deploymentId fix (#371)
* fix(apigatewayv2): propagate deploymentId when creating a stage

ApiGatewayV2Service.createStage was dropping the deploymentId field
from the CreateStage request, so stages were being created without
their stage->deployment linkage. The management API handler now
stores deploymentId on the Stage model.

Required for stage->deployment round-trip verification; surfaced by
the upcoming ApiGatewayV2ManagementTest which asserts GetStage
returns the deploymentId that CreateStage was called with.

* test(apigatewayv2): add management API compat suite

New ApiGatewayV2ManagementTest covering the control-plane CRUD
surface: API, route, integration, stage, deployment, authorizer
create/get/list/delete round-trips via ApiGatewayV2Client.

Scope:
- create/get/list/delete for each resource
- JWT authorizer shape (token path only)
- stage->deployment linkage (depends on the createStage
  deploymentId fix in the preceding commit)
- round-trips that assert response field shapes match the SDK model

Out of scope (intentional, per PLAN_FLOCI_2 Phase 2):
- No update endpoints - @PATCH/@PUT handlers do not exist in the
  v2 management block (ApiGatewayController.java:783-1020)
- No execute-api / dispatch / Lambda invocation - that is Phase 7
- No REQUEST authorizer coverage - no dispatch path exists today

* fix(test): assert deploymentId in getStages list response

Codex review flagged that the list endpoint assertion only checked
stageName but not deploymentId. Added filtered assertion to verify the
deployment reference survives the list round-trip.

* fix(test): use deploymentStatusAsString() for enum comparison

SDK returns DeploymentStatus enum, not a String. Using
deploymentStatusAsString() avoids type mismatch assertion failure.
2026-04-12 20:01:27 -05:00
..