pulp / pulp_container

Pulp Container Registry
https://docs.pulpproject.org/pulp_container/
GNU General Public License v2.0
23 stars 45 forks source link

[PR #1744/d5d149ec backport][2.21] Do not assert on a specific error message #1745

Closed patchback[bot] closed 3 months ago

patchback[bot] commented 3 months ago

This is a backport of PR #1744 as merged into main (d5d149ec8047132907a8c197692872caa8ccebc0).

Once an upstream library changes its behaviour, we may observe different error messages depending on the context.

This change fixes the following error:

assert "[Name or service not known]" in ctx.value.task.error["description"] E AssertionError: assert '[Name or service not known]' in 'Cannot connect to host i-am-an-invalid-url.com:80 ssl:default [None]'

[noissue]