Module DeltacloudTestCommon
In: tests/common.rb

Methods

Public Instance methods

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

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 => ’…’}

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 ;-)

This helper will automatically convert output from method above to Nokogiri XML object

Check if given URI require authentication

[Validate]