Merge remote-tracking branch 'origin/master' into 15106-trgm-text-search
[arvados.git] / services / api / test / integration / crunch_dispatch_test.rb
index 552fd37ad5d18329dc2e44cbd3997911d2729f4d..6ac127087ea7c8f1793556ac3d043153c2f746c2 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 require 'helpers/git_test_helper'
 
@@ -24,15 +28,20 @@ class CrunchDispatchIntegrationTest < 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