Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1327 from dprince/openstack_security_group_test_f…

…ixes

OpenStack: security group test fixes.
  • Loading branch information...
commit 32f592cccfda13c3458e68942814610fd61367a0 2 parents e4b382d + db77300
@dprince dprince authored
View
2  lib/fog/openstack/requests/compute/create_security_group.rb
@@ -41,7 +41,7 @@ def create_security_group(name, description)
'Content-Length' => Fog::Mock.random_numbers(3).to_s,
'Date' => Date.new}
response.body = {
- 'security_group' => self.data[:security_groups].values
+ 'security_group' => self.data[:security_groups][security_group_id]
}
response
end
View
2  tests/openstack/requests/compute/security_group_tests.rb
@@ -20,7 +20,7 @@
}
tests('success') do
- tests('#create_security_group(name, description)').formats({"security_group" => [@security_group_format]}) do
+ tests('#create_security_group(name, description)').formats({"security_group" => @security_group_format}) do
Fog::Compute[:openstack].create_security_group('from_shindo_test', 'this is from the shindo test').body
end
Please sign in to comment.
Something went wrong with that request. Please try again.