From 9e9b66304262fe6c53a5ecf552e9e3f7b2388376 Mon Sep 17 00:00:00 2001 From: Jon Holt Date: Wed, 7 Aug 2013 14:35:12 -0600 Subject: [PATCH] Tests for reauthentication in CDN --- tests/rackspace/cdn_tests.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/rackspace/cdn_tests.rb b/tests/rackspace/cdn_tests.rb index c39742106..1cd948bff 100644 --- a/tests/rackspace/cdn_tests.rb +++ b/tests/rackspace/cdn_tests.rb @@ -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