X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fa8ab6f3576881b80e2edf4b9066ca15f46f05b4..6d73acc845a2dd7413fdde0742473d83bf3d0719:/services/api/test/functional/arvados/v1/keep_disks_controller_test.rb diff --git a/services/api/test/functional/arvados/v1/keep_disks_controller_test.rb b/services/api/test/functional/arvados/v1/keep_disks_controller_test.rb index 3ccfa055e7..385710e060 100644 --- a/services/api/test/functional/arvados/v1/keep_disks_controller_test.rb +++ b/services/api/test/functional/arvados/v1/keep_disks_controller_test.rb @@ -94,4 +94,32 @@ class Arvados::V1::KeepDisksControllerTest < ActionController::TestCase end end + test "search keep_disks by service_port with >= query" do + authorize_with :active + get :index, { + filters: [['service_port', '>=', 25107]] + } + assert_response :success + assert_equal true, assigns(:objects).any? + end + + test "search keep_disks by service_port with < query" do + authorize_with :active + get :index, { + filters: [['service_port', '<', 25107]] + } + assert_response :success + assert_equal false, assigns(:objects).any? + end + + test "search keep_disks with 'any' operator" do + authorize_with :active + get :index, { + where: { any: ['contains', 'o2t1q5w'] } + } + assert_response :success + found = assigns(:objects).collect(&:uuid) + assert_equal true, !!found.index('zzzzz-penuu-5w2o2t1q5wy7fhn') + end + end