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