17879: Add test that acr doesn't fail on sbg fields
[arvados.git] / sdk / cwl / tests / 17879-ignore-sbg-fields.cwl
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"]