X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8c66c387ddeb1fe5cc19f31fc0e4f24ed778b1f8..1013c7cee5478538901fd9ba5fc0fb2ce30f6422:/services/api/test/functional/arvados/v1/repositories_controller_test.rb diff --git a/services/api/test/functional/arvados/v1/repositories_controller_test.rb b/services/api/test/functional/arvados/v1/repositories_controller_test.rb index 1d4d88f8bf..f6280ec4d6 100644 --- a/services/api/test/functional/arvados/v1/repositories_controller_test.rb +++ b/services/api/test/functional/arvados/v1/repositories_controller_test.rb @@ -1,4 +1,15 @@ require 'test_helper' class Arvados::V1::RepositoriesControllerTest < ActionController::TestCase + test "should get_all_logins with admin token" do + authorize_with :admin + get :get_all_permissions + assert_response :success + end + + test "should get_all_logins with non-admin token" do + authorize_with :active + get :get_all_permissions + assert_response 403 + end end