From 6f00b04f38b4732e387db0e0d0be9e11b584380c Mon Sep 17 00:00:00 2001 From: Michael Hale Date: Tue, 8 Feb 2011 21:47:05 -0500 Subject: [PATCH] change API-Token to Auth-Token --- lib/fog/dns/parsers/dynect/session.rb | 2 +- tests/dns/requests/dynect/dns_tests.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/dns/parsers/dynect/session.rb b/lib/fog/dns/parsers/dynect/session.rb index 2c8e6365e..fd5b72de5 100644 --- a/lib/fog/dns/parsers/dynect/session.rb +++ b/lib/fog/dns/parsers/dynect/session.rb @@ -12,7 +12,7 @@ module Fog def end_element(name) case name when 'token' - @response['API-Token'] = @value + @response['Auth-Token'] = @value when 'version' @response['API-Version'] = @value end diff --git a/tests/dns/requests/dynect/dns_tests.rb b/tests/dns/requests/dynect/dns_tests.rb index 5e59d6b51..8f04dd63b 100644 --- a/tests/dns/requests/dynect/dns_tests.rb +++ b/tests/dns/requests/dynect/dns_tests.rb @@ -2,7 +2,7 @@ Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do tests( 'success') do test "start api session" do response = Dynect[:dns].session - returns(true) { response.body['API-Token'] =~ /.+=$/ && true } + returns(true) { response.body['Auth-Token'] =~ /.+=$/ && true } returns(true) { response.body['API-Version'] == "2.3.1" } returns(true) { response.status == 200 } end