1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

change API-Token to Auth-Token

This commit is contained in:
Michael Hale 2011-02-08 21:47:05 -05:00 committed by geemus
parent 8c0ee52e04
commit 6f00b04f38
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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