mirror of
https://github.com/inspec/inspec
synced 2024-12-23 03:23:27 +00:00
532f42df89
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
33 lines
722 B
Ruby
33 lines
722 B
Ruby
fixtures = {}
|
|
[
|
|
'routetable_rtb_route_table_id',
|
|
'routetable_rtb_vpc_id',
|
|
].each do |fixture_name|
|
|
fixtures[fixture_name] = attribute(
|
|
fixture_name,
|
|
default: "default.#{fixture_name}",
|
|
description: 'See ../build/route_table.tf',
|
|
)
|
|
end
|
|
|
|
control "aws_route_table exists" do
|
|
describe aws_route_table do
|
|
it { should exist }
|
|
end
|
|
end
|
|
|
|
control "aws_route_table recall" do
|
|
describe aws_route_table(fixtures['routetable_rtb_route_table_id']) do
|
|
it { should exist}
|
|
end
|
|
end
|
|
|
|
control "aws_route_tables dont exist" do
|
|
describe aws_route_table('rtb-123abcde') do
|
|
it { should_not exist }
|
|
end
|
|
|
|
describe aws_route_table(route_table_id: 'rtb-123abcde') do
|
|
it { should_not exist }
|
|
end
|
|
end
|