Sha256: 5274a536de411bb7f3a5662676b37452efc931c45487d53b217a15f521fb0390
Contents?: true
Size: 893 Bytes
Versions: 17
Compression:
Stored size: 893 Bytes
Contents
Shindo.tests('Brightbox::Compute | server type requests', ['brightbox']) do tests('success') do tests("#list_server_types").formats(Brightbox::Compute::Formats::Collection::SERVER_TYPES) do pending if Fog.mocking? data = Brightbox[:compute].list_server_types @server_type_id = data.first["id"] data end tests("#get_server_type('#{@server_type_id}')").formats(Brightbox::Compute::Formats::Full::SERVER_TYPE) do pending if Fog.mocking? Brightbox[:compute].get_server_type(@server_type_id) end end tests('failure') do tests("#get_server_type('typ-00000')").raises(Excon::Errors::NotFound) do pending if Fog.mocking? Brightbox[:compute].get_server_type('typ-00000') end tests("#get_server").raises(ArgumentError) do pending if Fog.mocking? Brightbox[:compute].get_server_type end end end
Version data entries
17 entries across 17 versions & 2 rubygems