# File tests/common.rb, line 120 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)) if last_response.status.to_s =~ /5(\d{2})/ puts "============= [ ERROR ] ================" puts last_response.inspect puts "========================================" end end end