Merge branch '8784-dir-listings'
[arvados.git] / services / api / test / performance / links_index_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 require 'rails/performance_test_help'
7
8 class IndexTest < ActionDispatch::PerformanceTest
9   def test_links_index
10     get '/arvados/v1/links', {format: :json}, auth(:admin)
11   end
12   def test_links_index_with_filters
13     get '/arvados/v1/links', {format: :json, filters: [%w[head_uuid is_a arvados#collection]].to_json}, auth(:admin)
14   end
15   def test_collections_index
16     get '/arvados/v1/collections', {format: :json}, auth(:admin)
17   end
18 end