3 class Arvados::V1::ContainerRequestsControllerTest < ActionController::TestCase
4 test 'create with scheduling parameters' do
5 authorize_with :system_user
7 sp = {'partitions' => ['test1', 'test2']}
10 command: ['echo', 'hello'],
11 container_image: 'test',
13 scheduling_parameters: sp,
16 assert_response :success
18 cr = JSON.parse(@response.body)
19 assert_not_nil cr, 'Expected container request'
20 assert_equal sp, cr['scheduling_parameters']