inspec/test/integration/verify/controls/aws_iam_user.rb
sfreeman d9221bb925 Add ability to choose a user by username
Add has MFA enabled member
Add "has console password" member

Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
2017-03-15 15:49:13 -04:00

8 lines
No EOL
269 B
Ruby

describe aws_iam_user('mfa_not_enabled_user') do
its('has_mfa_enabled?') { should be false }
its('has_console_password?') { should be false }
end
describe aws_iam_user('console_password_enabled_user') do
its('has_console_password?') { should be true }
end