X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2f1baf225599d7ae5dec4611696774e6a7100d58..96fefe6c6fc2e3bd7e4efbb0b6a7dedb9221aff7:/services/api/test/integration/serialized_encoding_test.rb diff --git a/services/api/test/integration/serialized_encoding_test.rb b/services/api/test/integration/serialized_encoding_test.rb index ed30fdb5df..16d43e6f3c 100644 --- a/services/api/test/integration/serialized_encoding_test.rb +++ b/services/api/test/integration/serialized_encoding_test.rb @@ -1,8 +1,12 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' -load 'test/functional/arvados/v1/git_setup.rb' +require 'helpers/git_test_helper' class SerializedEncodingTest < ActionDispatch::IntegrationTest - include GitSetup + include GitTestHelper fixtures :all @@ -12,8 +16,8 @@ class SerializedEncodingTest < ActionDispatch::IntegrationTest human: {properties: {eye_color: 'gray'}}, job: { - repository: 'foo', - runtime_constraints: {docker_image: 'arvados/jobs'}, + repository: 'active/foo', + runtime_constraints: {docker_image: 'arvados/apitestfixture'}, script: 'hash', script_version: 'master', script_parameters: {pattern: 'foobar'}, @@ -44,7 +48,8 @@ class SerializedEncodingTest < ActionDispatch::IntegrationTest }.each_pair do |resource, postdata| test "create json-encoded #{resource.to_s}" do post("/arvados/v1/#{resource.to_s.pluralize}", - {resource => postdata.to_json}, auth(:admin_trustedclient)) + params: {resource => postdata.to_json}, + headers: auth(:admin_trustedclient)) assert_response :success end end