Sha256: 5abb828a208cf91277c6a653b017a397fd2903387a149dfd1a57fefed3fdeea9
Contents?: true
Size: 1.06 KB
Versions: 33
Compression:
Stored size: 1.06 KB
Contents
module Fog module DNS class Dynect class Real def post_session request( :expects => 200, :idempotent => true, :method => :post, :path => "Session", :body => Fog::JSON.encode({ :customer_name => @dynect_customer, :user_name => @dynect_username, :password => @dynect_password }) ) end end class Mock def post_session response = Excon::Response.new response.status = 200 response.body = { "status" => "success", "data" => { "token" => auth_token, "version" => Fog::Dynect::Mock.version }, "job_id" => Fog::Dynect::Mock.job_id, "msgs"=>[{ "INFO"=>"login: Login successful", "SOURCE"=>"BLL", "ERR_CD"=>nil, "LVL"=>"INFO" }] } response end end end end end
Version data entries
33 entries across 31 versions & 6 rubygems