mirror of
https://github.com/inspec/inspec
synced 2024-12-23 11:33:14 +00:00
20 lines
425 B
Ruby
20 lines
425 B
Ruby
|
fixtures = {}
|
||
|
[
|
||
|
'iam_group_administrators',
|
||
|
].each do |fixture_name|
|
||
|
fixtures[fixture_name] = attribute(
|
||
|
fixture_name,
|
||
|
default: "default.#{fixture_name}",
|
||
|
description: 'See ../build/iam.tf',
|
||
|
)
|
||
|
end
|
||
|
|
||
|
control "aws_iam_group recall" do
|
||
|
describe aws_iam_group(fixtures['iam_group_administrators']) do
|
||
|
it { should exist }
|
||
|
end
|
||
|
|
||
|
describe aws_iam_group('fakegroup') do
|
||
|
it { should_not exist }
|
||
|
end
|
||
|
end
|