-
Notifications
You must be signed in to change notification settings - Fork 82
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
pkg/test: allow complex "assert" and "errors" step file names #258
pkg/test: allow complex "assert" and "errors" step file names #258
Conversation
8e3992c
to
49b8388
Compare
nice! thank you sir! I like it. I will review in more detail shortly... but a quick pass looks good! |
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.
/lgtm
❤️ it! thanks @estroz
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.
I am a bit lost here (not your fault, that's the state of the code as it was before you started working on it).
I feel like right now the file parsing logic is two places, but it's parsing the same files, right? The regexes are kind of similar but not equal 🤔 what am I missing here? Can we maybe make some cleanup in there since we're doing changes in that area already?
escapes and non-capturing groups, and permitted assert- and error- type steps to have complex names, ex. "00-assert-test-pod.yaml" Signed-off-by: Eric Stroczynski <estroczy@redhat.com>
49b8388
to
2441399
Compare
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.
/lgtm
looking to see if @alenkacz is good... thanks Eric! |
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.
Thanks
What this PR does / why we need it:
This PR improves file name matching regexps by adding meta char escapes and non-capturing groups, and permitts assert- and error-type steps to have complex names, ex. "00-assert-test-pod.yaml"
Signed-off-by: Eric Stroczynski estroczy@redhat.com