mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
merge tags if present, reset mocks after acl/vpc tests
This commit is contained in:
parent
3e1e814eb6
commit
c8ae8dca18
4 changed files with 6 additions and 2 deletions
|
@ -92,7 +92,8 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
network_acls.each do |acl|
|
network_acls.each do |acl|
|
||||||
acl.merge!('tagSet' => self.data[:tag_sets][acl['networkAclId']])
|
tags = self.data[:tag_sets][acl['networkAclId']]
|
||||||
|
acl.merge!('tagSet' => tags) if tags
|
||||||
end
|
end
|
||||||
|
|
||||||
response.status = 200
|
response.status = 200
|
||||||
|
|
|
@ -56,7 +56,8 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
vpcs.each do |vpc|
|
vpcs.each do |vpc|
|
||||||
vpc.merge!('tagSet' => self.data[:tag_sets][vpc['vpcId']])
|
tags = self.data[:tag_sets][vpc['vpcId']]
|
||||||
|
vpc.merge!('tagSet' => tags) if tags
|
||||||
end
|
end
|
||||||
|
|
||||||
Excon::Response.new(
|
Excon::Response.new(
|
||||||
|
|
|
@ -107,5 +107,6 @@ Shindo.tests('Fog::Compute[:aws] | network acl requests', ['aws']) do
|
||||||
@another_acl.destroy
|
@another_acl.destroy
|
||||||
@subnet.destroy
|
@subnet.destroy
|
||||||
@vpc.destroy
|
@vpc.destroy
|
||||||
|
Fog::Compute::AWS::Mock.reset if Fog.mocking?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -106,5 +106,6 @@ Shindo.tests('Fog::Compute[:aws] | vpc requests', ['aws']) do
|
||||||
# Clean up
|
# Clean up
|
||||||
Fog::Compute[:aws].delete_tags(@another_vpc.id, test_tags)
|
Fog::Compute[:aws].delete_tags(@another_vpc.id, test_tags)
|
||||||
@another_vpc.destroy
|
@another_vpc.destroy
|
||||||
|
Fog::Compute::AWS::Mock.reset if Fog.mocking?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue