You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2011/04/06 11:21:41 UTC

svn commit: r1089371 [1/2] - in /incubator/deltacloud/trunk/server: ./ tests/ tests/drivers/mock/ tests/drivers/rackspace/ tests/drivers/rackspace/fixtures/

Author: mfojtik
Date: Wed Apr  6 09:21:39 2011
New Revision: 1089371

URL: http://svn.apache.org/viewvc?rev=1089371&view=rev
Log:
Added VCR gem to recort Test::Unit

Added:
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-1eb29b4121fee923d3d619fd8f7c6af68aae0ef4.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2ee5580739f1b704a8b4a5e453641be70c37dac1.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2fcfc33bdaf35e34ea8cd309f35c48ba675afa8b.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-33788dfa9cf3ec4e37e4057bca0143591e54788e.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-48f898a80864f048c98b231819b670ef2024c4b4.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6d10f489e397ce35ebc6a3afb0622a2ec6f32e8a.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6ecaf5e25b747645e181d79e55f08a6bac5bd1c3.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-70db02f23c658bccd5d3e66781f98b26ab4107ca.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-733e8ec18a1bd16ed292e9185e04835a7c1621db.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-798577ad678724e877a068b645f4575981761625.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-8fa5ace7e3bf48c86e82dcf78ec71baee0da8f5a.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9c33dc09276022f9e3cfbc9d76d7ae0ff567d99c.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9ce8c09907082114e9e5986915d806eeadcbf7cd.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b0c6d16b98a5f529998b16a0502ffaa883c2d5cc.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b73452ba27599b5e170faaae32bfef8b0a331fc6.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b84d468c592033e08492238bd5c80639cbc63bd3.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d69cab1f8c346dc2f51a2865feeeb744da88cdfd.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d6e43a79c4429459bf2618c5a6a6d80757a67ef9.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-db67323871eddf68889aefc40aeed345459e6e63.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-165f1ed29df23e6c585ba08d4bd1748b81bef0c2.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-34c093a5823b18fbaee744bd095162aa29cf3338.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-837a9c2f7f5471d7163f1a149a29195fc73364ea.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-aa64fab8820e4b7362b3784fb7373023223bfad3.yml
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-c29de27eb57dd3b1d715623c78d86ae1e4ca70d3.yml
Modified:
    incubator/deltacloud/trunk/server/Gemfile
    incubator/deltacloud/trunk/server/Rakefile
    incubator/deltacloud/trunk/server/tests/common.rb
    incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/mock/hardware_profiles_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/mock/images_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/mock/instances_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/mock/realms_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/api_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/hardware_profiles_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/images_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/instances_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/realms_test.rb
    incubator/deltacloud/trunk/server/tests/drivers/rackspace/setup.rb

Modified: incubator/deltacloud/trunk/server/Gemfile
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/Gemfile?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/Gemfile (original)
+++ incubator/deltacloud/trunk/server/Gemfile Wed Apr  6 09:21:39 2011
@@ -38,6 +38,8 @@ group :test do
   gem 'ruby-debug', :platforms => :mri_18
   gem 'ruby-debug19', :platforms => :mri_19, :require => 'ruby-debug'
   gem "compass"
+  gem "vcr"
+  gem "webmock"
   gem "nokogiri"
   gem "rack-test"
   gem "ci_reporter"

Modified: incubator/deltacloud/trunk/server/Rakefile
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/Rakefile?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/Rakefile (original)
+++ incubator/deltacloud/trunk/server/Rakefile Wed Apr  6 09:21:39 2011
@@ -32,7 +32,7 @@ namespace :test do
 
   desc "Run mock unit tests"
   Rake::TestTask.new("mock") { |t|
-    t.test_files = FileList.new('tests/drivers/mock/*_test.rb') + FileList.new('tests/rabbit_test.rb')
+    t.test_files = ['tests/common.rb', 'tests/drivers/mock/setup.rb'] + FileList.new('tests/drivers/mock/*_test.rb') + FileList.new('tests/rabbit_test.rb')
     t.options = "-v -v"
     t.verbose = true
     t.warning = false

Modified: incubator/deltacloud/trunk/server/tests/common.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/common.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/common.rb (original)
+++ incubator/deltacloud/trunk/server/tests/common.rb Wed Apr  6 09:21:39 2011
@@ -35,14 +35,15 @@ ENV['API_PORT']     = '4040'
 require 'server'
 
 configure :test do
-  set :loggining, true
-  set :clean_trace, true
+  set :loggining, false
+  set :clean_trace, false
   set :dump_errors, true
-  set :raise_errors, true
+  set :raise_errors => false
   set :show_exceptions, false
 end
 
 require 'rack/test'
+require 'digest/sha1'
 
 Spec::Runner.configure do |conf|
   conf.include Rack::Test::Methods
@@ -50,22 +51,32 @@ end
 
 module DeltacloudTestCommon
 
-  def auth_hash(credentials)
-    "Basic " + Base64.encode64("#{credentials[:user]}:#{credentials[:password]}")
+  def recording?
+    @use_recording
   end
 
+  def record!
+    @use_recording = true
+  end
+
+
+  # Authentication helper for Basic HTTP authentication
+  # To change default user credentials stored in ENV['API_USER|PASSWORD'] you
+  # need to set opts[:credentials] = { :user => '...', :password => '...'}
+  #
   def authenticate(opts={})
     credentials = opts[:credentials] || { :user => ENV['API_USER'], :password => ENV['API_PASSWORD']}
     return {
-      'HTTP_AUTHORIZATION' => auth_hash(credentials),
+      'HTTP_AUTHORIZATION' => "Basic " + Base64.encode64("#{credentials[:user]}:#{credentials[:password]}")
     }
   end
 
-  def default_headers
-    { 'SERVER_PORT' => ENV['API_PORT'] }
-  end
-
-  def accept_header(format=:xml)
+  # HTTP Accept header helper.
+  # Will set appropriate value for this header.
+  # Available options for format are: :json, :html or :xml
+  # By default :xml is used
+  #
+  def accept(format=:xml)
     case format
       when :json then 'application/json;q=0.9'
       when :html then 'text/html;q=0.9'
@@ -74,37 +85,75 @@ module DeltacloudTestCommon
     end
   end
 
-  def create_url(url, format = :xml)
-    "#{url}"
+  # This helper will execute GET operation on given URI.
+  # You can set additional parameters using params Hash, which will be passed to
+  # request.
+  # You can change format used for communication using opts[:format] = :xml | :html :json
+  # You can turn on recording (you need to configure it first in setup.rb) using
+  # opts[:record] (true/false)
+  # You can force authentication using opts[:auth] parameter or use
+  # 'get_auth_url' which will do it for you ;-)
+  #
+  def get_url(uri, params={}, opts={})
+    header 'Accept', accept(opts[:format] || :xml)
+    if DeltacloudTestCommon::recording?
+      VCR.use_cassette("get-" + Digest::SHA1.hexdigest("#{uri}-#{params}}")) do
+        get(uri, params || {}, opts[:auth] ? authenticate(opts) : {})
+      end
+    else
+        get(uri, params || {}, opts[:auth] ? authenticate(opts) : {})
+    end
+    last_response.status.should_not == 401
+  end
+
+  def get_auth_url(uri, params={}, opts={})
+    opts.merge!(:auth => true)
+    get_url(uri, params, opts)
+  end
+
+  def post_url(uri, params={}, opts={})
+    header 'Accept', accept(opts[:format] || :xml)
+    if DeltacloudTestCommon::recording?
+      VCR.use_cassette("post-" + Digest::SHA1.hexdigest("#{uri}-#{params}")) do
+        post(uri, params || {}, authenticate(opts))
+      end
+    else
+        post(uri, params || {}, authenticate(opts))
+    end
   end
 
-  def do_request(uri, params=nil, authentication=false, opts={ :format => :xml })
-    header 'Accept', accept_header(opts[:format])
-    get create_url(uri), params || {}, (authentication) ? authenticate(opts) : {}
-  end
-
-  def do_xml_request(uri, params=nil, authentication=false)
-    header 'Accept', accept_header(:xml)
-    get create_url(uri), params || {}, (authentication) ? authenticate : {}
-    puts "[401] Authentication required to get #{uri}" if last_response.status == 401
-    if last_response.status == 200
-      @xml_response = false
-      @xml_response = Nokogiri::XML(last_response.body)
+  def delete_url(uri, params={}, opts={})
+    header 'Accept', accept(opts[:format] || :xml)
+    if DeltacloudTestCommon::recording?
+      VCR.use_cassette("delete-"+Digest::SHA1.hexdigest("#{uri}-#{params}")) do
+        delete(uri, params || {}, authenticate(opts))
+      end
+    else
+        delete(uri, params || {}, authenticate(opts))
     end
   end
 
-  def require_authentication?(uri)
-    get uri, {}
-    true if last_response.status.eql?(401)
+  def put_url(uri, params={}, opts={})
+    header 'Accept', accept(opts[:format] || :xml)
+    if DeltacloudTestCommon::recording?
+      VCR.use_cassette("put-"+Digest::SHA1.hexdigest("#{uri}-#{params}-#{authenticate(opts)}")) do
+        put(uri, params || {}, authenticate(opts))
+      end
+    else
+        put(uri, params || {}, authenticate(opts))
+    end
   end
 
+  # This helper will automatically convert output from method above to Nokogiri
+  # XML object
   def last_xml_response
-    @xml_response || Nokogiri::XML::Document.new
+    Nokogiri::XML(last_response.body) #if last_response.status.to_s =~ /2(\d+)/
   end
 
-  def add_created_instance(id)
-    $created_instances ||= []
-    $created_instances << id
+  # Check if given URI require authentication
+  def require_authentication?(uri)
+    get uri, {}
+    true if last_response.status == 401
   end
 
   def with_provider(new_provider, &block)
@@ -116,6 +165,12 @@ module DeltacloudTestCommon
       ENV["API_PROVIDER"] = old_provider
     end
   end
+
+  def add_created_instance(id)
+    $created_instances ||= []
+    $created_instances << id
+  end
+
 end
 
 include DeltacloudTestCommon

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb Wed Apr  6 09:21:39 2011
@@ -28,25 +28,25 @@ module DeltacloudUnitTest
     end
 
     def test_it_returns_entry_points
-      do_xml_request '/api'
+      get_auth_url '/api'
       (last_xml_response/'/api/link').length.should > 0
     end
 
     def test_it_has_correct_attributes_set
-      do_xml_request '/api'
+      get_auth_url '/api'
       (last_xml_response/'/api/link').each do |link|
         link.attributes.keys.sort.should == [ 'href', 'rel' ]
       end
     end
 
     def test_it_responses_to_html
-      do_request '/api', {}, false, { :format => :html }
+      get_url '/api', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
     end
 
     def test_it_responses_to_json
-      do_request '/api', {}, false, { :format => :json }
+      get_url '/api', {}, { :format => :json }
       last_response.status.should == 200
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['api'].class.should == Hash
@@ -54,33 +54,33 @@ module DeltacloudUnitTest
 
     def test_it_switches_drivers
       with_provider("") do
-        do_xml_request '/api'
+        get_auth_url '/api'
         (last_xml_response/"api/link[rel = 'instances']").first.should_not == nil
       end
 
       # Switch to storage-only mock driver
       with_provider("storage") do
-        do_xml_request '/api'
+        get_auth_url '/api'
         (last_xml_response/"api/link[rel = 'instances']").first.should == nil
       end
     end
 
     def test_it_handles_unsupported_collections
-      do_xml_request '/api/no_such_collection'
+      get_auth_url '/api/no_such_collection'
       last_response.status.should == 404
 
       with_provider("storage") do
-        do_xml_request '/api/instances'
+        get_auth_url '/api/instances'
         last_response.status.should == 404
       end
     end
 
     def test_it_allows_accessing_docs
-      do_request '/api/docs/instances'
+      get_url '/api/docs/instances'
       last_response.status.should == 200
 
       with_provider("storage") do
-        do_request '/api/docs/instances'
+        get_url '/api/docs/instances'
         last_response.status.should == 404
       end
     end
@@ -92,7 +92,7 @@ module DeltacloudUnitTest
     end
 
     def test_it_expose_available_drivers
-      do_xml_request '/api/drivers'
+      get_auth_url '/api/drivers'
       last_response.status.should == 200
       (last_xml_response/"drivers").length.should > 0
       (last_xml_response/'drivers/driver').length.should > 0
@@ -100,33 +100,33 @@ module DeltacloudUnitTest
     end
 
     def test_it_expose_ec2_driver_entrypoints
-      do_xml_request '/api/drivers'
+      get_auth_url '/api/drivers'
       last_response.status.should == 200
       ec2 = (last_xml_response/'drivers/driver[@id=ec2]').first
       (ec2/"provider").length.should > 0
       (ec2/"provider[@id = 'eu-west-1']").length.should == 1
-      do_xml_request ec2[:href]
+      get_auth_url ec2[:href]
       eu_west = (last_xml_response/"provider[@id = 'eu-west-1']").first
       (eu_west/"entrypoint").length.should > 0
       (eu_west/"entrypoint[@kind = 'ec2']").length.should == 1
     end
 
     def test_it_supports_matrix_params
-      do_xml_request "/api;driver=ec2"
+      get_auth_url "/api;driver=ec2"
       last_response.status.should == 200
       (last_xml_response/'api').first[:driver].should == 'ec2'
-      do_xml_request "/api;driver=mock"
+      get_auth_url "/api;driver=mock"
       (last_xml_response/'api').first[:driver].should == 'mock'
-      do_xml_request "/api;driver=ec2/hardware_profiles"
+      get_auth_url "/api;driver=ec2/hardware_profiles"
       (last_xml_response/'hardware_profiles/hardware_profile/@id').map {|n| n.to_s}.include?('m1.small').should == true
       last_response.status.should == 200
     end
 
     def test_it_change_features_after_driver_change
-      do_xml_request "/api;driver=ec2"
+      get_auth_url "/api;driver=ec2"
       (last_xml_response/'api/link[@rel="instances"]/feature[@name="user_name"]').first.should == nil
       (last_xml_response/'api/link[@rel="instances"]/feature[@name="user_data"]').first.should_not == nil
-      do_xml_request "/api;driver=mock"
+      get_auth_url "/api;driver=mock"
       (last_xml_response/'api/link[@rel="instances"]/feature[@name="user_name"]').first.should_not == nil
       (last_xml_response/'api/link[@rel="instances"]/feature[@name="user_data"]').first.should == nil
     end

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/hardware_profiles_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/hardware_profiles_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/hardware_profiles_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/hardware_profiles_test.rb Wed Apr  6 09:21:39 2011
@@ -28,26 +28,26 @@ module DeltacloudUnitTest
     end
 
     def test_it_returns_hardware_profiles
-      do_xml_request '/api/hardware_profiles'
+      get_url '/api/hardware_profiles'
       (last_xml_response/'hardware_profiles/hardware_profile').length.should > 0
     end
 
     def test_it_has_correct_attributes_set
-      do_xml_request '/api/hardware_profiles'
+      get_auth_url '/api/hardware_profiles'
       (last_xml_response/'hardware_profiles/hardware_profile').each do |profile|
         profile.attributes.keys.sort.should == [ 'href', 'id' ]
       end
     end
 
     def test_hardware_profiles_have_name
-      do_xml_request '/api/hardware_profiles'
+      get_auth_url '/api/hardware_profiles'
       (last_xml_response/'hardware_profiles/hardware_profile').each do |profile|
         (profile/'name').text.should_not == nil
       end
     end
 
     def test_hardware_profiles_have_unique_name
-      do_xml_request '/api/hardware_profiles'
+      get_auth_url '/api/hardware_profiles'
       names = []
       (last_xml_response/'hardware_profiles/hardware_profile').each do |profile|
         names << (profile/'name').text
@@ -56,7 +56,7 @@ module DeltacloudUnitTest
     end
 
     def test_hardware_profiles_have_unique_id
-      do_xml_request '/api/hardware_profiles'
+      get_auth_url '/api/hardware_profiles'
       ids = []
       (last_xml_response/'hardware_profiles/hardware_profile').each do |profile|
         ids << profile['id']
@@ -65,44 +65,42 @@ module DeltacloudUnitTest
     end
 
     def test_m1_xlarge_profile_has_correct_attributes
-      do_xml_request '/api/hardware_profiles'
+      get_auth_url '/api/hardware_profiles'
       profile = (last_xml_response/'hardware_profiles/hardware_profile[@id="m1-xlarge"]')
       test_profile_properties(profile)
     end
 
     def test_it_returns_valid_hardware_profile
-      do_xml_request '/api/hardware_profiles/m1-xlarge'
+      get_auth_url '/api/hardware_profiles/m1-xlarge'
       profile = (last_xml_response/'hardware_profile')
       test_profile_properties(profile)
     end
 
     def test_it_responses_to_json
-      do_request '/api/hardware_profiles', {}, false, { :format => :json }
+      get_url '/api/hardware_profiles', {}, { :format => :json }
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['hardware_profiles'].class.should == Array
-
-      do_request '/api/hardware_profiles/m1-xlarge', {}, false, { :format => :json }
+      get_url '/api/hardware_profiles/m1-xlarge', {}, { :format => :json }
       last_response.status.should == 200
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['hardware_profile'].class.should == Hash
     end
 
     def test_it_responses_to_html
-      do_request '/api/hardware_profiles', {}, false, { :format => :html }
+      get_url '/api/hardware_profiles', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
-
-      do_request '/api/hardware_profiles/m1-xlarge', {}, false, { :format => :html }
+      get_url '/api/hardware_profiles/m1-xlarge', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
     end
 
     def test_it_returns_error_on_wrong_name
-      do_request '/api/hardware_profiles/m1-unknown-wrongname', {}, false, { :format => :html }
+      get_url '/api/hardware_profiles/m1-unknown-wrongname', {}, { :format => :html }
       last_response.status.should == 404
-      do_xml_request '/api/hardware_profiles/m1-unknown-wrongname'
+      get_auth_url '/api/hardware_profiles/m1-unknown-wrongname'
       last_response.status.should == 404
-      do_request '/api/hardware_profiles/m1-unknown-wrongname', {}, false, { :format => :json }
+      get_url '/api/hardware_profiles/m1-unknown-wrongname', {}, { :format => :json }
       last_response.status.should == 404
     end
 

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/images_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/images_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/images_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/images_test.rb Wed Apr  6 09:21:39 2011
@@ -32,31 +32,31 @@ module DeltacloudUnitTest
     end
 
     def test_it_returns_images
-      do_xml_request '/api/images', {}, true
+      get_auth_url '/api/images', {}
       (last_xml_response/'images/image').length.should > 0
     end
 
     def test_it_has_correct_attributes_set
-      do_xml_request '/api/images', {}, true
+      get_auth_url '/api/images', {}
       (last_xml_response/'images/image').each do |image|
         image.attributes.keys.sort.should == [ 'href', 'id' ]
       end
     end
 
     def test_img1_has_correct_attributes
-      do_xml_request '/api/images', {}, true
+      get_auth_url '/api/images', {}
       image = (last_xml_response/'images/image[@id="img1"]')
       test_image_attributes(image)
     end
 
     def test_it_returns_valid_image
-      do_xml_request '/api/images/img1', {}, true
+      get_auth_url '/api/images/img1', {}
       image = (last_xml_response/'image')
       test_image_attributes(image)
     end
 
     def test_it_has_unique_ids
-      do_xml_request '/api/images', {}, true
+      get_auth_url '/api/images', {}
       ids = []
       (last_xml_response/'images/image').each do |image|
         ids << image['id'].to_s
@@ -65,54 +65,52 @@ module DeltacloudUnitTest
     end
 
     def test_it_has_valid_urls
-      do_xml_request '/api/images', {}, true
+      get_auth_url '/api/images', {}
       ids = []
       images = (last_xml_response/'images/image')
       images.each do |image|
-        do_xml_request image['href'].to_s, {}, true
+        get_auth_url image['href'].to_s, {}
         (last_xml_response/'image').first['href'].should == image['href'].to_s
       end
     end
 
     def test_it_can_filter_using_owner_id
-      do_xml_request '/api/images', { :owner_id => 'mockuser' }, true
+      get_auth_url '/api/images', { :owner_id => 'mockuser' }
       (last_xml_response/'images/image').length.should == 1
       (last_xml_response/'images/image/owner_id').first.text.should == 'mockuser'
     end
 
     def test_it_can_filter_using_unknown_owner_id
-      do_xml_request '/api/images', { :architecture => 'unknown_user' }, true
+      get_auth_url '/api/images', { :architecture => 'unknown_user' }
       (last_xml_response/'images/image').length.should == 0
     end
 
     def test_it_can_filter_using_architecture
-      do_xml_request '/api/images', { :architecture => 'x86_64' }, true
+      get_auth_url '/api/images', { :architecture => 'x86_64' }
       (last_xml_response/'images/image').length.should == 1
       (last_xml_response/'images/image/architecture').first.text.should == 'x86_64'
     end
 
     def test_it_can_filter_using_unknown_architecture
-      do_xml_request '/api/images', { :architecture => 'unknown_arch' }, true
+      get_auth_url '/api/images', { :architecture => 'unknown_arch' }
       (last_xml_response/'images/image').length.should == 0
     end
 
     def test_it_responses_to_json
-      do_request '/api/images', {}, true, { :format => :json }
+      get_auth_url '/api/images', {}, { :format => :json }
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['images'].class.should == Array
-
-      do_request '/api/images/img1', {}, true, { :format => :json }
+      get_auth_url '/api/images/img1', {}, { :format => :json }
       last_response.status.should == 200
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['image'].class.should == Hash
     end
 
     def test_it_responses_to_html
-      do_request '/api/images', {}, true, { :format => :html }
+      get_auth_url '/api/images', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
-
-      do_request '/api/images/img1', {}, true, { :format => :html }
+      get_auth_url '/api/images/img1', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
     end

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb Wed Apr  6 09:21:39 2011
@@ -32,12 +32,12 @@ module DeltacloudUnitTest
     end
 
     def test_it_returns_instance_states
-      do_xml_request '/api/instance_states', {}, true
+      get_auth_url '/api/instance_states', {}
       (last_xml_response/'states/state').length.should > 0
     end
 
     def test_each_state_has_transition
-      do_xml_request '/api/instance_states', {}, true
+      get_auth_url '/api/instance_states', {}
       (last_xml_response/'states/state').each do |state|
         next if state['name'].eql?('finish') # Finnish state doesn't have transitions
         (state/'transition').length.should > 0
@@ -58,13 +58,13 @@ module DeltacloudUnitTest
     end
 
     def test_it_responses_to_html
-      do_request '/api/instance_states', {}, false, { :format => :html }
+      get_url '/api/instance_states', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
     end
 
     def test_it_responses_to_png
-      do_request '/api/instance_states', { :format => 'png' }, false
+      get_url '/api/instance_states', { :format => 'png' }
       last_response.status.should == 200
       last_response.headers['Content-Type'].should =~ /^image\/png/
     end

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/instances_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/instances_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/instances_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/instances_test.rb Wed Apr  6 09:21:39 2011
@@ -32,19 +32,19 @@ module DeltacloudUnitTest
     end
 
     def test_it_returns_instances
-      do_xml_request '/api/instances', {}, true
+      get_auth_url '/api/instances', {}
       (last_xml_response/'instances/instance').length.should > 0
     end
 
     def test_it_has_correct_attributes_set
-      do_xml_request '/api/images', {}, true
+      get_auth_url '/api/images', {}
       (last_xml_response/'images/image').each do |image|
         image.attributes.keys.sort.should == [ 'href', 'id' ]
       end
     end
 
     def test_it_has_unique_ids
-      do_xml_request '/api/instances', {}, true
+      get_auth_url '/api/instances', {}
       ids = []
       (last_xml_response/'instances/instance').each do |image|
         ids << image['id'].to_s
@@ -53,34 +53,33 @@ module DeltacloudUnitTest
     end
 
     def test_inst1_has_correct_attributes
-      do_xml_request '/api/instances', {}, true
+      get_auth_url '/api/instances', {}
       instance = (last_xml_response/'instances/instance[@id="inst1"]')
       test_instance_attributes(instance)
     end
 
     def test_it_returns_valid_realm
-      do_xml_request '/api/instances/inst1', {}, true
+      get_auth_url '/api/instances/inst1', {}
       instance = (last_xml_response/'instance')
       test_instance_attributes(instance)
     end
 
     def test_it_responses_to_json
-      do_request '/api/instances', {}, true, { :format => :json }
+      get_auth_url '/api/instances', {}, { :format => :json }
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['instances'].class.should == Array
 
-      do_request '/api/instances/inst1', {}, true, { :format => :json }
+      get_auth_url '/api/instances/inst1', {}, { :format => :json }
       last_response.status.should == 200
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['instance'].class.should == Hash
     end
 
     def test_it_responses_to_html
-      do_request '/api/instances', {}, true, { :format => :html }
+      get_auth_url '/api/instances', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
-
-      do_request '/api/instances/inst1', {}, true, { :format => :html }
+      get_auth_url '/api/instances/inst1', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
     end
@@ -89,11 +88,10 @@ module DeltacloudUnitTest
       params = {
         :image_id => 'img1'
       }
-      header 'Accept', accept_header(:xml)
-      post '/api/instances', params, authenticate
+      post_url '/api/instances', params
       last_response.status.should == 201
       last_response.headers['Location'].should_not == nil
-      do_xml_request last_response.headers['Location'], {}, true
+      get_auth_url last_response.headers['Location'], {}
       (last_xml_response/'instance/name').should_not == nil
       add_created_instance (last_xml_response/'instance').first['id']
       test_instance_attributes(last_xml_response/'instance')
@@ -104,11 +102,10 @@ module DeltacloudUnitTest
         :image_id => 'img1',
         :name => "unit_test_instance1"
       }
-      header 'Accept', accept_header(:xml)
-      post '/api/instances', params, authenticate(:format => :xml)
+      post_url '/api/instances', params
       last_response.status.should == 201
       last_response.headers['Location'].should_not == nil
-      do_xml_request last_response.headers['Location'], {}, true
+      get_auth_url last_response.headers['Location'], {}
       (last_xml_response/'instance/name').text.should == 'unit_test_instance1'
       add_created_instance (last_xml_response/'instance').first['id']
       test_instance_attributes(last_xml_response/'instance')
@@ -120,11 +117,10 @@ module DeltacloudUnitTest
         :name => "unit_test_instance1",
         :hwp_id => "m1-xlarge"
       }
-      header 'Accept', accept_header(:xml)
-      post '/api/instances', params, authenticate(:format => :xml)
+      post_url '/api/instances', params
       last_response.status.should == 201
       last_response.headers['Location'].should_not == nil
-      do_xml_request last_response.headers['Location'], {}, true
+      get_auth_url last_response.headers['Location'], {}
       (last_xml_response/'instance/name').text.should == 'unit_test_instance1'
       (last_xml_response/'instance/hardware_profile').first['id'].should == 'm1-xlarge'
       add_created_instance (last_xml_response/'instance').first['id']
@@ -133,18 +129,18 @@ module DeltacloudUnitTest
 
     def test_it_z0_stop_and_start_instance
       $created_instances.each do |instance_id|
