X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/716ee800f3bfcffe19d091c3f5f30d826e69c72a..83a4e42fb15030a9108e76dcf01a1a7d6c14cda5:/apps/workbench/test/controllers/work_units_controller_test.rb diff --git a/apps/workbench/test/controllers/work_units_controller_test.rb b/apps/workbench/test/controllers/work_units_controller_test.rb index ee18861c92..12e0271260 100644 --- a/apps/workbench/test/controllers/work_units_controller_test.rb +++ b/apps/workbench/test/controllers/work_units_controller_test.rb @@ -65,27 +65,4 @@ class WorkUnitsControllerTest < ActionController::TestCase }] get :index, encoded_params, session_for(:active) end - - [ - [Job, 'active', 'running_job_with_components', '/jobs/zzzzz-8i9sb-jyq01m7in1jlofj#Log'], - [PipelineInstance, 'active', 'pipeline_in_running_state', '/jobs/zzzzz-8i9sb-pshmckwoma9plh7#Log'], - [PipelineInstance, nil, 'pipeline_in_publicly_accessible_project_but_other_objects_elsewhere', 'Log unavailable'], - ].each do |type, token, fixture, log_link| - test "link_to_log for #{fixture} for #{token}" do - use_token 'admin' - obj = find_fixture(type, fixture) - - @controller = if type == Job then JobsController.new else PipelineInstancesController.new end - - if token - get :show, {id: obj['uuid']}, session_for(token) - else - Rails.configuration.anonymous_user_token = - api_fixture("api_client_authorizations", "anonymous", "api_token") - get :show, {id: obj['uuid']} - end - - assert_includes @response.body, log_link - end - end end