Sha256: 49fff1c9a94e79b56fe3cba941f1e0c8304a7630c0fd4d608a3073fccaea84d6
Contents?: true
Size: 722 Bytes
Versions: 9
Compression:
Stored size: 722 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' describe 'Rackspace::Servers.reboot_server' do describe 'success' do before(:each) do # flavor 1 = 256, image 3 = gentoo 2008.0 @server_id = servers.create_server(1, 3, 'name').body['server']['id'] end after(:each) do eventually(128) do servers.delete_server(@server_id) end end it "should return proper attributes" do servers.reboot_server(@server_id, 'HARD') end end describe 'failure' do it "should raise a NotFound error if the server does not exist" do lambda do servers.reboot_server(0, 'HARD') end.should raise_error(Excon::Errors::NotFound) end end end
Version data entries
9 entries across 9 versions & 1 rubygems