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 sampler match not using full regex match, endpoint = parsing, and updated test cases #34

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

jj22ee
Copy link
Contributor

@jj22ee jj22ee commented Aug 26, 2024

Issue #, if available:
Saw scenario where ['/', 'target'] pair is a match, but shouldn't be. This is because full regex match isn't being used.
Saw scenario where everything after the second = was missing in the sampler endpoint parsing logic.

Description of changes:

  • Use full regex match in matching logic
  • Enhance split = logic
  • Added more related test cases

Tested:

  • Unit tests
  • EKS sample app test

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jj22ee jj22ee requested a review from majanjua-amzn August 26, 2024 16:35
@jj22ee jj22ee requested a review from a team as a code owner August 26, 2024 16:35
@jj22ee jj22ee merged commit 848a113 into main Aug 26, 2024
6 checks passed
@jj22ee jj22ee deleted the fix-sampler-match branch August 26, 2024 17:15
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