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)),
38 }.to_json, {'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(:admin).api_token}",
39 'CONTENT_TYPE' => 'application/json'}
40 assert_response :success
41 assert_equal "arvados#containerRequest", json_response['kind']
42 assert_equal val, json_response['mounts']['foo']['content']