X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bbf13d5bc532c5222a933317461f187a0e118c9a..35658af99f09f2f6768583d65246429f789fc5a2:/services/api/test/functional/arvados/v1/keep_services_controller_test.rb diff --git a/services/api/test/functional/arvados/v1/keep_services_controller_test.rb b/services/api/test/functional/arvados/v1/keep_services_controller_test.rb index 1375d4c9ce..41554be875 100644 --- a/services/api/test/functional/arvados/v1/keep_services_controller_test.rb +++ b/services/api/test/functional/arvados/v1/keep_services_controller_test.rb @@ -1,10 +1,14 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class Arvados::V1::KeepServicesControllerTest < ActionController::TestCase test "search by service_port with < query" do authorize_with :active - get :index, { + get :index, params: { filters: [['service_port', '<', 25107]] } assert_response :success @@ -13,16 +17,16 @@ class Arvados::V1::KeepServicesControllerTest < ActionController::TestCase test "search by service_port with >= query" do authorize_with :active - get :index, { + get :index, params: { filters: [['service_port', '>=', 25107]] } assert_response :success assert_equal true, assigns(:objects).any? end - [:admin, :active, :inactive, :anonymous].each do |u| - test "accessible to #{u} user" do - authorize_with u + [:admin, :active, :inactive, :anonymous, nil].each do |u| + test "accessible to #{u.inspect} user" do + authorize_with(u) if u get :accessible assert_response :success assert_not_empty json_response['items']