Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TTL extraction [RHELDST-20510] #245

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

drepelov
Copy link
Contributor

Previously the TTL extraction was implemented in such way that it could potentially extract the wrong value, if the URL path contained a component that also matched the regex.
This commit changes the re.match() to re.search(), which ensures it will find the first occurrence of the match.

Previously the TTL extraction was implemented in such way that
it could potentially extract the wrong value, if the URL path contained
a component that also matched the regex.
This commit changes the re.match() to re.search(), which ensures it
will find the first occurrence of the match.
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (66753e4) 100.00% compared to head (3580fc5) 100.00%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #245   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           56        56           
  Lines         2974      2974           
=========================================
  Hits          2974      2974           
Files Coverage Δ
pubtools/_pulp/cdn.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rajulkumar rajulkumar merged commit 67d7b54 into release-engineering:master Oct 13, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants