14198: Federation feature and testing
[arvados.git] / sdk / cwl / tests / federation / framework / testcase.cwl
1 #!/usr/bin/env cwl-runner
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: Apache-2.0
5
6 cwlVersion: v1.0
7 class: Workflow
8 $namespaces:
9   arv: "http://arvados.org/cwl#"
10   cwltool: "http://commonwl.org/cwltool#"
11 hints:
12   cwltool:Secrets:
13     secrets: [arvados_api_token]
14 requirements:
15   StepInputExpressionRequirement: {}
16   InlineJavascriptRequirement: {}
17   SubworkflowFeatureRequirement: {}
18 inputs:
19   arvados_api_token: string
20   arvado_api_host_insecure:
21     type: boolean
22     default: false
23   arvados_api_hosts: string[]
24   arvados_cluster_ids: string[]
25   acr: string?
26   wf: File
27   obj: Any
28   scrub_image: string
29   scrub_collections: string[]
30   runner_cluster: string?
31 outputs:
32   out:
33     type: Any
34     outputSource: run-acr/out
35   success:
36     type: boolean
37     outputSource: check-result/success
38 steps:
39   dockerbuild:
40     in:
41       testcase: scrub_image
42     out: [imagename]
43     run: dockerbuild.cwl
44   prepare:
45     in:
46       arvados_api_token: arvados_api_token
47       arvado_api_host_insecure: arvado_api_host_insecure
48       arvados_api_host: {source: arvados_api_hosts, valueFrom: "$(self[0])"}
49       arvados_cluster_ids: arvados_cluster_ids
50       wf: wf
51       obj: obj
52       scrub_image: scrub_image
53       scrub_collections: scrub_collections
54     out: [done]
55     run: prepare.cwl
56   run-acr:
57     in:
58       prepare: prepare/done
59       image-ready: dockerbuild/imagename
60       arvados_api_token: arvados_api_token
61       arvado_api_host_insecure: arvado_api_host_insecure
62       arvados_api_host: {source: arvados_api_hosts, valueFrom: "$(self[0])"}
63       runner_cluster: runner_cluster
64       acr: acr
65       wf: wf
66       obj: obj
67     out: [out]
68     run: run-acr.cwl
69   check-result:
70     in:
71       acr-done: run-acr/out
72       arvados_api_token: arvados_api_token
73       arvado_api_host_insecure: arvado_api_host_insecure
74       arvados_api_host: {source: arvados_api_hosts, valueFrom: "$(self[0])"}
75       check_collections: scrub_collections
76     out: [success]
77     run: check-exist.cwl