Sha256: 9fb07d40fa0840d8b5c18c2231a2845449474df07de609bec9a3ffd8c21a87ae
Contents?: true
Size: 825 Bytes
Versions: 7
Compression:
Stored size: 825 Bytes
Contents
Shindo.tests('Rackspace::Servers#list_private_addresses', 'rackspace') do tests('success') do before do @server_id = Rackspace[:servers].create_server(1, 3, 'foglistprivateaddresses').body['server']['id'] @data = Rackspace[:servers].list_private_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 validate_format(@data, [String]) end end tests('failure') do test('raises NotFound error if server does not exist') do begin Rackspace[:servers].list_private_addresses(0) false rescue Excon::Errors::NotFound true end end end end
Version data entries
7 entries across 7 versions & 1 rubygems