[arvados] updated: 2.1.0-3213-g9446f9684

git repository hosting git at public.arvados.org
Fri Dec 16 21:09:40 UTC 2022


Summary of changes:
 apps/workbench/test/controllers/users_controller_test.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

       via  9446f96840126285dcdda931abbd8a3ca4d9c77f (commit)
      from  8608a75029e1b29c0eacf53532baded917d73a96 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 9446f96840126285dcdda931abbd8a3ca4d9c77f
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Fri Dec 16 16:08:26 2022 -0500

    19880: Fix tests
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/apps/workbench/test/controllers/users_controller_test.rb b/apps/workbench/test/controllers/users_controller_test.rb
index 742fe6b13..f1fc58875 100644
--- a/apps/workbench/test/controllers/users_controller_test.rb
+++ b/apps/workbench/test/controllers/users_controller_test.rb
@@ -14,17 +14,18 @@ class UsersControllerTest < ActionController::TestCase
   test "ignore previously valid token (for deleted user), don't crash" do
     get :activity, params: {}, session: session_for(:valid_token_deleted_user)
     assert_response :redirect
-    assert_match /^#{Rails.configuration.Services.Controller.ExternalURL}\/login/, @response.redirect_url
+    assert_match /^#{Rails.configuration.Services.Workbench1.ExternalURL}users\/welcome/, @response.redirect_url
     assert_nil assigns(:my_jobs)
     assert_nil assigns(:my_ssh_keys)
   end
 
   test "expired token redirects to api server login" do
+    assert Rails.configuration.Login.Test.Enable
     get :show, params: {
       id: api_fixture('users')['active']['uuid']
     }, session: session_for(:expired_trustedclient)
     assert_response :redirect
-    assert_match /^#{Rails.configuration.Services.Controller.ExternalURL}\/login/, @response.redirect_url
+    assert_match /^#{Rails.configuration.Services.Workbench1.ExternalURL}users\/welcome/, @response.redirect_url
     assert_nil assigns(:my_jobs)
     assert_nil assigns(:my_ssh_keys)
   end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list