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

Fixed validation for VSR exact & regex subroutes (#4744) #5079

Merged
merged 1 commit into from Feb 13, 2024

Conversation

pdabelf5
Copy link
Collaborator

Since a VSR may only contain a single subroute when using exact or regex matching skipping route validation here is incorrect.

Correctly configured VSRs for regex or exact will be validated (and terminate) earlier in function, ie. where VS path is regex + only 1 subroute + subroute syntax check passes.

* Fixed validation for VSR exact & regex subroutes

Since a VSR may only contain a single subroute when using exact or
regex matching skipping route validation here is incorrect.

Correctly configured VSRs for regex or exact will be validated
(and terminate) earlier in function, ie. where VS path is regex +
only 1 subroute + subroute syntax check passes.

* Added Unit Tests

* Fix validation

Signed-off-by: Haywood Shannon <5781935+haywoodsh@users.noreply.github.com>

* Add unit tests and update docs

Signed-off-by: Haywood Shannon <5781935+haywoodsh@users.noreply.github.com>

* Adjusted Unit test messages.

---------

Signed-off-by: Haywood Shannon <5781935+haywoodsh@users.noreply.github.com>
Co-authored-by: Haywood Shannon <5781935+haywoodsh@users.noreply.github.com>
Co-authored-by: Venktesh Shivam Patel <ve.patel@f5.com>
@pdabelf5 pdabelf5 requested review from a team as code owners February 13, 2024 10:33
@github-actions github-actions bot added the documentation Pull requests/issues for documentation label Feb 13, 2024
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8acba14) 52.10% compared to head (e166460) 52.14%.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-3.4    #5079      +/-   ##
===============================================
+ Coverage        52.10%   52.14%   +0.03%     
===============================================
  Files               60       60              
  Lines            17368    17368              
===============================================
+ Hits              9050     9056       +6     
+ Misses            8002     7996       -6     
  Partials           316      316              

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

@pdabelf5 pdabelf5 merged commit 997981f into release-3.4 Feb 13, 2024
69 checks passed
@pdabelf5 pdabelf5 deleted the regex-subroutes-cherry-pick branch February 13, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Pull requests/issues for documentation
Projects
Status: Done 🚀
Development

Successfully merging this pull request may close these issues.

None yet

4 participants