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

MITLibraries / archival-packaging-tool / 14974771145
88%
main: 96%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/boto3-1.40.62
DEFAULT BRANCH: main
Ran 12 May 2025 02:23PM UTC
Jobs 1
Files 4
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

08 May 2025 06:14PM UTC coverage: 88.288% (+16.3%) from 71.978%
14974771145

Pull #21

github

ghukill
Scaffold HTTP based lambda and SAM testing

Why these changes are being introduced:

The APT Lambda will primarily be invoked via an HTTP request payload,
e.g. from an ALB, Function URL, or API Gateway.  As such, it needs
some handling for parsing the request payload (event) and returning
a response that will be translated into an HTTP response.

How this addresses that need:

Similar to other lambda projects, a couple of helper methods are
add generate_result_response() and generate_error_response() that
are used to return the lambda response.

Additionally, AWS SAM infrastructure has been added to allow
for testing the lambda locally by sending HTTP requests as if
the deployed lambda were receiving events from an HTTP invocation.

At this time, only a single action 'ping' is supported by the
lambda.

Side effects of this change:
* Lambda can parse HTTP invocations and return valid HTTP
responses

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-1215
Pull Request #21: IN 1215 - Scaffold HTTP based lambda and SAM testing

43 of 43 new or added lines in 1 file covered. (100.0%)

196 of 222 relevant lines covered (88.29%)

0.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14974771145.1 12 May 2025 02:22PM UTC 4
88.29
GitHub Action Run
Source Files on build 14974771145
  • Tree
  • List 4
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14974771145
  • Pull Request #21
  • PR Base - main (#14891950757)
  • Delete
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