mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
update docs to non-deprecated parameter syntax from name > username as per dep warnings (#2781)
Signed-off-by: JohnVonNeumann <louiswillcock@gmail.com>
This commit is contained in:
parent
c2f3dd4c61
commit
cd7f84f5e7
1 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ To test properties of the special AWS root user (which owns the account), use th
|
|||
|
||||
An `aws_iam_user` resource block declares a user by name, and then lists tests to be performed.
|
||||
|
||||
describe aws_iam_user(name: 'test_user') do
|
||||
describe aws_iam_user(username: 'test_user') do
|
||||
it { should exist }
|
||||
end
|
||||
|
||||
|
@ -29,19 +29,19 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
### Test that a user does not exist
|
||||
|
||||
describe aws_iam_user(name: 'gone') do
|
||||
describe aws_iam_user(username: 'gone') do
|
||||
it { should_not exist }
|
||||
end
|
||||
|
||||
### Test that a user has multi-factor authentication enabled
|
||||
|
||||
describe aws_iam_user(name: 'test_user') do
|
||||
describe aws_iam_user(username: 'test_user') do
|
||||
it { should have_mfa_enabled }
|
||||
end
|
||||
|
||||
### Test that a service user does not have a password
|
||||
|
||||
describe aws_iam_user(name: 'test_user') do
|
||||
describe aws_iam_user(username: 'test_user') do
|
||||
it { should have_console_password }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue