Page MenuHomeSoftware Heritage

postgresql: Fix regression introduced in previous commit
ClosedPublic

Authored by anlambert on Sep 21 2021, 12:28 PM.

Details

Summary

Methods snapshot_get and snapshot_get_branches should return
None if the snapshot does not exist in the archive.

Add missing tests to cover that case.

Spotted thanks to swh-environment Jenkins job.

Diff Detail

Repository
rDSTO Storage manager
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 D6315 (id=22932)

Rebasing onto 9465054ef0...

Current branch diff-target is up to date.
Changes applied before test
commit 59e63db65c51e77c20dc97cc12af86e89fa22ab8
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Sep 21 12:25:25 2021 +0200

    postgresql: Fix regression introduced in previous commit
    
    Methods snapshot_get and snapshot_get_branches should return
    None if the snapshot does not exist in the archive.
    
    Add missing tests to cover that case.

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

This revision is now accepted and ready to land.Sep 21 2021, 1:11 PM