13766: upload_workflow dumps to json
[arvados.git] / sdk / cwl / tests / wf / expect_packed.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 {
6     "$graph": [
7         {
8             "baseCommand": "cat",
9             "class": "CommandLineTool",
10             "id": "#submit_tool.cwl",
11             "inputs": [
12                 {
13                     "default": {
14                         "class": "File",
15                         "location": "keep:5d373e7629203ce39e7c22af98a0f881+52/blub.txt"
16                     },
17                     "id": "#submit_tool.cwl/x",
18                     "inputBinding": {
19                         "position": 1
20                     },
21                     "type": "File"
22                 }
23             ],
24             "outputs": [],
25             "requirements": [
26                 {
27                     "class": "DockerRequirement",
28                     "dockerPull": "debian:8"
29                 }
30             ]
31         },
32         {
33             "class": "Workflow",
34             "id": "#main",
35             "inputs": [
36                 {
37                     "default": {
38                         "basename": "blorp.txt",
39                         "class": "File",
40                         "location": "keep:169f39d466a5438ac4a90e779bf750c7+53/blorp.txt",
41                         "nameext": ".txt",
42                         "nameroot": "blorp",
43                         "size": 16
44                     },
45                     "id": "#main/x",
46                     "type": "File"
47                 },
48                 {
49                     "default": {
50                         "basename": "99999999999999999999999999999998+99",
51                         "class": "Directory",
52                         "location": "keep:99999999999999999999999999999998+99"
53                     },
54                     "id": "#main/y",
55                     "type": "Directory"
56                 },
57                 {
58                     "default": {
59                         "basename": "anonymous",
60                         "class": "Directory",
61                         "listing": [
62                             {
63                                 "basename": "renamed.txt",
64                                 "class": "File",
65                                 "location": "keep:99999999999999999999999999999998+99/file1.txt",
66                                 "nameext": ".txt",
67                                 "nameroot": "renamed"
68                             }
69                         ]
70                     },
71                     "id": "#main/z",
72                     "type": "Directory"
73                 }
74             ],
75             "outputs": [],
76             "steps": [
77                 {
78                     "id": "#main/step1",
79                     "in": [
80                         {
81                             "id": "#main/step1/x",
82                             "source": "#main/x"
83                         }
84                     ],
85                     "out": [],
86                     "run": "#submit_tool.cwl"
87                 }
88             ]
89         }
90     ],
91     "cwlVersion": "v1.0"
92 }