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

ICRAR / ngas / 489 / 5
69%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Ran 12 Jan 2021 04:22AM UTC
Files 163
Run time 5s
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

12 Jan 2021 04:22AM UTC coverage: 68.739%. First build
489.5

push

travis-ci-com

Rodrigo Tobar
Return 411 when on invalid/missing Content-Length

As stated in NGAS-163, NGAS should respond with 411 rather than 400 when
requests with no Content-Length (or Content-Length=0) arrive, as the
codebase currently expects a Content-Length to be given.

To keep things consistent, instead of sending the response back directly
where the problem is identified, we instead simply raise a typed error,
which we then handle more centrally with the rest of the known errors.

The unit test checking that zero-length files cannot be archived has
been updated to double-check the HTTP status from the failing request.
Adding this check also made part of test_QArchive obsolete and
duplicate (it does exactly the same that test_FileSizeZero does), so I
removed the duplicate.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

13481 of 19612 relevant lines covered (68.74%)

0.69 hits per line

Source Files on job 489.5
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 424
  • Travis Job 489.5
  • e4c01977 on github
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