projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
14287: Merge branch 'master' into 14287-federated-list
[arvados.git]
/
apps
/
workbench
/
test
/
integration
/
collections_test.rb
diff --git
a/apps/workbench/test/integration/collections_test.rb
b/apps/workbench/test/integration/collections_test.rb
index 443130a4a92c60cd6a46a4f4ca749d9712a5a7f9..6dd3c526968f3f574ee4b5fcba5746f78fe57a5e 100644
(file)
--- a/
apps/workbench/test/integration/collections_test.rb
+++ b/
apps/workbench/test/integration/collections_test.rb
@@
-57,7
+57,7
@@
class CollectionsTest < ActionDispatch::IntegrationTest
test "can download an entire collection with a reader token" do
use_keep_web_config
test "can download an entire collection with a reader token" do
use_keep_web_config
- token = api_
fixture('api_client_authorizations')['active']['api_token']
+ token = api_
token('active')
data = "foo\nfile\n"
datablock = `echo -n #{data.shellescape} | ARVADOS_API_TOKEN=#{token.shellescape} arv-put --no-progress --raw -`.strip
assert $?.success?, $?
data = "foo\nfile\n"
datablock = `echo -n #{data.shellescape} | ARVADOS_API_TOKEN=#{token.shellescape} arv-put --no-progress --raw -`.strip
assert $?.success?, $?
@@
-88,7
+88,7
@@
class CollectionsTest < ActionDispatch::IntegrationTest
link
end
end
link
end
end
- assert_equal(['foo'], hrefs.compact.sort,
+ assert_equal(['
./
foo'], hrefs.compact.sort,
"download page did provide strictly file links")
click_link "foo"
assert_text "foo\nfile\n"
"download page did provide strictly file links")
click_link "foo"
assert_text "foo\nfile\n"