11453: Move remote token validation to middleware. Bypass Ruby SDK.
[arvados.git] / services / api / test / integration / valid_links_test.rb
index 65431f39a0f9ffbab8ffc08bbbcb72263dced351..ed705fc04dd4d4ceef74fef40d97d48c3a93ea91 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class ValidLinksTest < ActionDispatch::IntegrationTest
@@ -16,7 +20,7 @@ class ValidLinksTest < ActionDispatch::IntegrationTest
       }
     }, admin_auth
     assert_response :success
-    u = jresponse['uuid']
+    u = json_response['uuid']
 
     put "/arvados/v1/links/#{u}", {
       :format => :json,
@@ -25,9 +29,6 @@ class ValidLinksTest < ActionDispatch::IntegrationTest
       }
     }, admin_auth
     assert_response :success
-    #puts @response.body
-    #puts jresponse['tail_uuid']
-    #puts virtual_machines(:testvm2)
     assert_equal virtual_machines(:testvm2).uuid, (ActiveSupport::JSON.decode @response.body)['tail_uuid']
 
     put "/arvados/v1/links/#{u}", {