Sha256: 9455c56b18b6170a63af809a33ddaf973c577a120925911bba26444b90d7e90e
Contents?: true
Size: 1.17 KB
Versions: 31
Compression:
Stored size: 1.17 KB
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' describe 'Rackspace::Servers.list_servers_detail' 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 actual = Rackspace[:servers].list_servers_detail.body['servers'].first actual['addresses'].should be_a(Hash) actual['addresses']['private'].should be_an(Array) actual['addresses']['private'].first.should be_a(String) actual['addresses']['public'].should be_an(Array) actual['addresses']['public'].first.should be_a(String) actual['flavorId'].should be_an(Integer) actual['hostId'].should be_a(String) actual['id'].should be_an(Integer) actual['imageId'].should be_an(Integer) actual['metadata'].should be_a(Hash) actual['name'].should be_a(String) actual['progress'].should be_an(Integer) actual['status'].should be_a(String) end end end
Version data entries
31 entries across 31 versions & 1 rubygems