Merge branch '20257-http-import' refs #20257
[arvados.git] / apps / workbench / test / controllers / containers_controller_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'test_helper'
6
7 class ContainersControllerTest < ActionController::TestCase
8   test "visit container log" do
9     use_token 'active'
10
11     container = api_fixture('containers')['completed']
12
13     get :show,
14         params: {id: container['uuid'], tab_pane: 'Log'},
15         session: session_for(:active)
16     assert_response :success
17
18     assert_select "a", {:href=>"/collections/#{container['log']}", :text=>"Download the log"}
19     assert_select "a", {:href=>"#{container['log']}/baz"}
20   end
21 end