Page MenuHomeSoftware Heritage

test_deposits: Fix origin_metadata_get which is a paginated endpoint
ClosedPublic

Authored by ardumont on Jun 10 2020, 1:00 PM.

Details

Summary

This fixes ci build following the new swh.storage release 0.2.0 [1]

[1] https://jenkins.softwareheritage.org/job/DLDBASE/job/tests/862/console

Test Plan

tox

Diff Detail

Repository
rDLDBASE Generic VCS/Package Loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D3254 (id=11539)

Rebasing onto c28799f674...

Current branch diff-target is up to date.
Changes applied before test
commit 810073dd947181aa69d9f75922492bbf3cf86e88
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Jun 10 13:00:05 2020 +0200

    test_deposits: Fix origin_metadata_get which is a paginated endpoint

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

You should also check origin_meta["next_page_token"] is None

This revision is now accepted and ready to land.Jun 10 2020, 1:03 PM

Adapt according to review (assert next page token is None as no other result is expected)

Build is green

Patch application report for D3254 (id=11541)

Rebasing onto c28799f674...

Current branch diff-target is up to date.
Changes applied before test
commit 39e050b76317ac8ef4868d2715b4e2a0a13a51c7
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Jun 10 13:00:05 2020 +0200

    test_deposits: Fix origin_metadata_get which is a paginated endpoint
    
    Following a new storage 0.2.0 version.

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