From: Lucas Di Pentima Date: Thu, 10 Sep 2020 14:11:33 +0000 (-0300) Subject: 16736: Enhances tests about login issued tokens. X-Git-Tag: 2.2.0~119^2~7 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/9af58889fa57b1d81065aa3f202dac00767afb3a 16736: Enhances tests about login issued tokens. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/services/api/test/functional/user_sessions_controller_test.rb b/services/api/test/functional/user_sessions_controller_test.rb index 129464cf1c..1f91968932 100644 --- a/services/api/test/functional/user_sessions_controller_test.rb +++ b/services/api/test/functional/user_sessions_controller_test.rb @@ -30,6 +30,7 @@ class UserSessionsControllerTest < ActionController::TestCase authorize_with :inactive api_client_page = 'http://client.example.com/home' get :login, params: {return_to: api_client_page} + assert_response :redirect assert_not_nil assigns(:api_client) assert_nil assigns(:api_client_auth).expires_at end @@ -40,6 +41,7 @@ class UserSessionsControllerTest < ActionController::TestCase authorize_with :inactive api_client_page = 'http://client.example.com/home' get :login, params: {return_to: api_client_page} + assert_response :redirect assert_not_nil assigns(:api_client) api_client_auth = assigns(:api_client_auth) assert_in_delta(api_client_auth.expires_at,