From 3cad7d1e78e7c0ab17e1af43224f3cec487c8e83 Mon Sep 17 00:00:00 2001 From: Chris Redekop Date: Mon, 6 Feb 2017 12:06:01 +0000 Subject: [PATCH] #13, Ec2#exists returns false positives Signed-off-by: Chris Redekop --- test/integration/verify/controls/aws.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/verify/controls/aws.rb b/test/integration/verify/controls/aws.rb index f3a147bdf..7c931425e 100644 --- a/test/integration/verify/controls/aws.rb +++ b/test/integration/verify/controls/aws.rb @@ -1,5 +1,9 @@ describe aws_ec2(name: 'Example') do - it { should be_running } + 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