14198: Federation feature and testing
[arvados.git] / sdk / cwl / tests / federation / arvbox / arvbox-main.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 cwlVersion: v1.0
6 class: Workflow
7 $namespaces:
8   arv: "http://arvados.org/cwl#"
9   cwltool: "http://commonwl.org/cwltool#"
10 requirements:
11   cwltool:LoadListingRequirement:
12     loadListing: no_listing
13   SubworkflowFeatureRequirement: {}
14 inputs:
15   arvbox_base: Directory
16   acr: string?
17 outputs: []
18 steps:
19   run-arvbox:
20     in:
21       containers:
22         default: [fedbox1, fedbox2, fedbox3]
23       arvbox_base: arvbox_base
24     out: [cluster_ids, container_hosts, test_user_uuid, test_user_token]
25     run: arvbox-fed.cwl
26   run-main:
27     in:
28       arvados_api_host_home: {source: run-arvbox/container_hosts, valueFrom: "$(self[0])"}
29       arvados_home_id: {source: run-arvbox/cluster_ids, valueFrom: "$(self[0])"}
30       arvados_api_token: run-arvbox/test_user_token
31       arvado_api_host_insecure: {default: true}
32       arvados_api_host_clusterB: {source: run-arvbox/container_hosts, valueFrom: "$(self[1])"}
33       arvados_clusterB_id: {source: run-arvbox/cluster_ids, valueFrom: "$(self[1])"}
34       arvados_api_host_clusterC: {source: run-arvbox/container_hosts, valueFrom: "$(self[2])"}
35       arvados_clusterC_id: {source: run-arvbox/cluster_ids, valueFrom: "$(self[2])"}
36       acr: acr
37     out: [base-case-out, runner-home-step-remote-out]
38     run: main.cwl