-
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
Update iis_site bindingInformation construction and add tests #3492
Conversation
…c#3490) Signed-off-by: Matt Shanahan <mrshanahan11235@gmail.com>
hi, given that you document at least twice that you only support 2012+, would it be a good idea to add that as part of the |
@aaronlippold That makes sense! Let me take a look. |
We're moving away from doing platform support restrictions in initialize. This should all be handled by the supports dsl now. We could do something like:
Where |
I agree for the profile for iis. But for the initialization of the iis resource itself shouldn't we still have that fail fast? |
I'm happy to add the appropriate |
@mrshanahan , The windows specific names ones are a bit dynamic and end up being something like We use this command to find the windows release https://github.com/inspec/train/blob/master/lib/train/platforms/detect/helpers/os_windows.rb#L6 |
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! This is a great first contribution, and we really appreciate it. There is some concern about restricting the releases on which the resource will run, but your PR is independent of that concern; I've opened #3591 to track needing to tighten the platform support, and that clears the way to get this merged in.
Thanks!
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 @mrshanahan
Thank you! |
Signed-off-by: Matt Shanahan mrshanahan11235@gmail.com
I have not made any changes to the docs, since this brings the code in line with the documentation. Also added some unit tests to the iis_site resource.
Relevant resource docs: https://github.com/inspec/inspec/blob/master/docs/resources/iis_site.md.erb#L109-L139
Fixes #3490
EDIT (@clintoncwolfe): Move reference to issue from PR title to description to trigger close-on-merge.