17879: Add test that acr doesn't fail on sbg fields
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 8 Jul 2021 19:20:51 +0000 (15:20 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Thu, 8 Jul 2021 19:23:32 +0000 (15:23 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

sdk/cwl/tests/17879-ignore-sbg-fields-job.yml [new file with mode: 0644]
sdk/cwl/tests/17879-ignore-sbg-fields.cwl [new file with mode: 0644]
sdk/cwl/tests/arvados-tests.yml

diff --git a/sdk/cwl/tests/17879-ignore-sbg-fields-job.yml b/sdk/cwl/tests/17879-ignore-sbg-fields-job.yml
new file mode 100644 (file)
index 0000000..26e9d12
--- /dev/null
@@ -0,0 +1,5 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+sampleName: woble
diff --git a/sdk/cwl/tests/17879-ignore-sbg-fields.cwl b/sdk/cwl/tests/17879-ignore-sbg-fields.cwl
new file mode 100644 (file)
index 0000000..131fd0f
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+$namespaces:
+  sbg: https://www.sevenbridges.com/
+class: "Workflow"
+cwlVersion: v1.1
+label: "check that sbg x/y fields are correctly ignored"
+inputs:
+  - id: sampleName
+    type: string
+    label: Sample name
+    'sbg:x': -22
+    'sbg:y': 33.4296875
+outputs:
+  - id: outstr
+    type: string
+    outputSource: step1/outstr
+steps:
+  step1:
+    in:
+      sampleName: sampleName
+    out: [outstr]
+    run:
+      class: CommandLineTool
+      inputs:
+        sampleName: string
+      stdout: out.txt
+      outputs:
+        outstr:
+          type: string
+          outputBinding:
+            glob: out.txt
+            loadContents: true
+            outputEval: $(self[0].contents)
+      arguments: [echo, "-n", "foo", $(inputs.sampleName), "bar"]
index 717636cd3c6746e6b2e4429fff9a8ad7019d236f..ae22d65f4db22f3a2b285320d1501a79d0a2e139 100644 (file)
     "val": "keep:f225e6259bdd63bc7240599648dde9f1+97/hg19.fa"
   tool: 17858-pack-visit-crash.cwl
   doc: "Test issue 17858 - keep ref default inputs on ExpressionTool"
+
+- job: 17879-ignore-sbg-fields-job.yml
+  output:
+    "outstr": "foo woble bar"
+  tool: 17879-ignore-sbg-fields.cwl
+  doc: "Test issue 17879 - ignores sbg fields"