1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class SerializedEncodingTest < ActionDispatch::IntegrationTest
11 api_client_authorization: {scopes: []},
12 link: {link_class: 'test', name: 'test', properties: {foo: :bar}},
13 user: {prefs: {cookies: 'thin mint'}},
14 }.each_pair do |resource, postdata|
15 test "create json-encoded #{resource.to_s}" do
16 post("/arvados/v1/#{resource.to_s.pluralize}",
17 params: {resource => postdata.to_json},
18 headers: auth(:admin_trustedclient))
19 assert_response :success