mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Doc review changes for group and groups resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
This commit is contained in:
parent
b70f3166d4
commit
de718163e1
2 changed files with 23 additions and 14 deletions
|
@ -62,17 +62,22 @@ The `members` property tests the members that belong to the group:
|
|||
|
||||
its('members') { should include 'root' }
|
||||
|
||||
where `members` returns
|
||||
- Array of group members for **Windows Platform**.
|
||||
Example: `["member1", "member2"]`
|
||||
- CSV formatted string of group members for **Non-Windows Platforms**.
|
||||
Example: `"member1,member2"`
|
||||
where `members` returns:
|
||||
|
||||
- an array of group members for **Windows Platform**.
|
||||
|
||||
Example: `["member1", "member2"]`
|
||||
|
||||
- a CSV formatted string of group members for **Non-Windows Platforms**.
|
||||
|
||||
Example: `"member1,member2"`
|
||||
|
||||
|
||||
### members_array
|
||||
|
||||
The `members_array` property tests the members that belong to a group just like `members` property.
|
||||
But the value returned by this property is always an array of group members.
|
||||
The `members_array` property tests the members that belong to a group just like the
|
||||
`members` property,
|
||||
but the value returned by this property is always an array of group members.
|
||||
|
||||
its('members_array') { should include 'root' }
|
||||
|
||||
|
|
|
@ -74,16 +74,20 @@ The `members` property tests the members that belong to a group:
|
|||
its('members') { should include 'root' }
|
||||
its('members') { should include 'Administrator' }
|
||||
|
||||
where `members` returns
|
||||
- Array of group members for **Windows Platform**.
|
||||
Example: `["member1", "member2"]`
|
||||
- Single element array with CSV formatted string of group members for **Non-Windows Platforms**.
|
||||
Example: `["member1,member2"]`
|
||||
where `members` returns:
|
||||
|
||||
- an array of group members for **Windows Platform**.
|
||||
|
||||
Example: `["member1", "member2"]`
|
||||
|
||||
- a single element array with CSV formatted string of group members for **Non-Windows Platforms**.
|
||||
|
||||
Example: `["member1,member2"]`
|
||||
|
||||
### members_array
|
||||
|
||||
The `members_array` property tests the group members just like `members` property.
|
||||
But the value returned by this property is always an array of group members.
|
||||
The `members_array` property tests the group members just like the `members` property,
|
||||
but the value returned by this property is always an array of group members.
|
||||
|
||||
its('members_array') { should include 'root' }
|
||||
its('members_array') { should include 'Administrator' }
|
||||
|
|
Loading…
Reference in a new issue