[ARVADOS] created: 40c18d4cebdf21fe9999214fa3e147cecd1c5975
git at public.curoverse.com
git at public.curoverse.com
Thu Jan 7 09:59:16 EST 2016
at 40c18d4cebdf21fe9999214fa3e147cecd1c5975 (commit)
commit 40c18d4cebdf21fe9999214fa3e147cecd1c5975
Author: radhika <radhika at curoverse.com>
Date: Thu Jan 7 09:57:36 2016 -0500
7817: Added a session cookie simulation test in appliction_controller_test.
diff --git a/apps/workbench/test/controllers/application_controller_test.rb b/apps/workbench/test/controllers/application_controller_test.rb
index ef2a989..316ee98 100644
--- a/apps/workbench/test/controllers/application_controller_test.rb
+++ b/apps/workbench/test/controllers/application_controller_test.rb
@@ -479,4 +479,14 @@ class ApplicationControllerTest < ActionController::TestCase
end
end
end
+
+ test "session cookie simulation with expired token" do
+ session[:arvados_api_token] = api_fixture('api_client_authorizations')['expired']['token']
+
+ @controller = CollectionsController.new
+ get(:index)
+
+ assert_response 302
+ assert_match /welcome/, @response.redirect_url
+ end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list