1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

accessing compute from efs does weird things

This commit is contained in:
Eugene Howe 2016-10-12 09:03:04 -04:00
parent fa33de7d2f
commit 9393ae3876

View file

@ -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