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

roundup-tracker / roundup / 12219456224
74%

Build:
DEFAULT BRANCH: master
Ran 08 Dec 2024 06:26AM UTC
Jobs 1
Files 117
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 Dec 2024 06:09AM UTC coverage: 73.543% (-0.02%) from 73.564%
12219456224

push

github

rouilj
refactor: issue2551289. invalid REST Accept header stops request

Sending a POST, PUT (maybe PATCH) with an accept header that is not
application/json or xml (if enabled) used to complete the request
before throwing a 406 error. This was wrong.

Now it reports an error without dispatching/processing the requested
transaction.  This is the first of a series of refactors of the
dispatch method to make it faster and more readable by using return
early pattern and extracting methods from the code.

changes:

 The following now return 406 errors not 400 errors
   invalid version specified with @apiver in URL.
   invalid version specified with @apiver in payload body
   invalid version specified in accept headers as
     application/vnd.roundup.test-vz+json or version property

 Parsing the accept header returns a 400 when presented with a
   parameter without an = sign or other parse error. They used to
   return a 406 which is wrong since the header is malformed rather
   than having a value I can't respond to.

 Some error messages were made clearer.

 Results in the case of an error are proper json error object rather
   than text/plain strings.

 New test added for testdetermine_output_formatBadAccept that test the
   new method using the same test cases as for
   testDispatchBadAccept. I intend to extend the test coverage for
   determine_output_format to cover more cases. This should be a faster
   unit test than for dispatch.

 Removed .lower() calls for accept_mime_type as the input values are
   taken from the values in the __accepted_content_type dict which
   only has lower case values.

40 of 41 new or added lines in 1 file covered. (97.56%)

362 existing lines in 3 files now uncovered.

18352 of 24954 relevant lines covered (73.54%)

3.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12219456224.1 08 Dec 2024 06:26AM UTC 0
73.54
GitHub Action Run
Source Files on build 12219456224
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12219456224
  • 4dd59a37 on github
  • Prev Build on master (#12107605757)
  • Next Build on master (#12225766739)
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