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

Tests for reauthentication in CDN

This commit is contained in:
Jon Holt 2013-08-07 14:35:12 -06:00
parent b72e5f73f2
commit 9e9b663042

View file

@ -96,6 +96,15 @@ Shindo.tests('Fog::CDN::Rackspace', ['rackspace']) do
end
end
tests('reauthentication') do
pending if Fog.mocking?
@service = Fog::CDN::Rackspace.new
returns(true, "auth token populated") { !@service.send(:auth_token).nil? }
@service.instance_variable_set("@auth_token", "bad-token")
returns(204) { @service.head_containers.status }
end
pending if Fog.mocking?
def container_meta_attributes