Page MenuHomeSoftware Heritage

auth.pytest_plugin: Adjust error type according to reality
ClosedPublic

Authored by ardumont on Mar 23 2021, 10:49 AM.

Details

Summary

Prior to this commit, this raised a basic error message instead of a json dict bytes
encoded [1]

This commit fixes it.

The reality of tests trying to fix the deposit authentication handling which is awkward
for now.

Related to T2858
Related to D5302

[1] Related to P981

Test Plan

tox

Diff Detail

Repository
rDAUTH Common authentication libraries
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 D5304 (id=19002)

Rebasing onto e1bc4f10a3...

Current branch diff-target is up to date.
Changes applied before test
commit 45ec395cce8f9f0b586c95d1b1d95aac83277263
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Mar 23 10:44:43 2021 +0100

    auth.pytest_plugin: Adjust error type according to reality
    
    Prior to this commit, this raised a basic error message instead of a json dict bytes
    encoded.
    
    This commit fixes it.
    
    Related to T2858

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

This revision is now accepted and ready to land.Mar 23 2021, 11:12 AM