15531: Test federation migrate script WIP
[arvados.git] / sdk / cwl / tests / federation / arvbox-make-federation.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   ScatterFeatureRequirement: {}
12   StepInputExpressionRequirement: {}
13   cwltool:LoadListingRequirement:
14     loadListing: no_listing
15   InlineJavascriptRequirement: {}
16 inputs:
17   containers:
18     type: string[]
19     default: [fedbox1, fedbox2, fedbox3]
20   arvbox_base: Directory
21   in_acr: string?
22   insecure:
23     type: boolean
24     default: true
25 outputs:
26   arvados_api_token:
27     type: string
28     outputSource: setup-user/test_user_token
29   arvados_api_hosts:
30     type: string[]
31     outputSource: start/container_host
32   arvados_cluster_ids:
33     type: string[]
34     outputSource: start/cluster_id
35   superuser_tokens:
36     type: string[]
37     outputSource: start/superuser_token
38   acr:
39     type: string?
40     outputSource: in_acr
41   arvado_api_host_insecure:
42     type: boolean
43     outputSource: insecure
44   arvbox_containers:
45     type: string[]
46     outputSource: containers
47 steps:
48   mkdir:
49     in:
50       containers: containers
51       arvbox_base: arvbox_base
52     out: [arvbox_data]
53     run: arvbox/mkdir.cwl
54   start:
55     in:
56       container_name: containers
57       arvbox_data: mkdir/arvbox_data
58     out: [cluster_id, container_host, arvbox_data_out, superuser_token]
59     scatter: [container_name, arvbox_data]
60     scatterMethod: dotproduct
61     run: arvbox/start.cwl
62   fed-config:
63     in:
64       container_name: containers
65       this_cluster_id: start/cluster_id
66       cluster_ids: start/cluster_id
67       cluster_hosts: start/container_host
68       arvbox_data: start/arvbox_data_out
69     out: []
70     scatter: [container_name, this_cluster_id, arvbox_data]
71     scatterMethod: dotproduct
72     run: arvbox/fed-config.cwl
73   setup-user:
74     in:
75       container_host: {source: start/container_host, valueFrom: "$(self[0])"}
76       superuser_token: {source: start/superuser_token, valueFrom: "$(self[0])"}
77     out: [test_user_uuid, test_user_token]
78     run: arvbox/setup-user.cwl