2012-07-17 18:24:04 -04:00
|
|
|
def security_group_tests(connection, params, mocks_implemented = true)
|
2012-07-18 19:00:32 -04:00
|
|
|
model_tests(connection.security_groups, params[:security_group_attributes], mocks_implemented) do
|
2012-07-17 18:24:04 -04:00
|
|
|
if Fog.mocking? && !mocks_implemented
|
|
|
|
pending
|
|
|
|
else
|
|
|
|
responds_to(:rules)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
provider, config = :cloudstack, compute_providers[:cloudstack]
|
|
|
|
Shindo.tests("Fog::Compute[:#{provider}] | security_groups", [provider.to_s]) do
|
|
|
|
|
2012-07-18 19:00:32 -04:00
|
|
|
security_group_tests(Fog::Compute[:cloudstack], config, config[:mocked])
|
2012-07-17 18:24:04 -04:00
|
|
|
|
|
|
|
end
|