-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
#748 Match Route configurations for upstream paths when empty Catch-All placeholders at the end of template #1911
Conversation
@raman-m I believe the PR is ready for review please give me your thoughts about this, and if there is anything I need to improve |
test/Ocelot.UnitTests/Configuration/UpstreamTemplatePatternCreatorTests.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make it better.
src/Ocelot/DownstreamRouteFinder/UrlMatcher/UrlPathPlaceholderNameAndValueFinder.cs
Outdated
Show resolved
Hide resolved
src/Ocelot/DownstreamRouteFinder/UrlMatcher/UrlPathPlaceholderNameAndValueFinder.cs
Outdated
Show resolved
Hide resolved
src/Ocelot/DownstreamRouteFinder/UrlMatcher/UrlPathPlaceholderNameAndValueFinder.cs
Outdated
Show resolved
Hide resolved
test/Ocelot.UnitTests/Configuration/UpstreamTemplatePatternCreatorTests.cs
Show resolved
Hide resolved
src/Ocelot/Configuration/Creator/UpstreamTemplatePatternCreator.cs
Outdated
Show resolved
Hide resolved
@raman-m I addressed most of your concerns, and Looking forward to your new comments |
Thanks for working on code review issues! FYI I've added this PR to Jan'24 milestone... |
It's mostly ready, but not quite... See below 👇 commit 1365f50 |
@AlyHKafoury I've added new these Routing tests and they failed. I'm going to debug today... It will be nice if you help me too!.. |
@raman-m Please leave the debugging to me thanks for adding the failings tests and add more failing tests if they are needed and I can debug them to insure I understand all ocelot functionality |
Thank you! |
What's the news, Aly? |
@raman-m fixing the test cases now will submit commit today |
@raman-m I added fixes for the unit tests, please review the added commits |
@@ -1171,7 +1171,7 @@ private void GivenThereIsAServiceRunningOn(string baseUrl, string basePath, Http | |||
{ | |||
_serviceHandler.GivenThereIsAServiceRunningOn(baseUrl, basePath, async context => | |||
{ | |||
_downstreamPath = !string.IsNullOrEmpty(context.Request.PathBase.Value) ? context.Request.PathBase.Value : context.Request.Path.Value; | |||
_downstreamPath = !string.IsNullOrEmpty(context.Request.PathBase.Value) ? context.Request.PathBase.Value + context.Request.Path.Value : context.Request.Path.Value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot get it! Was it a real issue?
Seems this change is not needed...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready for delivery! ✔️
Thanks, Aly!
Good job! 💪
Fixes #748