1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 require 'helpers/git_test_helper'
8 class CrunchDispatchIntegrationTest < ActionDispatch::IntegrationTest
13 @@crunch_dispatch_pid = nil
15 def launch_crunch_dispatch
16 @@crunch_dispatch_pid = Process.fork {
17 ENV['PATH'] = ENV['HOME'] + '/arvados/services/crunch:' + ENV['PATH']
18 exec(ENV['HOME'] + '/arvados/services/api/script/crunch-dispatch.rb')
23 if @@crunch_dispatch_pid
24 Process.kill "TERM", @@crunch_dispatch_pid
26 @@crunch_dispatch_pid = nil
31 post "/arvados/v1/jobs",
36 repository: "active/crunchdispatchtest",
37 script_version: "f35f99b7d32bac257f5989df02b9f12ee1a9b0d6",
39 input: 'fa7aeb5140e2848d39b416daeef4ffc5+45',
45 assert_response :success