1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/models/compute/network_acls_tests.rb
Josh Lane d48d376e9c initial import
* take the liberty of correcting Aws naming
2014-12-31 09:17:51 -08:00

20 lines
587 B
Ruby

Shindo.tests("Fog::Compute[:aws] | network_acls", ['aws']) do
@vpc = Fog::Compute[:aws].vpcs.create('cidr_block' => '10.0.10.0/24')
collection_tests(Fog::Compute[:aws].network_acls, { :vpc_id => @vpc.id }, true)
tests('tags') do
test_tags = {'foo' => 'bar'}
@acl = Fog::Compute[:aws].network_acls.create(:vpc_id => @vpc.id, :tags => test_tags)
tests('@acl.tags').returns(test_tags) do
@acl.reload.tags
end
unless Fog.mocking?
Fog::Compute[:aws].tags.all('resource-id' => @acl.identity).each {|tag| tag.destroy}
end
end
@vpc.destroy
end