mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
17 lines
506 B
Ruby
17 lines
506 B
Ruby
|
def security_group_tests(connection, params, mocks_implemented = true)
|
||
|
model_tests(connection.security_groups, params, mocks_implemented) do
|
||
|
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
|
||
|
|
||
|
security_group_tests(Fog::Compute[:cloudstack], config[:security_group_attributes], config[:mocked])
|
||
|
|
||
|
end
|