You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing some customized rules with Compliance As Code. While we are provided with excellent testing possibilities ( container to test rules, regexify_banner.py, ... , I still find it very time consuming testing OVAL regex.
According to https://oval.mitre.org/language/about/re_support_5.6.html , the regex is based on Perl 5 regex. I would expect in this case I could test my OVAL regex with "grep -P"/ "grep --perl-regexp ". However the behaviour seems not the same to me and it gets even more challenging when trying to match patterns over a multiline.
Anyone has some tips about developing and testing this faster?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all,
I am writing some customized rules with Compliance As Code. While we are provided with excellent testing possibilities ( container to test rules, regexify_banner.py, ... , I still find it very time consuming testing OVAL regex.
According to https://oval.mitre.org/language/about/re_support_5.6.html , the regex is based on Perl 5 regex. I would expect in this case I could test my OVAL regex with "grep -P"/ "grep --perl-regexp ". However the behaviour seems not the same to me and it gets even more challenging when trying to match patterns over a multiline.
Anyone has some tips about developing and testing this faster?
Beta Was this translation helpful? Give feedback.
All reactions