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

zappa / Zappa / 19216921182
74%

Build:
DEFAULT BRANCH: master
Ran 10 Nov 2025 12:40AM UTC
Jobs 5
Files 12
Run time 1min
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.615% (+0.2%) from 72.374%
19216921182

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>

3060 of 4214 relevant lines covered (72.62%)

3.63 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
20
78.55
0.55% handler.py
244
66.46
-0.31% cli.py
268
79.85
0.52% core.py
Jobs
ID Job ID Ran Files Coverage
1 py3.9 - 19216921182.1 10 Nov 2025 12:42AM UTC 12
72.57
GitHub Action Run
2 py3.10 - 19216921182.2 10 Nov 2025 12:43AM UTC 12
72.57
GitHub Action Run
3 py3.11 - 19216921182.3 10 Nov 2025 12:42AM UTC 12
72.57
GitHub Action Run
4 py3.13 - 19216921182.4 10 Nov 2025 12:40AM UTC 12
72.59
GitHub Action Run
5 py3.12 - 19216921182.5 10 Nov 2025 12:41AM UTC 12
72.57
GitHub Action Run
Source Files on build 19216921182
  • Tree
  • List 12
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19216921182
  • 86bca47c on github
  • Prev Build on master (#19053506490)
  • Next Build on master (#19316474570)
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