X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d7fdbbab1f67d696906afe7a6e17e17997e1c064..ec75fda0fc2c86a77d831dcd7962ece7a2d6ae6d:/apps/workbench/test/functional/projects_controller_test.rb diff --git a/apps/workbench/test/functional/projects_controller_test.rb b/apps/workbench/test/functional/projects_controller_test.rb index 8eb0cdcf04..93f794d900 100644 --- a/apps/workbench/test/functional/projects_controller_test.rb +++ b/apps/workbench/test/functional/projects_controller_test.rb @@ -97,6 +97,18 @@ class ProjectsControllerTest < ActionController::TestCase assert user_can_manage(:subproject_admin, "asubproject") end + test "detect ownership loop in project breadcrumbs" do + # This test has an arbitrary time limit -- otherwise we'd just sit + # here forever instead of reporting that the loop was not + # detected. The test passes quickly, but fails slowly. + Timeout::timeout 10 do + get(:show, + { id: api_fixture("groups")["project_owns_itself"]["uuid"] }, + session_for(:admin)) + end + assert_response :success + end + test "project admin can remove items from the project" do coll_key = "collection_to_remove_from_subproject" coll_uuid = api_fixture("collections")[coll_key]["uuid"]