Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / services / api / test / functional / arvados / v1 / pipeline_instances_controller_test.rb
1 require 'test_helper'
2
3 class Arvados::V1::PipelineInstancesControllerTest < ActionController::TestCase
4
5   test 'create pipeline with components copied from template' do
6     authorize_with :active
7     post :create, {
8       pipeline_instance: {
9         pipeline_template_uuid: pipeline_templates(:two_part).uuid
10       }
11     }
12     assert_response :success
13     assert_equal(pipeline_templates(:two_part).components.to_json,
14                  assigns(:object).components.to_json)
15   end
16
17   test 'create pipeline with no template' do
18     authorize_with :active
19     post :create, {
20       pipeline_instance: {
21         components: {}
22       }
23     }
24     assert_response :success
25     assert_equal({}, assigns(:object).components)
26   end
27
28 end