Sha256: 214e54c017c1bf52edf2347baf30c12902fd7dfb0c45bbc62b6896d9d5f7685e
Contents?: true
Size: 1.18 KB
Versions: 39
Compression:
Stored size: 1.18 KB
Contents
Shindo.tests('Fog::Compute[:rackspace] | address requests', ['rackspace']) do @service = Fog::Compute.new(:provider => :rackspace, :version => :v1) tests('success') do @server = @service.servers.create(:flavor_id => 1, :image_id => 19) tests("#list_addresses(#{@server.id})").formats({'addresses' => {'private' => [String], 'public' => [String]}}) do @service.list_addresses(@server.id).body end tests("#list_private_addresses(#{@server.id})").formats({'private' => [String]}) do @service.list_private_addresses(@server.id).body end tests("#list_public_addresses(#{@server.id})").formats({'public' => [String]}) do @service.list_public_addresses(@server.id).body end @server.wait_for { ready? } @server.destroy end tests('failure') do tests('#list_addresses(0)').raises(Fog::Compute::Rackspace::NotFound) do @service.list_addresses(0) end tests('#list_private_addresses(0)').raises(Fog::Compute::Rackspace::NotFound) do @service.list_private_addresses(0) end tests('#list_public_addresses(0)').raises(Fog::Compute::Rackspace::NotFound) do @service.list_public_addresses(0) end end end
Version data entries
39 entries across 37 versions & 6 rubygems