Sha256: ce394c9830e8968b15363decf98a28d1efab52094d3da6e1bfffae8503a883e8
Contents?: true
Size: 1.2 KB
Versions: 36
Compression:
Stored size: 1.2 KB
Contents
Shindo.tests('Rackspace::Servers | address requests', ['rackspace']) do tests('success') do @server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foglistaddresses') tests("#list_addresses(#{@server.id})").formats({'addresses' => {'private' => [String], 'public' => [String]}}) do Rackspace[:servers].list_addresses(@server.id).body end tests("#list_private_addresses(#{@server.id})").formats({'private' => [String]}) do Rackspace[:servers].list_private_addresses(@server.id).body end tests("#list_public_addresses(#{@server.id})").formats({'public' => [String]}) do Rackspace[:servers].list_public_addresses(@server.id).body end @server.wait_for { ready? } @server.destroy end tests('failure') do tests('#list_addresses(0)').raises(Fog::Rackspace::Servers::NotFound) do Rackspace[:servers].list_addresses(0) end tests('#list_private_addresses(0)').raises(Fog::Rackspace::Servers::NotFound) do Rackspace[:servers].list_private_addresses(0) end tests('#list_public_addresses(0)').raises(Fog::Rackspace::Servers::NotFound) do Rackspace[:servers].list_public_addresses(0) end end end
Version data entries
36 entries across 36 versions & 2 rubygems