Page MenuHomePhabricator

Add regtests for HTTP status codes.
ClosedPublic

Authored by PiRK on Oct 5 2020, 07:11.

Details

Reviewers
Fabien
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABC4c94f3fa8c91: Add regtests for HTTP status codes.
Summary

PR description:

This adds explicit tests for the returned HTTP status codes to
interface_rpc.py (for error cases) and the HTTP JSON-RPC client in
general for success.

PR15381 brought up discussion about the HTTP status codes in general,
and the general opinion was that the current choice may not be ideal
but should not be changed to preserve compatibility with existing
JSON-RPC clients. Thus it makes sense to actually test the current
status to ensure this desired compatibility is not broken accidentally.

This is a backport of Core PR15495

Test Plan

ninja && test/functional/test_runner.py interface_rpc

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Oct 5 2020, 07:11
PiRK requested review of this revision.Oct 5 2020, 07:11

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Oct 5 2020, 13:32
This revision was automatically updated to reflect the committed changes.