[ARVADOS] updated: 2.1.0-1558-gc84e8e614

Git user git at public.arvados.org
Thu Oct 28 18:11:08 UTC 2021


Summary of changes:
 services/api/test/integration/users_test.rb | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

       via  c84e8e6141220ff088f489cb1be3af699b5398cf (commit)
      from  3060f30851f5e6a8127cd1a057e8aa7581632567 (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 c84e8e6141220ff088f489cb1be3af699b5398cf
Author: Ward Vandewege <ward at curii.com>
Date:   Thu Oct 28 14:10:40 2021 -0400

    Another rails test fix.
    
    refs #18183
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/services/api/test/integration/users_test.rb b/services/api/test/integration/users_test.rb
index 81168e15b..f3e787e3d 100644
--- a/services/api/test/integration/users_test.rb
+++ b/services/api/test/integration/users_test.rb
@@ -434,20 +434,26 @@ class UsersTest < ActionDispatch::IntegrationTest
         params: {},
         headers: {"HTTP_AUTHORIZATION" => "Bearer #{token}"})
     assert_response(:success)
-    user = json_response
-    assert_equal true, user['is_active']
+    userJSON = json_response
+    assert_equal true, userJSON['is_active']
 
     post("/arvados/v1/users/#{user['uuid']}/unsetup",
         params: {},
         headers: auth(:admin))
     assert_response :success
 
+    # Need to get a new token, the old one was invalidated by the unsetup call
+    act_as_system_user do
+      ap = ApiClientAuthorization.create!(user: user, api_client_id: 0)
+      token = ap.api_token
+    end
+
     get("/arvados/v1/users/#{user['uuid']}",
         params: {},
         headers: {"HTTP_AUTHORIZATION" => "Bearer #{token}"})
     assert_response(:success)
-    user = json_response
-    assert_equal false, user['is_active']
+    userJSON = json_response
+    assert_equal false, userJSON['is_active']
 
     post("/arvados/v1/users/#{user['uuid']}/activate",
         params: {},

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list