X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/58a4f7eb6dc51569eef87b6b5de800e4defa6291..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 a6f937bbda..6ac127087e 100644 --- a/services/api/test/integration/crunch_dispatch_test.rb +++ b/services/api/test/integration/crunch_dispatch_test.rb @@ -1,7 +1,11 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' require 'helpers/git_test_helper' -class CrunchDispatchTest < ActionDispatch::IntegrationTest +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: "active/crunchdispatchtest", - script_version: "f35f99b7d32bac257f5989df02b9f12ee1a9b0d6", - 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