X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ec71f0d4cd9a564b2895b61e60fe23f0b6480ad6..bdc87ddb113a2e05dd859a7f68f5fe1135bbc650:/services/api/test/functional/arvados/v1/nodes_controller_test.rb diff --git a/services/api/test/functional/arvados/v1/nodes_controller_test.rb b/services/api/test/functional/arvados/v1/nodes_controller_test.rb index f872f89dd9..3e239c36c9 100644 --- a/services/api/test/functional/arvados/v1/nodes_controller_test.rb +++ b/services/api/test/functional/arvados/v1/nodes_controller_test.rb @@ -50,6 +50,10 @@ class Arvados::V1::NodesControllerTest < ActionController::TestCase assert_response :success response = JSON.parse(@response.body) assert_equal 'zzzzz-7ekkf-2z3mc76g2q73aio', response['uuid'] + # Ensure we are getting the "superuser" attributes, too + assert_not_nil response['first_ping_at'], '"first_ping_at" attr missing' + assert_not_nil response['info'], '"info" attr missing' + assert_not_nil response['nameservers'], '"nameservers" attr missing' end test "node should fail ping with invalid ping_secret" do @@ -59,7 +63,7 @@ class Arvados::V1::NodesControllerTest < ActionController::TestCase local_ipv4: '172.17.2.174', ping_secret: 'dricrha4lcpi23pd69e44soanc069udawxvn3zzj45hs8bumvn' } - assert_response :unprocessable_entity + assert_response 401 end end