Page MenuHomeSoftware Heritage

api: Refactor to simplify the post/get code to a minimum
AbandonedPublic

Authored by ardumont on Oct 23 2020, 12:25 PM.

Details

Reviewers
None
Group Reviewers
Reviewers
Test Plan

tox

Diff Detail

Event Timeline

Build is green

Patch application report for D4342 (id=15371)

Could not rebase; Attempt merge onto 0796ac6c6c...

Updating 0796ac6..59d3e6a
Fast-forward
 swh/core/api/__init__.py                     | 72 ++++++++++++++--------------
 swh/core/api/tests/test_rpc_client.py        | 23 +++++++--
 swh/core/api/tests/test_rpc_client_server.py | 13 +++++
 3 files changed, 70 insertions(+), 38 deletions(-)
Changes applied before test
commit 59d3e6a2e7273e8173fa77729d30b5f99b3d5ff5
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Oct 23 12:26:41 2020 +0200

    api: Refactor to simplify the post/get code to a minimum

commit 15fa5ffa4fd1d3267f50ea7846f64ccd0ab65d63
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Oct 23 12:06:46 2020 +0200

    rpc_client: Allow http method declaration consistently with the rpc server
    
    a7d1aa7 introduced that use for the server. Without doing this consistenly in
    the rpc client part, this won't work though.
    
    Related to a7d1aa7

See https://jenkins.softwareheritage.org/job/DCORE/job/tests-on-diff/117/ for more details.