-        do_xml_request "/api/instances/#{instance_id}", {}, true
+        get_auth_url "/api/instances/#{instance_id}", {}
         stop_url = (last_xml_response/'actions/link[@rel="stop"]').first['href']
         stop_url.should_not == nil
-        post create_url(stop_url), { :format => 'xml' }, authenticate
+        post_url stop_url
         last_response.status.should == 200
         instance = Nokogiri::XML(last_response.body)
         test_instance_attributes(instance)
         (instance/'state').text.should == 'STOPPED'
-        do_xml_request "/api/instances/#{instance_id}", {}, true
+        get_auth_url "/api/instances/#{instance_id}", {}
         start_url = (last_xml_response/'actions/link[@rel="start"]').first['href']
         start_url.should_not == nil
-        post create_url(start_url), { :format => 'xml'}, authenticate
+        post_url start_url
         last_response.status.should == 200
         instance = Nokogiri::XML(last_response.body)
         test_instance_attributes(instance)
@@ -154,10 +150,10 @@ module DeltacloudUnitTest
 
     def test_z0_reboot_instance
       $created_instances.each do |instance_id|
-        do_xml_request "/api/instances/#{instance_id}", {}, true
+        get_auth_url "/api/instances/#{instance_id}", {}
         reboot_url = (last_xml_response/'actions/link[@rel="reboot"]').first['href']
         reboot_url.should_not == nil
