Sha256: ca64eb8d437e039aef819daff5fdf8a5e1de3548e13d7fcaa73bae06faa67af9

Contents?: true

Size: 565 Bytes

Versions: 7

Compression:

Stored size: 565 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe 'Rackspace::Servers.create_server' do
  describe 'success' do

    it "should return proper attributes" do
      # flavor 1 = 256
      # image 3 = gentoo 2008.0
      data = servers.create_server(1, 3)
      p data
      while true do
        sleep(1)
        details = servers.get_servers_details.body
        p details['servers'].first['progress']
        break if details['servers'].first['status'] == 'ACTIVE'
      end
      servers.delete_server(data.body['server']['id'])
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.0.21 spec/rackspace/requests/servers/create_server_spec.rb
fog-0.0.20 spec/rackspace/requests/servers/create_server_spec.rb
fog-0.0.19 spec/rackspace/requests/servers/create_server_spec.rb
fog-0.0.18 spec/rackspace/requests/servers/create_server_spec.rb
fog-0.0.17 spec/rackspace/requests/servers/create_server_spec.rb
fog-0.0.16 spec/rackspace/requests/servers/create_server_spec.rb
fog-0.0.15 spec/rackspace/requests/servers/create_server_spec.rb