inspec/test/integration/verify/controls/aws.rb
Chris Redekop 3cad7d1e78 #13, Ec2#exists returns false positives
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-02-16 14:02:44 -05:00

9 lines
222 B
Ruby

describe aws_ec2(name: 'Example') do
it { should exist }
its('image_id') { should eq 'ami-0d729a60' }
its('instance_type') { should eq 't2.micro' }
end
describe aws_ec2('i-missing') do
it { should_not exist }
end