Page MenuHomeSoftware Heritage

tests: Handle optional author in Release model
ClosedPublic

Authored by anlambert on Apr 8 2021, 11:31 AM.

Details

Summary

The author field can be optional in the Release model so handle
that edge case in kafka writer tests.

See https://jenkins.softwareheritage.org/job/DENV/job/tests/901/artifact/swh-journal.log

Diff Detail

Repository
rDJNL Journal infrastructure
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 D5449 (id=19479)

Rebasing onto 056c210953...

Current branch diff-target is up to date.
Changes applied before test
commit fe820a2220c32d4a39e7fd57a42241f217ffef2a
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Thu Apr 8 11:28:26 2021 +0200

    tests: Handle optional author in Release model
    
    The author field can be optional in the Release model so handle
    that edge case in kafka writer tests.

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

ardumont added a subscriber: ardumont.

Might as well add tests around those as well ;)

This revision is now accepted and ready to land.Apr 8 2021, 12:17 PM