-        post create_url(reboot_url), { :format => "xml"}, authenticate
+        post_url reboot_url
         last_response.status.should == 200
         instance = Nokogiri::XML(last_response.body)
         test_instance_attributes(instance)
@@ -167,10 +163,10 @@ module DeltacloudUnitTest
 
     def test_z1_stop_created_instances
       $created_instances.each do |instance_id|
-        do_xml_request "/api/instances/#{instance_id}", {}, true
+        get_auth_url "/api/instances/#{instance_id}", {}
         stop_url = (last_xml_response/'actions/link[@rel="stop"]').first['href']
         stop_url.should_not == nil
-        post create_url(stop_url), {}, authenticate
+        post_url stop_url, {}
         last_response.status.should == 200
         instance = Nokogiri::XML(last_response.body)
         test_instance_attributes(instance)
@@ -180,10 +176,10 @@ module DeltacloudUnitTest
 
     def test_z2_destroy_created_instances
       $created_instances.each do |instance_id|
-        do_xml_request "/api/instances/#{instance_id}", {}, true
+        get_auth_url "/api/instances/#{instance_id}", {}
         destroy_url = (last_xml_response/'actions/link[@rel="destroy"]').first['href']
         destroy_url.should_not == nil
-        delete create_url(destroy_url), {}, authenticate
+        delete_url destroy_url, {}
         last_response.status.should == 204
       end
     end
@@ -214,21 +210,21 @@ module DeltacloudUnitTest
       (instance/'image').size.should > 0
       (instance/'image').first['href'].should_not == ""
       (instance/'image').first['id'].should_not == ""
-      do_xml_request (instance/'image').first['href'], {}, true
+      get_auth_url (instance/'image').first['href'], {}
       (last_xml_response/'image').should_not == nil
       (last_xml_response/'image').first['href'] == (instance/'image').first['href']
 
       (instance/'realm').size.should > 0
       (instance/'realm').first['href'].should_not == ""
       (instance/'realm').first['id'].should_not == ""
-      do_xml_request (instance/'realm').first['href']
+      get_auth_url (instance/'realm').first['href']
       (last_xml_response/'realm').should_not == nil
       (last_xml_response/'realm').first['href'] == (instance/'realm').first['href']
 
       (instance/'hardware_profile').size.should > 0
       (instance/'hardware_profile').first['href'].should_not == ""
       (instance/'hardware_profile').first['id'].should_not == ""
