meal-order-manager/tests
Adam Moussa d7ad49d00f
Some checks are pending
Deploy API / Resolve target (push) Waiting to run
Deploy API / Deploy API to (push) Blocked by required conditions
feat(api): add OpenAPI Redocly contract and VPC outputs (DEV-289) (#206)
* feat(infra): export attached VPC ids and lock prod to afterhours (DEV-289)

Prod must keep existing_vpc_id pointed at the afterhours VPC. Outputs
expose the resolved vpc_id and public subnet IDs.

Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>

* feat(api): add OpenAPI 3.1 and Redocly lint in CI (DEV-289)

Same extends: recommended ruleset and @redocly/cli 2.52.1 as
internal-portal. Documents current { error: string } JSON errors.

Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>

* fix(api): document 4xx and reject invalid form-status weeks (DEV-289)

Health, form-status, and roster document 400. form-status now maps
current and returns 400 for a week that is not current or YYYY-WNN.
Redocly treats 302 as a success response, matching the portal.

Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>

* style(test): format VPC contract assertions for ruff (DEV-289)

Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>

* fix(api): fail Redocly on missing 4xx and 2xx/3xx (DEV-289)

Promote operation-4xx-response and the 2xx-or-3xx success rule to error.
Replace unused health and roster 400s with 403, matching portal health.
Form-status keeps its real 400 for invalid week.

Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>

* fix(api): split week params and allow live menu nulls (DEV-289)

Menu and form-status take current or YYYY-WNN. Orders take YYYY-WNN or a
calendar date and reject current. Menu payloads may emit null menu_url,
calories, protein, and image_url.

Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>

* fix(infra): fail prod apply without the afterhours VPC (DEV-289)

Prod never creates the 10.60 fallback VPC. A terraform_data precondition
fails plan and apply when existing_vpc_id is empty, instead of a check
block that only warns.

Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>
2026-09-22 00:33:48 +00:00
..
fixtures fix(form): accessibility for qty, status, and descriptions (#81) 2026-07-31 10:15:43 -04:00
conftest.py feat(api): add flask sentry sdk (#205) 2026-09-21 23:48:09 +00:00
test_admin_authorizer.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_aggregate_orders.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_app.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_close_form.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_cognito.py fix(auth): accept federated portal Cognito tokens for meals admin (DEV-283) (#194) 2026-09-18 15:31:17 +00:00
test_flex_join.py feat(meals): dual-read week keys and meal-to-Flex join (PLAT-134) (#182) 2026-09-02 00:01:44 +00:00
test_generate_form.py fix(form): keep Google sign-in across page refresh (#204) 2026-09-21 22:50:07 +00:00
test_openapi_contract.py feat(api): add OpenAPI Redocly contract and VPC outputs (DEV-289) (#206) 2026-09-22 00:33:48 +00:00
test_pdf.py fix(pdf): fit weekly summaries on one page without a broken title (#138) 2026-08-15 00:17:27 +00:00
test_secrets.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_sentry_init.py feat(api): add flask sentry sdk (#205) 2026-09-21 23:48:09 +00:00
test_slack_notifier.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_submit_order.py feat(api): add OpenAPI Redocly contract and VPC outputs (DEV-289) (#206) 2026-09-22 00:33:48 +00:00
test_terraform_cognito_auth.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_terraform_email_report.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_terraform_iam.py fix(iam): omit checkcomponents from the ECS boundary in non-prod (#202) 2026-09-21 16:26:17 -04:00
test_terraform_menu_api.py feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199) 2026-09-21 19:34:24 +00:00
test_terraform_sentry.py feat(api): add flask sentry sdk (#205) 2026-09-21 23:48:09 +00:00
test_terraform_vpc.py feat(api): add OpenAPI Redocly contract and VPC outputs (DEV-289) (#206) 2026-09-22 00:33:48 +00:00
test_week_keys.py feat(meals): dual-read week keys and meal-to-Flex join (PLAT-134) (#182) 2026-09-02 00:01:44 +00:00
test_worker.py feat(api): add flask sentry sdk (#205) 2026-09-21 23:48:09 +00:00