Sha256: b88503295605816297a8e6c3cc9e58b9fcfa64d29bfc8a50e5877f62455c011c
Contents?: true
Size: 784 Bytes
Versions: 10
Compression:
Stored size: 784 Bytes
Contents
Shindo.tests('Rackspace::Servers#list_public_addresses', 'rackspace') do tests('success') do before do @server_id = Rackspace[:servers].create_server(1, 3, 'foglistpublicaddresses').body['server']['id'] @data = Rackspace[:servers].list_public_addresses(@server_id).body end after do Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' } Rackspace[:servers].delete_server(@server_id) end test('has proper output format') do has_format(@data, [String]) end end tests('failure') do test('raises NotFound error if server does not exist') do has_error(Excon::Errors::NotFound) do Rackspace[:servers].list_public_addresses(0) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems