14198: Federation feature and testing
[arvados.git] / sdk / cwl / tests / federation / framework / check-exist.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: CommandLineTool
7 requirements:
8   InitialWorkDirRequirement:
9     listing:
10       - entryname: config.json
11         entry: |-
12           ${
13           return JSON.stringify({
14             check_collections: inputs.check_collections
15           });
16           }
17   EnvVarRequirement:
18     envDef:
19       ARVADOS_API_HOST: $(inputs.arvados_api_host)
20       ARVADOS_API_TOKEN: $(inputs.arvados_api_token)
21       ARVADOS_API_HOST_INSECURE: $(""+inputs.arvado_api_host_insecure)
22   InlineJavascriptRequirement: {}
23 inputs:
24   arvados_api_token: string
25   arvado_api_host_insecure: boolean
26   arvados_api_host: string
27   check_collections: string[]
28   preparescript:
29     type: File
30     default:
31       class: File
32       location: check_exist.py
33     inputBinding:
34       position: 1
35 outputs:
36   success:
37     type: boolean
38     outputBinding:
39       glob: success
40       loadContents: true
41       outputEval: $(self[0].contents=="true")
42 baseCommand: python2