-
Notifications
You must be signed in to change notification settings - Fork 683
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
Added platform-name wildcard support #5302
Added platform-name wildcard support #5302
Conversation
added unit test for platform-name wildcard added doc for release wildcard added doc for platform-name wildcard Signed-off-by: superyarick <yarick@yarick.net>
Deploy preview for chef-inspec ready! Built with commit e83c0b3 |
Hello yarick! Thanks for the pull request! Here is what will happen next:
Thank you for contributing! |
Given this was a clean fork of inspec as of today - now sure why we are getting the ruby-2.4 issues |
@aaronlippold I'm wondering if there was a bump of the parallel gem which killed 2.4. I'll raise some issues around this
|
@Schwad so can we still move ahead with peer review on the code and docs while that parallel issue is being resolved with the backend team? |
Yes, peer review may continue whilst this is being resolved. |
@yarick @aaronlippold we have merged the parallel fix so you can rebase and this should pass now 💯 |
Cool, guess I am teaching rebasing today :) hold my bear...
--------
Aaron Lippold
lippold@gmail.com
260-255-4779
twitter/aim/yahoo,etc.
'aaronlippold'
…On Wed, Nov 11, 2020 at 4:07 AM Nick Schwaderer ***@***.***> wrote:
@yarick <https://github.com/yarick> @aaronlippold
<https://github.com/aaronlippold> we have merged the parallel fix so you
can rebase and this should pass now 💯
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5302 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALK42GILOWUBNFUKEPZARTSPJH5BANCNFSM4TORT7IQ>
.
|
…dcart_support_platform_name
new updates from maser merged in. |
Although this works - we do have a small bit of unexpected or at least unclear behavior - which we documented as a side step - but the situation I would like to clean up as a follow on would be. The case statement could be made to support more logical filtering in its organization. As you can see from the note, if we do something like:
we pass fast on the case statement just be happy it got As documented in this PR - if you want to filter on a specific sub-family by name you need to just use:
I think however the real user community would expect a behavior more along the lines of:
or, even a bit more detail, given that both 2016 and 2019 have a family of releases in the 10.0.1* range
|
The use case here is that I want a wrapper profile that I run via a lambda or ssm function that just has all my os baselines for windows and or linux and just runs the right one for the right platform ... |
@Schwad what's up with buildkit? |
Hi all, are we good to go on merging this? Thanks. |
@yarick Hello! Thank you for updating the documentation with your code. Please incorporate my suggested documentation edits, and then you will good to go from a docs perspective. Thank you in advance and let me know if you have any questions. |
Signed-off-by: superyarick <yarick@yarick.net>
…rt_platform_name Signed-off-by: superyarick <yarick@yarick.net>
…m/yarick/inspec into yt/wildcart_support_platform_name
@mjingle - I believe I have addressed all your comments. Let me know if there is anything else. |
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.
@yarick Your docs update looks great! Thank you so much. You are good to go from a docs perspective. 👍
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 so much!
@aaronlippold @yarick thanks much for this! Merging now. In future please squash your PRs into one commit (unless there's a good reason from a documentation standpoint not to) |
Added platform-name wildcard support
Added unit test for platform-name wildcard
Added doc for release wildcard
Added doc for platform-name wildcard
Signed-off-by: superyarick yarick@yarick.net
Description
Added a function to convert wildcartds in platform-name to match against regex - borrowed from existing code for matching 'release's
Note
The current case statement that evaluates the
supports
statements does not allow for usage of bothplatform, release and platform-name
in conjunction as it is a fast failing case statement. I will open a follow-on issue with respect to this.https://github.com/inspec/inspec/blob/master/lib/inspec/resources/platform.rb#L76-L88
Related Issue
Did not open an issue. Just submitted small fix.
Types of changes
Checklist: