Merge branch '8784-dir-listings'
[arvados.git] / services / api / test / fixtures / pipeline_templates.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 two_part:
6   uuid: zzzzz-p5p6p-aox0k0ofxrystgw
7   owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso
8   created_at: 2014-04-14 12:35:04 -0400
9   updated_at: 2014-04-14 12:35:04 -0400
10   modified_at: 2014-04-14 12:35:04 -0400
11   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
12   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
13   name: Two Part Pipeline Template
14   components:
15     part-one:
16       script: foo
17       script_version: master
18       script_parameters:
19         input:
20           required: true
21           dataclass: Collection
22           title: "Foo/bar pair"
23     part-two:
24       script: bar
25       script_version: master
26       script_parameters:
27         input:
28           output_of: part-one
29         integer_with_default:
30           default: 123
31         integer_with_value:
32           value: 123
33         string_with_default:
34           default: baz
35         string_with_value:
36           value: baz
37         plain_string: qux
38         array_with_default: # important to test repeating values in the array!
39           default: [1,1,2,3,5]
40         array_with_value: # important to test repeating values in the array!
41           value: [1,1,2,3,5]
42
43 components_is_jobspec:
44   # Helps test that clients cope with funny-shaped components.
45   # For an example, see #3321.
46   uuid: zzzzz-p5p6p-jobspeccomponts
47   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
48   created_at: 2014-04-14 12:35:04 -0400
49   updated_at: 2014-04-14 12:35:04 -0400
50   modified_at: 2014-04-14 12:35:04 -0400
51   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
52   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
53   name: Pipeline Template with Jobspec Components
54   components:
55     script: foo
56     script_version: master
57     script_parameters:
58       input:
59         required: true
60         dataclass: Collection
61         title: "Foo/bar pair"
62         description: "Provide a collection containing at least two files."
63
64 parameter_with_search:
65   uuid: zzzzz-p5p6p-paramwsearch345
66   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
67   created_at: 2014-04-14 12:35:04 -0400
68   updated_at: 2014-04-14 12:35:04 -0400
69   modified_at: 2014-04-14 12:35:04 -0400
70   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
71   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
72   name: Pipeline Template with Input Parameter with Search
73   components:
74     with-search:
75       script: foo
76       script_version: master
77       script_parameters:
78         input:
79           required: true
80           dataclass: Collection
81           title: "Foo/bar pair"
82           description: "Provide a collection containing at least two files."
83           search_for: sometime  # Matches baz_collection_in_asubproject
84
85 new_pipeline_template:
86   # This template must include components that are not
87   # present in the pipeline instance 'pipeline_with_newer_template',
88   # at least one of which has a script_parameter that is a hash
89   # with a 'dataclass' field (ticket #4000)
90   uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
91   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
92   created_at: 2014-09-14 12:00:00
93   modified_at: 2014-09-16 12:00:00
94   name: Pipeline Template Newer Than Instance
95   components:
96     foo:
97       script: foo
98       script_version: master
99       script_parameters:
100         input:
101           required: true
102           dataclass: Collection
103           title: foo template input
104     bar:
105       script: bar
106       script_version: master
107       script_parameters:
108         input:
109           required: true
110           dataclass: Collection
111           title: bar template input
112
113 pipeline_template_in_fuse_project:
114   uuid: zzzzz-p5p6p-templinfuseproj
115   owner_uuid: zzzzz-j7d0g-0000ownedbyfuse
116   created_at: 2014-04-14 12:35:04 -0400
117   updated_at: 2014-04-14 12:35:04 -0400
118   modified_at: 2014-04-14 12:35:04 -0400
119   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
120   modified_by_user_uuid: zzzzz-tpzed-0fusedrivertest
121   name: pipeline template in FUSE project
122   components:
123     foo_component:
124       script: foo
125       script_version: master
126       script_parameters:
127         input:
128           required: true
129           dataclass: Collection
130           title: "default input"
131           description: "input collection"
132
133 template_with_dataclass_file:
134   uuid: zzzzz-p5p6p-k0xoa0ofxrystgw
135   owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso
136   created_at: 2014-04-14 12:35:04 -0400
137   updated_at: 2014-04-14 12:35:04 -0400
138   modified_at: 2014-04-14 12:35:04 -0400
139   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
140   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
141   name: Two Part Template with dataclass File
142   components:
143     part-one:
144       script: foo
145       script_version: master
146       script_parameters:
147         input:
148           required: true
149           dataclass: File
150           title: "Foo/bar pair"
151           description: "Provide an input file"
152     part-two:
153       script: bar
154       script_version: master
155       script_parameters:
156         input:
157           output_of: part-one
158         integer_with_default:
159           default: 123
160         integer_with_value:
161           value: 123
162         string_with_default:
163           default: baz
164         string_with_value:
165           value: baz
166         plain_string: qux
167         array_with_default: # important to test repeating values in the array!
168           default: [1,1,2,3,5]
169         array_with_value: # important to test repeating values in the array!
170           value: [1,1,2,3,5]
171
172 template_with_dataclass_number:
173   uuid: zzzzz-p5p6p-numbertemplatea
174   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
175   created_at: 2015-01-14 12:35:04 -0400
176   updated_at: 2015-01-14 12:35:04 -0400
177   modified_at: 2015-01-14 12:35:04 -0400
178   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
179   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
180   name: Template with dataclass number
181   components:
182     work:
183       script: foo
184       script_version: master
185       script_parameters:
186         input:
187           required: true
188           dataclass: number
189           title: "Input number"
190
191 pipeline_template_in_publicly_accessible_project:
192   uuid: zzzzz-p5p6p-tmpltpublicproj
193   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
194   created_at: 2014-04-14 12:35:04 -0400
195   updated_at: 2014-04-14 12:35:04 -0400
196   modified_at: 2014-04-14 12:35:04 -0400
197   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
198   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
199   name: Pipeline template in publicly accessible project
200   components:
201     foo_component:
202       script: foo
203       script_version: master
204       script_parameters:
205         input:
206           required: true
207           dataclass: Collection
208           title: "default input"
209           description: "input collection"
210
211 # Used to test renaming when removed from the "aproject" subproject
212 # while another such object with same name exists in home project.
213 template_in_active_user_home_project_to_test_unique_key_violation:
214   uuid: zzzzz-p5p6p-templatsamenam1
215   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
216   created_at: 2013-04-14 12:35:04 -0400
217   updated_at: 2013-04-14 12:35:04 -0400
218   modified_at: 2013-04-14 12:35:04 -0400
219   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
220   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
221   name: Template to test owner uuid and name unique key violation upon removal
222   components:
223     script: foo
224     script_version: master
225     script_parameters:
226       input:
227         required: true
228         dataclass: Collection
229         title: "Foo/bar pair"
230         description: "Provide a collection containing at least two files."
231
232 template_in_asubproject_with_same_name_as_one_in_active_user_home:
233   uuid: zzzzz-p5p6p-templatsamenam2
234   owner_uuid: zzzzz-j7d0g-axqo7eu9pwvna1x
235   created_at: 2013-04-14 12:35:04 -0400
236   updated_at: 2013-04-14 12:35:04 -0400
237   modified_at: 2013-04-14 12:35:04 -0400
238   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
239   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
240   name: Template to test owner uuid and name unique key violation upon removal
241   components:
242     script: foo
243     script_version: master
244     script_parameters:
245       input:
246         required: true
247         dataclass: Collection
248         title: "Foo/bar pair"
249         description: "Provide a collection containing at least two files."
250
251 workflow_with_input_defaults:
252   uuid: zzzzz-p5p6p-aox0k0ofxrystg2
253   owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso
254   created_at: 2014-04-14 12:35:04 -0400
255   updated_at: 2014-04-14 12:35:04 -0400
256   modified_at: 2014-04-14 12:35:04 -0400
257   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
258   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
259   name: Pipeline with default input specifications
260   components:
261     part-one:
262       script: foo
263       script_version: master
264       script_parameters:
265         ex_string:
266           required: true
267           dataclass: string
268         ex_string_def:
269           required: true
270           dataclass: string
271           default: hello-testing-123