17267: Add integration test for broken link in $schemas
authorPeter Amstutz <peter.amstutz@curii.com>
Tue, 19 Jan 2021 21:39:30 +0000 (16:39 -0500)
committerPeter Amstutz <peter.amstutz@curii.com>
Tue, 19 Jan 2021 21:40:18 +0000 (16:40 -0500)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

sdk/cwl/tests/17267-broken-schemas.cwl [new file with mode: 0644]
sdk/cwl/tests/arvados-tests.yml

diff --git a/sdk/cwl/tests/17267-broken-schemas.cwl b/sdk/cwl/tests/17267-broken-schemas.cwl
new file mode 100644 (file)
index 0000000..0dca945
--- /dev/null
@@ -0,0 +1,13 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+cwlVersion: v1.0
+class: CommandLineTool
+$schemas:
+  - http://example.com/schema.xml
+inputs: []
+outputs:
+  out: stdout
+baseCommand: [echo, "foo"]
+stdout: foo.txt
index a46decd9616cff63fe932e2320568b14c563b3b6..668604f88470e18ea566d807301b712bfafa935e 100644 (file)
     }
   tool: 16377-missing-default.cwl
   doc: "Test issue 16377 - missing default fails even when it should be overridden by valid input"
+
+- job: hello.yml
+  output:
+    "out":
+      "checksum": "sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15"
+      "class": "File"
+      "location": "foo.txt"
+      "size": 4
+  tool: 17267-broken-schemas.cwl
+  doc: "Test issue 17267 - inaccessible $schemas URL is not a fatal error"