Sha256: 1ae382d0225e5b6934a1e28d004b26ea1bc28ddd57fb9b19c6690e78b7770aaf
Contents?: true
Size: 944 Bytes
Versions: 64
Compression:
Stored size: 944 Bytes
Contents
Shindo.tests('Fog::Compute[:brightbox] | zone requests', ['brightbox']) do tests('success') do tests("#list_zones") do pending if Fog.mocking? result = Fog::Compute[:brightbox].list_zones @zone_id = result.first["id"] data_matches_schema(Brightbox::Compute::Formats::Collection::ZONES, {:allow_extra_keys => true}) { result } end tests("#get_zone('#{@zone_id}')") do pending if Fog.mocking? result = Fog::Compute[:brightbox].get_zone(@zone_id) data_matches_schema(Brightbox::Compute::Formats::Full::ZONE, {:allow_extra_keys => true}) { result } end end tests('failure') do tests("#get_zone('zon-00000')").raises(Excon::Errors::NotFound) do pending if Fog.mocking? Fog::Compute[:brightbox].get_zone('zon-00000') end tests("#get_zone").raises(ArgumentError) do pending if Fog.mocking? Fog::Compute[:brightbox].get_zone end end end
Version data entries
64 entries across 64 versions & 5 rubygems