X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/19ae770973482257117fe8ded5619c3018c4b60f..a76b52ff503ae14df608904349670151a5b15e47:/services/api/test/integration/pipeline_test.rb diff --git a/services/api/test/integration/pipeline_test.rb b/services/api/test/integration/pipeline_test.rb index a550246b13..4d8f88248a 100644 --- a/services/api/test/integration/pipeline_test.rb +++ b/services/api/test/integration/pipeline_test.rb @@ -1,36 +1,8 @@ -require 'test_helper' - -class PipelineTest < ActionDispatch::IntegrationTest - # These tests simulate the workflow of arv-run-pipeline-instance - # and other pipeline-running code. - - def check_component_match(comp_key, comp_hash) - assert_response :success - built_json = json_response - built_component = built_json["components"][comp_key] - comp_hash.each_pair do |key, expected| - assert_equal(expected, built_component[key.to_s], - "component's #{key} field changed") - end - end +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 - test "creating a pipeline instance preserves required component parameters" do - comp_name = "test_component" - component = { - repository: "test_repo", - script: "test_script", - script_version: "test_refspec", - script_parameters: {}, - } - - post("/arvados/v1/pipeline_instances", - {pipeline_instance: {components: {comp_name => component}}.to_json}, - auth(:active)) - check_component_match(comp_name, component) - pi_uuid = json_response["uuid"] +require 'test_helper' - @response = nil - get("/arvados/v1/pipeline_instances/#{pi_uuid}", {}, auth(:active)) - check_component_match(comp_name, component) - end +class PipelineIntegrationTest < ActionDispatch::IntegrationTest end