-      do_xml_request (instance/'hardware_profile').first['href']
+      get_auth_url (instance/'hardware_profile').first['href']
       (last_xml_response/'hardware_profile').should_not == nil
       (last_xml_response/'hardware_profile').first['href'] == (instance/'hardware_profile').first['href']
     end

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/realms_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/realms_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/realms_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/realms_test.rb Wed Apr  6 09:21:39 2011
@@ -32,31 +32,31 @@ module DeltacloudUnitTest
     end
 
     def test_it_returns_realms
-      do_xml_request '/api/realms', {}, true
+      get_auth_url '/api/realms', {}
       (last_xml_response/'realms/realm').length.should > 0
     end
 
     def test_it_has_correct_attributes_set
-      do_xml_request '/api/realms', {}, true
+      get_auth_url '/api/realms', {}
       (last_xml_response/'realms/realm').each do |realm|
         realm.attributes.keys.sort.should == [ 'href', 'id' ]
       end
     end
 
     def test_us_has_correct_attributes
-      do_xml_request '/api/realms', {}, true
+      get_auth_url '/api/realms', {}
       realm = (last_xml_response/'realms/realm[@id="us"]')
       test_realm_attributes(realm)
     end
 
     def test_it_returns_valid_realm
-      do_xml_request '/api/realms/us', {}, true
+      get_auth_url '/api/realms/us', {}
       realm = (last_xml_response/'realm')
       test_realm_attributes(realm)
     end
 
     def test_it_has_unique_ids
-      do_xml_request '/api/realms', {}, true
+      get_auth_url '/api/realms', {}
       ids = []
       (last_xml_response/'realms/realm').each do |realm|
         ids << realm['id'].to_s
@@ -65,22 +65,20 @@ module DeltacloudUnitTest
     end
 
     def test_it_responses_to_json
-      do_request '/api/realms', {}, false, { :format => :json }
+      get_auth_url '/api/realms', {}, { :format => :json }
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['realms'].class.should == Array
-
-      do_request '/api/realms/us', {}, false, { :format => :json }
+      get_auth_url '/api/realms/us', {}, { :format => :json }
       last_response.status.should == 200
       JSON::parse(last_response.body).class.should == Hash
       JSON::parse(last_response.body)['realm'].class.should == Hash
     end
 
     def test_it_responses_to_html
-      do_request '/api/realms', {}, false, { :format => :html }
+      get_auth_url '/api/realms', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
-
-      do_request '/api/realms/us', {}, false, { :format => :html }
+      get_auth_url '/api/realms/us', {}, { :format => :html }
       last_response.status.should == 200
       Nokogiri::HTML(last_response.body).search('html').first.name.should == 'html'
     end

Modified: incubator/deltacloud/trunk/server/tests/drivers/rackspace/api_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/api_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/api_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/api_test.rb Wed Apr  6 09:21:39 2011
@@ -11,13 +11,13 @@ module RackspaceTest
     end
 
     def test_01_it_returns_entry_points
-      do_xml_request '/api;driver=rackspace/?force_auth=1', {}, true
+      get_auth_url '/api;driver=rackspace/?force_auth=1'
       (last_xml_response/'/api').first[:driver].should == 'rackspace'
       (last_xml_response/'/api/link').length.should > 0
     end
 
     def test_02_it_has_rackspace_features
-      do_xml_request '/api;driver=rackspace'
+      get_url '/api;driver=rackspace'
       features = (last_xml_response/'/api/link[@rel="instances"]/feature').collect { |f| f[:name] }
       features.include?('user_name').should == true
       features.include?('authentication_password').should == true
@@ -26,7 +26,7 @@ module RackspaceTest
     end
 
     def test_03_it_has_rackspace_collections
-      do_xml_request '/api;driver=rackspace'
+      get_url '/api;driver=rackspace'
       collections = (last_xml_response/'/api/link').collect { |f| f[:rel] }
       collections.include?('instance_states').should == true
       collections.include?('instances').should == true
@@ -34,7 +34,7 @@ module RackspaceTest
       collections.include?('buckets').should == true
       collections.include?('realms').should == true
       collections.include?('hardware_profiles').should == true
