21224: merged main to pass int tests
[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 hints:
24   DockerRequirement:
25     dockerPull: arvados/jobs
26 inputs:
27   arvados_api_token: string
28   arvado_api_host_insecure: boolean
29   arvados_api_host: string
30   check_collections: string[]
31   preparescript:
32     type: File
33     default:
34       class: File
35       location: check_exist.py
36     inputBinding:
37       position: 1
38 outputs:
39   success:
40     type: boolean
41     outputBinding:
42       glob: success
43       loadContents: true
44       outputEval: $(self[0].contents=="true")
45 baseCommand: python