• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zappa / Zappa / 19216921182 / 1
74%
master: 74%

Build:
DEFAULT BRANCH: master
Ran 10 Nov 2025 12:43AM UTC
Files 12
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2025 12:33AM UTC coverage: 72.568% (+0.2%) from 72.326%
19216921182.1

push

github

web-flow
:sparkles: API Gateway v2 (HTTP API) Configuration Support (#1391)

* :wrench: Move Policy files definitions to files:assume_policy.json, attach_policy.json
:wrench: Added constant: DEFAULT_APIGATEWAY_VERSION = "v1" in zappa/core.py:94

* 🐛 Fix API Gateway v2 double stage prefix bug in SCRIPT_NAME

  API Gateway v2's rawPath already includes the stage name (e.g., "/dev/path"),
  unlike v1 which excludes it. The existing logic incorrectly added the stage
  to SCRIPT_NAME for v2 events, causing Flask to build URLs with doubled prefixes
  (e.g., "/dev/dev/path" instead of "/dev/path").

  Changes:
  - Remove SCRIPT_NAME stage prefix logic for API Gateway v2 events
  - Keep stage prefix logic for v1 events (backward compatibility)
  - Add test cases demonstrating the bug and fix:
    - test_wsgi_script_name_on_v2_formatted_event_with_stage_in_path
    - test_wsgi_environ_shows_double_prefix_bug (debug test)
  - Add debug endpoint /dev/debug/wsgi/environ to inspect WSGI values
  - Update test_settings.json with proper apigateway_v2 configuration
  - Apply f-string formatting consistency in handler.py

* :wrench: fixes after testing actual app deployment for v1, v2 and function_urls.

* :white_check_mark: fix testcases

---------

Co-authored-by: shane <shane.cousins@kiconiaworks.com>

3058 of 4214 relevant lines covered (72.57%)

0.73 hits per line

Source Files on job py3.9 - 19216921182.1
  • Tree
  • List 12
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19216921182
  • 86bca47c on github
  • Prev Job for on master (#19053506490.5)
  • Next Job for on master (#19316474570.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc