X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8735f2aa77b9e3c51449738e429399e4501ec94e..91cd750b78b39195b0e8f3328a3e7f34484172a3:/services/api/test/functional/arvados/v1/virtual_machines_controller_test.rb diff --git a/services/api/test/functional/arvados/v1/virtual_machines_controller_test.rb b/services/api/test/functional/arvados/v1/virtual_machines_controller_test.rb index 9b805af8e3..9367775ec5 100644 --- a/services/api/test/functional/arvados/v1/virtual_machines_controller_test.rb +++ b/services/api/test/functional/arvados/v1/virtual_machines_controller_test.rb @@ -1,9 +1,13 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class Arvados::V1::VirtualMachinesControllerTest < ActionController::TestCase def get_logins_for(vm_sym) authorize_with :admin - get(:logins, id: virtual_machines(vm_sym).uuid) + get(:logins, params: {id: virtual_machines(vm_sym).uuid}) end def find_login(sshkey_sym) @@ -56,11 +60,11 @@ class Arvados::V1::VirtualMachinesControllerTest < ActionController::TestCase properties: {'username' => 'bobblogin'}) end authorize_with :admin - get :logins, id: vm.uuid + get :logins, params: {id: vm.uuid} assert_response :success assert_equal 1, json_response['items'].length - assert_equal nil, json_response['items'][0]['public_key'] - assert_equal nil, json_response['items'][0]['authorized_key_uuid'] + assert_nil json_response['items'][0]['public_key'] + assert_nil json_response['items'][0]['authorized_key_uuid'] assert_equal u.uuid, json_response['items'][0]['user_uuid'] assert_equal 'bobblogin', json_response['items'][0]['username'] end