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:
parent
b72e5f73f2
commit
9e9b663042
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue