X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/eff37344f3cecd5aed259c9852aca4bdcdfb6922..593e8c87cde8ea027ba2e321930a5243198a9f66:/apps/workbench/test/controllers/users_controller_test.rb diff --git a/apps/workbench/test/controllers/users_controller_test.rb b/apps/workbench/test/controllers/users_controller_test.rb index ebec4a3d22..c1436da454 100644 --- a/apps/workbench/test/controllers/users_controller_test.rb +++ b/apps/workbench/test/controllers/users_controller_test.rb @@ -41,6 +41,17 @@ class UsersControllerTest < ActionController::TestCase assert_includes editables, false, "should have a readonly repository" end + test "show repositories lists linked as well as owned repositories" do + get :manage_account, {}, session_for(:active) + assert_response :success + repos = assigns(:my_repositories) + assert repos + repo_writables = assigns(:repo_writable) + assert_not_empty repo_writables, "repo_writables should not be empty" + assert_includes repo_writables, api_fixture('repositories')['repository4']['uuid'] # writable by active + assert_includes repo_writables, api_fixture('repositories')['repository2']['uuid'] # owned by active + end + test "request shell access" do user = api_fixture('users')['spectator']