-      collections.length.should == 6
+      collections.length.should == 7
     end
 
   end

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-1eb29b4121fee923d3d619fd8f7c6af68aae0ef4.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-1eb29b4121fee923d3d619fd8f7c6af68aae0ef4.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-1eb29b4121fee923d3d619fd8f7c6af68aae0ef4.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-1eb29b4121fee923d3d619fd8f7c6af68aae0ef4.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,77 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:00 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:00 GMT
+      x-varnish: 
+      - "437922094"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:02 GMT
+      content-length: 
+      - "242"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"BUILD\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2ee5580739f1b704a8b4a5e453641be70c37dac1.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2ee5580739f1b704a8b4a5e453641be70c37dac1.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2ee5580739f1b704a8b4a5e453641be70c37dac1.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2ee5580739f1b704a8b4a5e453641be70c37dac1.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,77 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:08 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:00 GMT
+      x-varnish: 
+      - "437922607"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:09 GMT
+      content-length: 
+      - "242"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"BUILD\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2fcfc33bdaf35e34ea8cd309f35c48ba675afa8b.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2fcfc33bdaf35e34ea8cd309f35c48ba675afa8b.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2fcfc33bdaf35e34ea8cd309f35c48ba675afa8b.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-2fcfc33bdaf35e34ea8cd309f35c48ba675afa8b.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:33 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/flavors/detail
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 203
+      message: OK
+    headers: 
+      last-modified: 
+      - Tue, 18 Mar 2008 17:54:15 GMT
+      x-varnish: 
+      - 437918347 437909592
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:34 GMT
+      content-length: 
+      - "368"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "102"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /flavors
+    body: "{\"flavors\":[{\"id\":1,\"ram\":256,\"disk\":10,\"name\":\"256 server\"},{\"id\":2,\"ram\":512,\"disk\":20,\"name\":\"512 server\"},{\"id\":3,\"ram\":1024,\"disk\":40,\"name\":\"1GB server\"},{\"id\":4,\"ram\":2048,\"disk\":80,\"name\":\"2GB server\"},{\"id\":5,\"ram\":4096,\"disk\":160,\"name\":\"4GB server\"},{\"id\":6,\"ram\":8192,\"disk\":320,\"name\":\"8GB server\"},{\"id\":7,\"ram\":15872,\"disk\":620,\"name\":\"15.5GB server\"}]}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-33788dfa9cf3ec4e37e4057bca0143591e54788e.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-33788dfa9cf3ec4e37e4057bca0143591e54788e.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-33788dfa9cf3ec4e37e4057bca0143591e54788e.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-33788dfa9cf3ec4e37e4057bca0143591e54788e.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,75 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:38:18 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722338
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 404
+      message: Not Found
+    headers: 
+      x-varnish: 
+      - "437934866"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:38:19 GMT
+      content-length: 
+      - "129"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"itemNotFound\":{\"message\":\"Not Found\",\"details\":\"com.rackspace.cloud.service.servers.ItemNotFoundFault:  Not Found\",\"code\":404}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-48f898a80864f048c98b231819b670ef2024c4b4.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-48f898a80864f048c98b231819b670ef2024c4b4.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-48f898a80864f048c98b231819b670ef2024c4b4.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-48f898a80864f048c98b231819b670ef2024c4b4.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:46 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722338
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:44 GMT
+      x-varnish: 
+      - "437926725"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:47 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722338
+    body: "{\"server\":{\"progress\":100,\"id\":722338,\"imageId\":71,\"flavorId\":2,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114354602002011\",\"hostId\":\"9d13306835530e8b384b0751b2bbb51b\",\"addresses\":{\"public\":[\"50.56.108.136\"],\"private\":[\"10.181.175.131\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6d10f489e397ce35ebc6a3afb0622a2ec6f32e8a.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6d10f489e397ce35ebc6a3afb0622a2ec6f32e8a.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6d10f489e397ce35ebc6a3afb0622a2ec6f32e8a.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6d10f489e397ce35ebc6a3afb0622a2ec6f32e8a.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:30 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:26 GMT
+      x-varnish: 
+      - "437924330"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:32 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722336
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6ecaf5e25b747645e181d79e55f08a6bac5bd1c3.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6ecaf5e25b747645e181d79e55f08a6bac5bd1c3.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6ecaf5e25b747645e181d79e55f08a6bac5bd1c3.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-6ecaf5e25b747645e181d79e55f08a6bac5bd1c3.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,77 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:53 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:35:47 GMT
+      x-varnish: 
+      - "437921409"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:54 GMT
+      content-length: 
+      - "240"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":0,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"BUILD\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-70db02f23c658bccd5d3e66781f98b26ab4107ca.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-70db02f23c658bccd5d3e66781f98b26ab4107ca.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-70db02f23c658bccd5d3e66781f98b26ab4107ca.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-70db02f23c658bccd5d3e66781f98b26ab4107ca.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:43 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722338
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:44 GMT
+      x-varnish: 
+      - "437926208"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:45 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722338
+    body: "{\"server\":{\"progress\":100,\"id\":722338,\"imageId\":71,\"flavorId\":2,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114354602002011\",\"hostId\":\"9d13306835530e8b384b0751b2bbb51b\",\"addresses\":{\"public\":[\"50.56.108.136\"],\"private\":[\"10.181.175.131\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-733e8ec18a1bd16ed292e9185e04835a7c1621db.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-733e8ec18a1bd16ed292e9185e04835a7c1621db.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-733e8ec18a1bd16ed292e9185e04835a7c1621db.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-733e8ec18a1bd16ed292e9185e04835a7c1621db.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:31 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/flavors/detail
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 203
+      message: OK
+    headers: 
+      last-modified: 
+      - Tue, 18 Mar 2008 17:54:15 GMT
+      x-varnish: 
+      - 437917767 437909592
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:32 GMT
+      content-length: 
+      - "368"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "100"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /flavors
+    body: "{\"flavors\":[{\"id\":1,\"ram\":256,\"disk\":10,\"name\":\"256 server\"},{\"id\":2,\"ram\":512,\"disk\":20,\"name\":\"512 server\"},{\"id\":3,\"ram\":1024,\"disk\":40,\"name\":\"1GB server\"},{\"id\":4,\"ram\":2048,\"disk\":80,\"name\":\"2GB server\"},{\"id\":5,\"ram\":4096,\"disk\":160,\"name\":\"4GB server\"},{\"id\":6,\"ram\":8192,\"disk\":320,\"name\":\"8GB server\"},{\"id\":7,\"ram\":15872,\"disk\":620,\"name\":\"15.5GB server\"}]}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-798577ad678724e877a068b645f4575981761625.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-798577ad678724e877a068b645f4575981761625.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-798577ad678724e877a068b645f4575981761625.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-798577ad678724e877a068b645f4575981761625.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,77 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:36 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722338
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:08 GMT
+      x-varnish: 
+      - "437925562"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:37 GMT
+      content-length: 
+      - "242"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":100,\"id\":722338,\"imageId\":71,\"flavorId\":2,\"status\":\"BUILD\",\"name\":\"ThuMar3114354602002011\",\"hostId\":\"9d13306835530e8b384b0751b2bbb51b\",\"addresses\":{\"public\":[\"50.56.108.136\"],\"private\":[\"10.181.175.131\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-8fa5ace7e3bf48c86e82dcf78ec71baee0da8f5a.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-8fa5ace7e3bf48c86e82dcf78ec71baee0da8f5a.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-8fa5ace7e3bf48c86e82dcf78ec71baee0da8f5a.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-8fa5ace7e3bf48c86e82dcf78ec71baee0da8f5a.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:30 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/flavors/detail
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 203
+      message: OK
+    headers: 
+      last-modified: 
+      - Tue, 18 Mar 2008 17:54:15 GMT
+      x-varnish: 
+      - 437917622 437909592
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:30 GMT
+      content-length: 
+      - "368"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "98"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /flavors
+    body: "{\"flavors\":[{\"id\":1,\"ram\":256,\"disk\":10,\"name\":\"256 server\"},{\"id\":2,\"ram\":512,\"disk\":20,\"name\":\"512 server\"},{\"id\":3,\"ram\":1024,\"disk\":40,\"name\":\"1GB server\"},{\"id\":4,\"ram\":2048,\"disk\":80,\"name\":\"2GB server\"},{\"id\":5,\"ram\":4096,\"disk\":160,\"name\":\"4GB server\"},{\"id\":6,\"ram\":8192,\"disk\":320,\"name\":\"8GB server\"},{\"id\":7,\"ram\":15872,\"disk\":620,\"name\":\"15.5GB server\"}]}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9c33dc09276022f9e3cfbc9d76d7ae0ff567d99c.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9c33dc09276022f9e3cfbc9d76d7ae0ff567d99c.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9c33dc09276022f9e3cfbc9d76d7ae0ff567d99c.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9c33dc09276022f9e3cfbc9d76d7ae0ff567d99c.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:23 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:24 GMT
+      x-varnish: 
+      - "437923937"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:24 GMT
+      content-length: 
+      - "244"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722336
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"UNKNOWN\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9ce8c09907082114e9e5986915d806eeadcbf7cd.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9ce8c09907082114e9e5986915d806eeadcbf7cd.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9ce8c09907082114e9e5986915d806eeadcbf7cd.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-9ce8c09907082114e9e5986915d806eeadcbf7cd.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:37 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/images/detail
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 203
+      message: OK
+    headers: 
+      last-modified: 
+      - Wed, 16 Mar 2011 16:37:05 GMT
+      x-varnish: 
+      - 437918579 437909890
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:38 GMT
+      content-length: 
+      - "2460"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "98"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/images
+    body: "{\"images\":[{\"id\":58,\"status\":\"ACTIVE\",\"updated\":\"2010-09-17T07:19:20-05:00\",\"name\":\"Windows Server 2008 R2 x64 - MSSQL2K8R2\"},{\"id\":71,\"status\":\"ACTIVE\",\"updated\":\"2010-11-13T17:00:35-06:00\",\"name\":\"Fedora 14\"},{\"id\":62,\"status\":\"ACTIVE\",\"updated\":\"2011-03-16T11:37:05-05:00\",\"name\":\"Red Hat Enterprise Linux 5.5\"},{\"id\":29,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:07:32-06:00\",\"name\":\"Windows Server 2003 R2 SP2 x86\"},{\"id\":40,\"status\":\"ACTIVE\",\"updated\":\"2010-10-28T11:40:20-05:00\",\"name\":\"Oracle EL Server Release 5 Update 4\"},{\"id\":23,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:05:53-06:00\",\"name\":\"Windows Server 2003 R2 SP2 x64\"},{\"id\":19,\"status\":\"ACTIVE\",\"updated\":\"2009-12-15T15:43:39-06:00\",\"name\":\"Gentoo 10.1\"},{\"id\":31,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:07:44-06:00\",\"name\":\"Windows Server 2008 SP2 x86\"},{\"id\":57,\"status\":\"ACTIVE\",\"u
 pdated\":\"2010-09-17T07:16:25-05:00\",\"name\":\"Windows Server 2008 SP2 x64 - MSSQL2K8R2\"},{\"id\":14362,\"status\":\"ACTIVE\",\"updated\":\"2009-11-06T05:09:40-06:00\",\"name\":\"Ubuntu 9.10 (karmic)\"},{\"id\":49,\"status\":\"ACTIVE\",\"updated\":\"2010-05-04T08:58:18-05:00\",\"name\":\"Ubuntu 10.04 LTS (lucid)\"},{\"id\":55,\"status\":\"ACTIVE\",\"updated\":\"2010-06-29T05:21:55-05:00\",\"name\":\"Arch 2010.05\"},{\"id\":41,\"status\":\"ACTIVE\",\"updated\":\"2010-09-20T09:08:35-05:00\",\"name\":\"Oracle EL JeOS Release 5 Update 3\"},{\"id\":10,\"status\":\"ACTIVE\",\"updated\":\"2009-08-26T14:59:54-05:00\",\"name\":\"Ubuntu 8.04.2 LTS (hardy)\"},{\"id\":187811,\"status\":\"ACTIVE\",\"updated\":\"2009-12-16T01:02:17-06:00\",\"name\":\"CentOS 5.4\"},{\"id\":53,\"status\":\"ACTIVE\",\"updated\":\"2010-06-27T20:13:08-05:00\",\"name\":\"Fedora 13\"},{\"id\":24,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:07:04-06:00\",\"name\":\"Windows Server 2008 SP2 x64\"},{\"id\":
 51,\"status\":\"ACTIVE\",\"updated\":\"2010-05-21T00:01:43-05:00\",\"name\":\"CentOS 5.5\"},{\"id\":69,\"status\":\"ACTIVE\",\"updated\":\"2010-10-21T15:36:29-05:00\",\"name\":\"Ubuntu 10.10 (maverick)\"},{\"id\":28,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:07:17-06:00\",\"name\":\"Windows Server 2008 R2 x64\"},{\"id\":56,\"status\":\"ACTIVE\",\"updated\":\"2010-09-17T07:12:56-05:00\",\"name\":\"Windows Server 2008 SP2 x86 - MSSQL2K8R2\"},{\"id\":14,\"status\":\"ACTIVE\",\"updated\":\"2009-12-15T15:37:22-06:00\",\"name\":\"Red Hat Enterprise Linux 5.4\"},{\"id\":4,\"status\":\"ACTIVE\",\"updated\":\"2009-08-26T14:59:52-05:00\",\"name\":\"Debian 5.0 (lenny)\"},{\"progress\":100,\"id\":8766576,\"status\":\"ACTIVE\",\"created\":\"2011-02-28T07:40:50-06:00\",\"updated\":\"2011-03-01T06:33:53-06:00\",\"name\":\"Test11\"}]}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b0c6d16b98a5f529998b16a0502ffaa883c2d5cc.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b0c6d16b98a5f529998b16a0502ffaa883c2d5cc.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b0c6d16b98a5f529998b16a0502ffaa883c2d5cc.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b0c6d16b98a5f529998b16a0502ffaa883c2d5cc.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,75 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:37:59 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 404
+      message: Not Found
+    headers: 
+      x-varnish: 
+      - "437933406"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:38:00 GMT
+      content-length: 
+      - "129"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"itemNotFound\":{\"message\":\"Not Found\",\"details\":\"com.rackspace.cloud.service.servers.ItemNotFoundFault:  Not Found\",\"code\":404}}"
+    http_version: "1.1"