X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a1379fdd1f825c22a3ada0a2c085a1b0121ce89a..0adb096afc227db376823f84956de6d7ea30dc10:/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 329bc1589a..02191ecae9 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,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class Arvados::V1::VirtualMachinesControllerTest < ActionController::TestCase @@ -33,7 +37,6 @@ class Arvados::V1::VirtualMachinesControllerTest < ActionController::TestCase test "groups is an empty list by default" do get_logins_for(:testvm2) active_login = find_login(:active) - perm = links(:active_can_login_to_testvm2) assert_equal([], active_login["groups"]) end @@ -60,8 +63,8 @@ class Arvados::V1::VirtualMachinesControllerTest < ActionController::TestCase get :logins, 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