Merge branch '2291-new-keepd-read-blocks' (fixes #2291)
[arvados.git] / services / api / test / functional / arvados / v1 / repositories_controller_test.rb
index 1d4d88f8bfecb1a492bc74bb84664b1cf61be2aa..f6280ec4d62608ac15d19d413881235e956f3cb7 100644 (file)
@@ -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