inspec/test/integration/default/verify/controls/aws_iam_group.rb
Sam Cornwell 14efd94050 Skeletal aws_iam_group resource (#221)
Signed-off-by: Sam Cornwell <14048146+samcornwell@users.noreply.github.com>
2018-02-01 15:55:53 -05:00

20 lines
No EOL
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