tests/rackspace/databases_tests.rb in fog-1.12.1 vs tests/rackspace/databases_tests.rb in fog-1.13.0
- old
+ new
@@ -100,9 +100,18 @@
returns(true, "auth token populated") { !@service.send(:auth_token).nil? }
returns(true, "uses custom endpoint") { (@service.instance_variable_get("@uri").host =~ /my-custom-endpoint\.com/) != nil }
end
end
+ tests('reauthentication') do
+ pending if Fog.mocking?
+
+ @service = Fog::Rackspace::Databases.new
+ returns(true, "auth token populated") { !@service.send(:auth_token).nil? }
+ @service.instance_variable_set("@auth_token", "bad_token")
+ returns(200) { @service.list_flavors.status }
+ end
+
@service = Fog::Rackspace::Databases.new
tests('#flavors').succeeds do
data = @service.flavors
returns(true) { data.is_a? Array }