From 52f3ba321db95c6d8d8f9b5b13c7e91c77a00592 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Tue, 19 Jan 2021 16:39:30 -0500 Subject: [PATCH] 17267: Add integration test for broken link in $schemas Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- sdk/cwl/tests/17267-broken-schemas.cwl | 13 +++++++++++++ sdk/cwl/tests/arvados-tests.yml | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 sdk/cwl/tests/17267-broken-schemas.cwl diff --git a/sdk/cwl/tests/17267-broken-schemas.cwl b/sdk/cwl/tests/17267-broken-schemas.cwl new file mode 100644 index 0000000000..0dca945207 --- /dev/null +++ b/sdk/cwl/tests/17267-broken-schemas.cwl @@ -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 diff --git a/sdk/cwl/tests/arvados-tests.yml b/sdk/cwl/tests/arvados-tests.yml index a46decd961..668604f884 100644 --- a/sdk/cwl/tests/arvados-tests.yml +++ b/sdk/cwl/tests/arvados-tests.yml @@ -345,3 +345,13 @@ } 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" -- 2.30.2