X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/783343e5aca00f730315d943cecf74e4277a38e7..8a0e9c549595e114a0eadc9d6792a17fb59d0f3e:/services/api/test/integration/crunch_dispatch_test.rb diff --git a/services/api/test/integration/crunch_dispatch_test.rb b/services/api/test/integration/crunch_dispatch_test.rb index 4abdcce03b..6ac127087e 100644 --- a/services/api/test/integration/crunch_dispatch_test.rb +++ b/services/api/test/integration/crunch_dispatch_test.rb @@ -1,8 +1,12 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' -load 'test/functional/arvados/v1/git_setup.rb' +require 'helpers/git_test_helper' -class CrunchDispatchTest < ActionDispatch::IntegrationTest - include GitSetup +class CrunchDispatchIntegrationTest < ActionDispatch::IntegrationTest + include GitTestHelper fixtures :all @@ -24,15 +28,20 @@ class CrunchDispatchTest < ActionDispatch::IntegrationTest end test "job runs" do - post "/arvados/v1/jobs", { - format: "json", - job: { - script: "log", - repository: "bar", - script_version: "143fec09e988160673c63457fa12a0f70b5b8a26", - script_parameters: "{}" - } - }, auth(:admin) + post "/arvados/v1/jobs", + params: { + format: "json", + job: { + script: "log", + repository: "active/crunchdispatchtest", + script_version: "f35f99b7d32bac257f5989df02b9f12ee1a9b0d6", + script_parameters: { + input: 'fa7aeb5140e2848d39b416daeef4ffc5+45', + an_integer: '1' + } + } + }, + headers: auth(:admin) assert_response :success end end