1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/cloudstack/compute/models/security_groups_tests.rb
Josh Lane & Jason Hansen 722b33cdad [cloudstack|security_groups] add groups and rules
* add volume tests back into tests/cloudstack/models/
* represent rules as a resource
* fix job representations
2012-07-18 12:59:16 -07:00

19 lines
499 B
Ruby

def security_group_tests(provider, params, mocks_implemented = true)
collection_tests(provider.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_group", [provider.to_s]) do
security_group_tests(Fog::Compute[provider], (config[:security_group_attributes] || {}), config[:mocked])
end