-
Notifications
You must be signed in to change notification settings - Fork 507
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
Support for spaces in policy reference_id #833
Support for spaces in policy reference_id #833
Conversation
nasir-rabbani
commented
Jun 3, 2021
- Updated regex to skip rules with spaces in reference_id.
- Added test cases for reference_id with spaces
Codecov Report
@@ Coverage Diff @@
## master #833 +/- ##
==========================================
- Coverage 78.22% 78.20% -0.03%
==========================================
Files 162 164 +2
Lines 4354 4359 +5
==========================================
+ Hits 3406 3409 +3
- Misses 734 735 +1
- Partials 214 215 +1
|
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'd be great if you could also add some e2e tests for this. since this is a functional change/enhancement.
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.
Hi @nasir-rabbani, I think we can now add test in the policies package and verify that all the reference id's / id's pass the regex.
b4a587f
to
5309fe0
Compare
5309fe0
to
daacad6
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
we can push this PR for now, but when we add tests for policies, we would need to ensure that spaces are not allowed in the rule ID
/ reference ID
.