Sha256: a162d774214553f30714b6adac231588622a4ef257ec841835a93bcd66a5d284
Contents?: true
Size: 799 Bytes
Versions: 3
Compression:
Stored size: 799 Bytes
Contents
Shindo.tests('Brightbox::Compute | zone requests', ['brightbox']) do tests('success') do tests("#list_zones").formats(Brightbox::Compute::Formats::Collection::ZONES) do pending if Fog.mocking? data = Brightbox[:compute].list_zones @zone_id = data.first["id"] data end tests("#get_zone('#{@zone_id}')").formats(Brightbox::Compute::Formats::Full::ZONE) do pending if Fog.mocking? Brightbox[:compute].get_zone(@zone_id) end end tests('failure') do tests("#get_zone('zon-00000')").raises(Excon::Errors::NotFound) do pending if Fog.mocking? Brightbox[:compute].get_zone('zon-00000') end tests("#get_zone").raises(ArgumentError) do pending if Fog.mocking? Brightbox[:compute].get_zone end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-0.3.34 | tests/brightbox/requests/compute/zone_tests.rb |
fog-0.3.33 | tests/brightbox/requests/compute/zone_tests.rb |
fog-0.3.32 | tests/brightbox/requests/compute/zone_tests.rb |