3 class Arvados::V1::KeepServicesControllerTest < ActionController::TestCase
5 test "search by service_port with < query" do
8 filters: [['service_port', '<', 25107]]
10 assert_response :success
11 assert_equal false, assigns(:objects).any?
14 test "search by service_port with >= query" do
15 authorize_with :active
17 filters: [['service_port', '>=', 25107]]
19 assert_response :success
20 assert_equal true, assigns(:objects).any?
23 [:admin, :active, :inactive, :anonymous].each do |u|
24 test "accessible to #{u} user" do
27 assert_response :success
28 assert_not_empty json_response['items']
29 json_response['items'].each do |ks|
30 assert_not_equal ks['service_type'], 'proxy'