2 require 'helpers/git_test_helper'
4 class CrunchDispatchTest < ActionDispatch::IntegrationTest
9 @@crunch_dispatch_pid = nil
11 def launch_crunch_dispatch
12 @@crunch_dispatch_pid = Process.fork {
13 ENV['PATH'] = ENV['HOME'] + '/arvados/services/crunch:' + ENV['PATH']
14 exec(ENV['HOME'] + '/arvados/services/api/script/crunch-dispatch.rb')
19 if @@crunch_dispatch_pid
20 Process.kill "TERM", @@crunch_dispatch_pid
22 @@crunch_dispatch_pid = nil
27 post "/arvados/v1/jobs", {
31 repository: "crunch_dispatch_test",
32 script_version: "f35f99b7d32bac257f5989df02b9f12ee1a9b0d6",
33 script_parameters: "{}"
36 assert_response :success