14196: Multi-site search works with v2 tokens.
[arvados.git] / apps / workbench / test / integration / collections_test.rb
index 9aa868c2b8b90ee2dab6a1bbf94dae39d305df96..6dd3c526968f3f574ee4b5fcba5746f78fe57a5e 100644 (file)
@@ -57,7 +57,7 @@ class CollectionsTest < ActionDispatch::IntegrationTest
   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?, $?