release-engineering / ubi-population-tool

A tool for populating UBI repositories.
GNU General Public License v3.0
3 stars 14 forks source link

Sanitize provided ARL templates #218

Closed rbikar closed 1 year ago

rbikar commented 1 year ago

ARL templates are extracted from environment variable which can in practice easily include some trailing whitespace characters. Unstripped ARLs with trailing whitechars are not accepted by the FastPurge API resulting in 4xx errors.

codecov[bot] commented 1 year ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (02a744f) 96.89% compared to head (4d0af5b) 96.89%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #218 +/- ## ======================================= Coverage 96.89% 96.89% ======================================= Files 8 8 Lines 997 997 ======================================= Hits 966 966 Misses 31 31 ``` | [Files](https://app.codecov.io/gh/release-engineering/ubi-population-tool/pull/218?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=release-engineering) | Coverage Δ | | |---|---|---| | [ubipop/\_cdn.py](https://app.codecov.io/gh/release-engineering/ubi-population-tool/pull/218?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=release-engineering#diff-dWJpcG9wL19jZG4ucHk=) | `98.74% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rbikar commented 1 year ago

ok to test