From fb96caaa6b4e00f61e5e5f7b4773c03bb30cf1bf Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Fri, 16 Nov 2018 16:18:19 -0500 Subject: [PATCH] 14198: Test cases for places that ClusterTarget can appear Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- .../federation/cases/md5sum-tool-hint.cwl | 24 ++++++++++++++ ...ote-case.cwl => remote-case-step-hint.cwl} | 0 .../cases/remote-case-tool-hint.cwl | 28 +++++++++++++++++ .../federation/cases/remote-case-wf-hint.cwl | 31 +++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 sdk/cwl/tests/federation/cases/md5sum-tool-hint.cwl rename sdk/cwl/tests/federation/cases/{remote-case.cwl => remote-case-step-hint.cwl} (100%) create mode 100644 sdk/cwl/tests/federation/cases/remote-case-tool-hint.cwl create mode 100644 sdk/cwl/tests/federation/cases/remote-case-wf-hint.cwl diff --git a/sdk/cwl/tests/federation/cases/md5sum-tool-hint.cwl b/sdk/cwl/tests/federation/cases/md5sum-tool-hint.cwl new file mode 100644 index 0000000000..726c33bbd8 --- /dev/null +++ b/sdk/cwl/tests/federation/cases/md5sum-tool-hint.cwl @@ -0,0 +1,24 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +cwlVersion: v1.0 +class: CommandLineTool +$namespaces: + arv: "http://arvados.org/cwl#" +requirements: + InlineJavascriptRequirement: {} +hints: + arv:ClusterTarget: + cluster_id: $(inputs.runOnCluster) +inputs: + inp: File + runOnCluster: string +outputs: + hash: + type: File + outputBinding: + glob: out.txt +stdin: $(inputs.inp.path) +stdout: out.txt +arguments: ["md5sum", "-"] diff --git a/sdk/cwl/tests/federation/cases/remote-case.cwl b/sdk/cwl/tests/federation/cases/remote-case-step-hint.cwl similarity index 100% rename from sdk/cwl/tests/federation/cases/remote-case.cwl rename to sdk/cwl/tests/federation/cases/remote-case-step-hint.cwl diff --git a/sdk/cwl/tests/federation/cases/remote-case-tool-hint.cwl b/sdk/cwl/tests/federation/cases/remote-case-tool-hint.cwl new file mode 100644 index 0000000000..a52b400cf8 --- /dev/null +++ b/sdk/cwl/tests/federation/cases/remote-case-tool-hint.cwl @@ -0,0 +1,28 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +cwlVersion: v1.0 +class: Workflow +$namespaces: + arv: "http://arvados.org/cwl#" +requirements: + InlineJavascriptRequirement: {} + DockerRequirement: + dockerPull: arvados/fed-test:remote-case +inputs: + inp: + type: File + inputBinding: {} + runOnCluster: string +outputs: + hash: + type: File + outputSource: md5sum/hash +steps: + md5sum: + in: + inp: inp + runOnCluster: runOnCluster + out: [hash] + run: md5sum-tool-hint.cwl diff --git a/sdk/cwl/tests/federation/cases/remote-case-wf-hint.cwl b/sdk/cwl/tests/federation/cases/remote-case-wf-hint.cwl new file mode 100644 index 0000000000..f380de7914 --- /dev/null +++ b/sdk/cwl/tests/federation/cases/remote-case-wf-hint.cwl @@ -0,0 +1,31 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +cwlVersion: v1.0 +class: Workflow +$namespaces: + arv: "http://arvados.org/cwl#" +requirements: + InlineJavascriptRequirement: {} + DockerRequirement: + dockerPull: arvados/fed-test:remote-case +hints: + arv:ClusterTarget: + cluster_id: $(inputs.runOnCluster) +inputs: + inp: + type: File + inputBinding: {} + runOnCluster: string +outputs: + hash: + type: File + outputSource: md5sum/hash +steps: + md5sum: + in: + inp: inp + runOnCluster: runOnCluster + out: [hash] + run: md5sum.cwl -- 2.30.2