1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class NoopDeepMungeTest < ActionDispatch::IntegrationTest
12 test "null in array" do
13 check({"foo" => ["foo", nil]})
16 test "array of nulls" do
17 check({"foo" => [nil, nil, nil]})
23 post "/arvados/v1/container_requests",
25 :container_request => {
27 :state => "Uncommitted",
29 :container_image => "arvados/jobs",
34 :content => JSON.parse(SafeJSON.dump(val)),
40 'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(:admin).api_token}",
41 'CONTENT_TYPE' => 'application/json'
43 assert_response :success
44 assert_equal "arvados#containerRequest", json_response['kind']
45 assert_equal val, json_response['mounts']['foo']['content']