[arvados] updated: 2.7.0-6263-g75cf688241

git repository hosting git at public.arvados.org
Fri Mar 29 20:39:40 UTC 2024


Summary of changes:
 lib/controller/integration_test.go                 | 81 ++++++++++++++++++----
 .../api/app/models/api_client_authorization.rb     |  4 ++
 services/api/test/integration/remote_user_test.rb  | 34 ++++++++-
 3 files changed, 101 insertions(+), 18 deletions(-)

       via  75cf6882418dc594e3ada42e433ccccd25435cac (commit)
       via  deb438266566154f55d143171741bc3aa9279b45 (commit)
       via  3c210fe96edb1c345850e1eb35c93f98d205f843 (commit)
       via  9e01274aa67960cc532a65fbccd540c4b02ad4e5 (commit)
       via  342d41c1745b40ef78739fe9599be11f6dc529c5 (commit)
      from  1a7b50a8cbb56342845df954cbb07c16c2e5722c (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 75cf6882418dc594e3ada42e433ccccd25435cac
Merge: 1a7b50a8cb deb4382665
Author: Tom Clegg <tom at curii.com>
Date:   Fri Mar 29 16:39:09 2024 -0400

    Merge branch '21617-fed-content'
    
    fixes #21617
    fixes #21533
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>


commit deb438266566154f55d143171741bc3aa9279b45
Author: Tom Clegg <tom at curii.com>
Date:   Fri Mar 29 16:37:43 2024 -0400

    21617: Split test cases.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/services/api/test/integration/remote_user_test.rb b/services/api/test/integration/remote_user_test.rb
index 95d240e79b..1a67522f4d 100644
--- a/services/api/test/integration/remote_user_test.rb
+++ b/services/api/test/integration/remote_user_test.rb
@@ -594,22 +594,34 @@ class RemoteUsersTest < ActionDispatch::IntegrationTest
   end
 
   [400, 401, 403, 422, 500, 502, 503].each do |status|
-    test "handle #{status} response from getting remote token" do
+    test "handle #{status} response when checking remote-provided v2 token" do
       @stub_token_status = status
       get "/arvados/v1/users/#{@stub_content[:uuid]}",
           params: {format: "json"},
           headers: auth(remote: "zbbbb")
       assert_response(status < 500 ? 401 : status)
+    end
+
+    test "handle #{status} response when checking remote-provided v2 token at anonymously accessible endpoint" do
+      @stub_token_status = status
       get "/arvados/v1/keep_services/accessible",
           params: {format: "json"},
           headers: auth(remote: "zbbbb")
       assert_response(status < 500 ? :success : status)
+    end
 
+    test "handle #{status} response when checking token issued by login cluster" do
+      @stub_token_status = status
       Rails.configuration.Login.LoginCluster = "zbbbb"
       get "/arvados/v1/users/current",
           params: {format: "json"},
           headers: {'HTTP_AUTHORIZATION' => "Bearer badtoken"}
       assert_response(status < 500 ? 401 : status)
+    end
+
+    test "handle #{status} response when checking token issued by login cluster at anonymously accessible endpoint" do
+      @stub_token_status = status
+      Rails.configuration.Login.LoginCluster = "zbbbb"
       get "/arvados/v1/keep_services/accessible",
           params: {format: "json"},
           headers: {'HTTP_AUTHORIZATION' => "Bearer badtoken"}

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list