X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/964ab3dd90ff1508efc0c77378cde2b3a4da1029..e6ef9eaf9ea30690a8f7108ed21b7b9e18260aef:/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 8a1cb10004..f41c033b39 100644 --- a/services/api/test/integration/serialized_encoding_test.rb +++ b/services/api/test/integration/serialized_encoding_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' require 'helpers/git_test_helper' @@ -11,31 +15,10 @@ class SerializedEncodingTest < ActionDispatch::IntegrationTest human: {properties: {eye_color: 'gray'}}, - job: { - repository: 'foo', - runtime_constraints: {docker_image: 'arvados/apitestfixture'}, - script: 'hash', - script_version: 'master', - script_parameters: {pattern: 'foobar'}, - tasks_summary: {todo: 0}, - }, - - job_task: {parameters: {pattern: 'foo'}}, - link: {link_class: 'test', name: 'test', properties: {foo: :bar}}, node: {info: {uptime: 1234}}, - pipeline_instance: { - components: {"job1" => {parameters: {pattern: "xyzzy"}}}, - components_summary: {todo: 0}, - properties: {test: true}, - }, - - pipeline_template: { - components: {"job1" => {parameters: {pattern: "xyzzy"}}}, - }, - specimen: {properties: {eye_color: 'meringue'}}, trait: {properties: {eye_color: 'brown'}}, @@ -44,7 +27,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