Merge branch '21535-multi-wf-delete'
[arvados.git] / services / api / test / integration / serialized_encoding_test.rb
index d7599bc00f5e55367f41cf7e3332dc99b1ec0dd6..bf2d0062f222bad9676508238d40fdcadf01bb5d 100644 (file)
@@ -3,52 +3,19 @@
 # SPDX-License-Identifier: AGPL-3.0
 
 require 'test_helper'
-require 'helpers/git_test_helper'
 
 class SerializedEncodingTest < ActionDispatch::IntegrationTest
-  include GitTestHelper
-
   fixtures :all
 
   {
     api_client_authorization: {scopes: []},
-
-    human: {properties: {eye_color: 'gray'}},
-
-    job: {
-      repository: 'active/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'}},
-
     user: {prefs: {cookies: 'thin mint'}},
   }.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