-
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
Adds user_permissions property and be_inherited matcher to the file resource for Windows. #5775
Adds user_permissions property and be_inherited matcher to the file resource for Windows. #5775
Conversation
✔️ Deploy Preview for chef-inspec ready! 🔨 Explore the source changes: c1537f9 🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-inspec/deploys/61dea5e90355670007d82057 😎 Browse the preview: https://deploy-preview-5775--chef-inspec.netlify.app |
3929447
to
c117aa8
Compare
c117aa8
to
c1fb9f8
Compare
@@ -587,3 +596,11 @@ return `true` if your file has a mode with greater permissions than specified. | |||
it { should_not be_more_permissive_than('0644') } | |||
it { should be_more_permissive_than('0000') } | |||
end | |||
|
|||
### `be_inherit` |
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.
Please rename this to "be_inherited".
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, @clintoncwolfe. Did the required changes.
e7e0fe5
to
a344cc8
Compare
…ource for Windows. Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com> Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
a344cc8
to
c1537f9
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@IanMadd if everything looks good could you please approve this PR? |
Signed-off-by: Vasu1105 vasundhara.jagdale@chef.io
Description
user_permissions
property for the file resource to get all the user and group permissions.be_inherited
matcher to check whether the file has enabled inheritance on Windows.Related Issue
Fixes #5768
Types of changes
Checklist: