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