Sha256: 47ddb90adc0aed6431b967f5cab4ca6e50c2fcad691ef4b8c42f7d0339e61fac
Contents?: true
Size: 776 Bytes
Versions: 20
Compression:
Stored size: 776 Bytes
Contents
Shindo.tests('Brightbox::Compute | interface requests', ['brightbox']) do tests('success') do unless Fog.mocking? server = Brightbox[:compute].servers.first @interface_id = server.interfaces.first["id"] end tests("#get_interface('#{@interface_id}')").formats(Brightbox::Compute::Formats::Full::INTERFACE) do pending if Fog.mocking? Brightbox[:compute].get_interface(@interface_id) end end tests('failure') do tests("#get_interface('int-00000')").raises(Excon::Errors::Forbidden) do pending if Fog.mocking? Brightbox[:compute].get_interface('int-00000') end tests("#get_interface()").raises(ArgumentError) do pending if Fog.mocking? Brightbox[:compute].get_interface() end end end
Version data entries
20 entries across 20 versions & 2 rubygems