From 9393ae387686c9cc22b803b56ed902e7882dae99 Mon Sep 17 00:00:00 2001 From: Eugene Howe Date: Wed, 12 Oct 2016 09:03:04 -0400 Subject: [PATCH] accessing compute from efs does weird things --- tests/models/efs/mount_target_tests.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/models/efs/mount_target_tests.rb b/tests/models/efs/mount_target_tests.rb index 10276c8fd..e8bfef2d8 100644 --- a/tests/models/efs/mount_target_tests.rb +++ b/tests/models/efs/mount_target_tests.rb @@ -5,7 +5,8 @@ Shindo.tests("AWS::EFS | mount target", ["aws", "efs"]) do if Fog.mocking? vpc = Fog::Compute[:aws].vpcs.create(:cidr_block => "10.0.0.0/16") subnet = Fog::Compute[:aws].subnets.create(:vpc_id => vpc.id, :cidr_block => "10.0.1.0/24") - default_security_group = Fog::Compute[:aws].security_groups.detect { |sg| sg.description == 'default group' } + default_security_group_data = Fog::Compute[:aws].data[:security_groups]['default'] + default_security_group = Fog::Compute[:aws].security_groups.new(default_security_group_data) else vpc = Fog::Compute[:aws].vpcs.first subnet = vpc.subnets.first