8784: Fix test for latest firefox.
[arvados.git] / services / api / test / functional / arvados / v1 / container_requests_controller_test.rb
1 require 'test_helper'
2
3 class Arvados::V1::ContainerRequestsControllerTest < ActionController::TestCase
4   test 'create with scheduling parameters' do
5     authorize_with :system_user
6
7     sp = {'partitions' => ['test1', 'test2']}
8     post :create, {
9       container_request: {
10         command: ['echo', 'hello'],
11         container_image: 'test',
12         output_path: 'test',
13         scheduling_parameters: sp,
14       },
15     }
16     assert_response :success
17
18     cr = JSON.parse(@response.body)
19     assert_not_nil cr, 'Expected container request'
20     assert_equal sp, cr['scheduling_parameters']
21   end
22 end