X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a8bf5ded794ad2b59e65d8a681b79d727f899402..51e50928acce5640e69e0918e282735bae216fdb:/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 2d12eb9d24..57cbd0024e 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 @@ -19,7 +19,7 @@ class Arvados::V1::KeepDisksControllerTest < ActionController::TestCase assert_not_equal '', new_keep_node['ping_secret'] end - test "refuse to add keep node with no filesystem_uuid" do + test "add keep node with no filesystem_uuid" do authorize_with :admin opts = { ping_secret: '', @@ -28,9 +28,12 @@ class Arvados::V1::KeepDisksControllerTest < ActionController::TestCase service_ssl_flag: false } post :ping, opts - assert_response 404 + assert_response :success + assert_not_nil JSON.parse(@response.body)['uuid'] + post :ping, opts.merge(filesystem_uuid: '') - assert_response 404 + assert_response :success + assert_not_nil JSON.parse(@response.body)['uuid'] end test "refuse to add keep node without admin token" do