1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class Arvados::V1::ContainerRequestsControllerTest < ActionController::TestCase
8 test 'create with scheduling parameters' do
9 authorize_with :system_user
11 sp = {'partitions' => ['test1', 'test2']}
14 command: ['echo', 'hello'],
15 container_image: 'test',
17 scheduling_parameters: sp,
20 assert_response :success
22 cr = JSON.parse(@response.body)
23 assert_not_nil cr, 'Expected container request'
24 assert_equal sp, cr['scheduling_parameters']