5417: a few changes from based on review feedback. also, account for dataclass=File...
[arvados.git] / services / api / test / fixtures / pipeline_instances.yml
1 new_pipeline:
2   state: New
3   uuid: zzzzz-d1hrv-f4gneyn6br1xize
4   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
5   created_at: <%= 1.minute.ago.to_s(:db) %>
6
7 new_pipeline_in_subproject:
8   state: New
9   uuid: zzzzz-d1hrv-subprojpipeline
10   owner_uuid: zzzzz-j7d0g-axqo7eu9pwvna1x
11   created_at: <%= 1.minute.ago.to_s(:db) %>
12
13 has_component_with_no_script_parameters:
14   state: Ready
15   uuid: zzzzz-d1hrv-1xfj6xkicf2muk2
16   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
17   created_at: <%= 10.minute.ago.to_s(:db) %>
18   components:
19    foo:
20     script: foo
21     script_version: master
22     script_parameters: {}
23
24 has_component_with_empty_script_parameters:
25   state: Ready
26   uuid: zzzzz-d1hrv-jq16l10gcsnyumo
27   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
28   created_at: <%= 3.minute.ago.to_s(:db) %>
29   components:
30    foo:
31     script: foo
32     script_version: master
33
34 has_component_with_completed_jobs:
35   # Test that the job "started_at" and "finished_at" fields are parsed
36   # into Time fields when rendering. These jobs must *not* have their
37   # own fixtures; the point is to force the
38   # pipeline_instances_controller_test in Workbench to parse the
39   # "components" field. (The relevant code paths are also used when a
40   # user has permission to read the pipeline instance itself, but not
41   # the jobs referenced by its components hash.)
42   state: Complete
43   uuid: zzzzz-d1hrv-i3e77t9z5y8j9cc
44   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
45   components:
46    foo:
47     script: foo
48     script_version: master
49     script_parameters: {}
50     job:
51       uuid: zzzzz-8i9sb-rft1xdewxkwgxnz
52       script_version: master
53       created_at: <%= 10.minute.ago.to_s(:db) %>
54       started_at: <%= 10.minute.ago.to_s(:db) %>
55       finished_at: <%= 9.minute.ago.to_s(:db) %>
56       state: Complete
57       tasks_summary:
58         failed: 0
59         todo: 0
60         running: 0
61         done: 1
62    bar:
63     script: bar
64     script_version: master
65     script_parameters: {}
66     job:
67       uuid: zzzzz-8i9sb-r2dtbzr6bfread7
68       script_version: master
69       created_at: <%= 9.minute.ago.to_s(:db) %>
70       started_at: <%= 9.minute.ago.to_s(:db) %>
71       state: Running
72       tasks_summary:
73         failed: 0
74         todo: 1
75         running: 2
76         done: 3
77    baz:
78     script: baz
79     script_version: master
80     script_parameters: {}
81     job:
82       uuid: zzzzz-8i9sb-c7408rni11o7r6s
83       script_version: master
84       created_at: <%= 9.minute.ago.to_s(:db) %>
85       state: Queued
86       tasks_summary: {}
87
88 has_job:
89   name: pipeline_with_job
90   state: Ready
91   uuid: zzzzz-d1hrv-1yfj6xkidf2muk3
92   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
93   created_at: <%= 3.1.minute.ago.to_s(:db) %>
94   components:
95    foo:
96     script: foo
97     script_version: master
98     script_parameters: {}
99     job: {
100             uuid: zzzzz-8i9sb-pshmckwoma9plh7,
101             script_version: master
102          }
103
104 components_is_jobspec:
105   # Helps test that clients cope with funny-shaped components.
106   # For an example, see #3321.
107   uuid: zzzzz-d1hrv-jobspeccomponts
108   created_at: <%= 30.minute.ago.to_s(:db) %>
109   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
110   created_at: 2014-04-14 12:35:04 -0400
111   updated_at: 2014-04-14 12:35:04 -0400
112   modified_at: 2014-04-14 12:35:04 -0400
113   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
114   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
115   state: RunningOnServer
116   components:
117     script: foo
118     script_version: master
119     script_parameters:
120       input:
121         required: true
122         dataclass: Collection
123         title: "Foo/bar pair"
124         description: "Provide a collection containing at least two files."
125
126 pipeline_with_tagged_collection_input:
127   name: pipeline_with_tagged_collection_input
128   state: Ready
129   uuid: zzzzz-d1hrv-1yfj61234abcdk3
130   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
131   created_at: <%= 3.1.minute.ago.to_s(:db) %>
132   components:
133     part-one:
134       script_parameters:
135         input:
136           value: zzzzz-4zz18-znfnqtbbv4spc3w
137
138 pipeline_to_merge_params:
139   name: pipeline_to_merge_params
140   state: Ready
141   uuid: zzzzz-d1hrv-1yfj6dcba4321k3
142   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
143   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
144   created_at: <%= 3.1.minute.ago.to_s(:db) %>
145   components:
146     part-one:
147       script_parameters:
148         input:
149           required: true
150           dataclass: Collection
151           title: "Foo/bar pair"
152           description: "Provide a collection containing at least two files."
153     part-two:
154       script_parameters:
155         input:
156           output_of: part-one
157         integer_with_default:
158           default: 123
159         integer_with_value:
160           value: 123
161         string_with_default:
162           default: baz
163         string_with_value:
164           value: baz
165         plain_string: qux
166         array_with_default:
167           default: [1,1,2,3,5]
168         array_with_value:
169           value: [1,1,2,3,5]
170
171 pipeline_with_newer_template:
172   state: Complete
173   uuid: zzzzz-d1hrv-9fm8l10i9z2kqc6
174   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
175   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
176   created_at: 2014-09-15 12:00:00
177   components:
178     foo:
179       script: foo
180       script_version: master
181       script_parameters:
182         input:
183           required: true
184           dataclass: Collection
185           title: foo instance input
186
187 pipeline_instance_owned_by_fuse:
188   state: Complete
189   uuid: zzzzz-d1hrv-ri9dvgkgqs9y09j
190   owner_uuid: zzzzz-tpzed-0fusedrivertest
191   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
192   created_at: 2014-09-15 12:00:00
193   name: "pipeline instance owned by FUSE"
194   components:
195     foo:
196       script: foo
197       script_version: master
198       script_parameters:
199         input:
200           required: true
201           dataclass: Collection
202           title: foo instance input
203
204 pipeline_instance_in_fuse_project:
205   state: Complete
206   uuid: zzzzz-d1hrv-scarxiyajtshq3l
207   owner_uuid: zzzzz-j7d0g-0000ownedbyfuse
208   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
209   created_at: 2014-09-15 12:00:00
210   name: "pipeline instance in FUSE project"
211   components:
212     foo:
213       script: foo
214       script_version: master
215       script_parameters:
216         input:
217           required: true
218           dataclass: Collection
219           title: foo instance input
220
221 pipeline_owned_by_active_in_aproject:
222   name: Completed pipeline in A Project
223   state: Complete
224   uuid: zzzzz-d1hrv-ju5ghi0i9z2kqc6
225   owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso
226   created_at: 2014-09-15 12:00:00
227   components:
228     foo:
229       script: foo
230       script_version: master
231       script_parameters:
232         input:
233           required: true
234           dataclass: Collection
235           title: foo instance input
236
237 pipeline_owned_by_active_in_home:
238   name: Completed pipeline in active user home
239   state: Complete
240   uuid: zzzzz-d1hrv-lihrbd0i9z2kqc6
241   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
242   created_at: 2014-09-15 12:00:00
243   components:
244     foo:
245       script: foo
246       script_version: master
247       script_parameters:
248         input:
249           required: true
250           dataclass: Collection
251           title: foo instance input
252
253 pipeline_in_publicly_accessible_project:
254   uuid: zzzzz-d1hrv-n68vc490mloy4fi
255   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
256   name: Pipeline in publicly accessible project
257   pipeline_template_uuid: zzzzz-p5p6p-tmpltpublicproj
258   state: Complete
259   created_at: 2014-09-15 12:00:00
260   components:
261     foo:
262       script: foo
263       script_version: master
264       script_parameters:
265         input:
266           required: true
267           dataclass: Collection
268           title: foo instance input
269       job:
270         uuid: zzzzz-8i9sb-jyq01m7in1jlofj
271         repository: active/foo
272         script: foo
273         script_version: master
274         script_parameters:
275           input: zzzzz-4zz18-4en62shvi99lxd4
276         log: zzzzz-4zz18-4en62shvi99lxd4
277         output: b519d9cb706a29fc7ea24dbea2f05851+93
278         state: Complete
279
280 pipeline_in_publicly_accessible_project_but_other_objects_elsewhere:
281   uuid: zzzzz-d1hrv-pisharednotobjs
282   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
283   name: Pipeline in public project with other objects elsewhere
284   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
285   state: Complete
286   created_at: 2014-09-15 12:00:00
287   components:
288     foo:
289       script: foo
290       script_version: master
291       script_parameters:
292         input:
293           required: true
294           dataclass: Collection
295           title: foo instance input
296       job:
297         uuid: zzzzz-8i9sb-aceg2bnq7jt7kon
298         repository: active/foo
299         script: foo
300         script_version: master
301         script_parameters:
302           input: zzzzz-4zz18-bv31uwvy3neko21
303         log: zzzzz-4zz18-bv31uwvy3neko21
304         output: zzzzz-4zz18-bv31uwvy3neko21
305         state: Complete
306
307 new_pipeline_in_publicly_accessible_project:
308   uuid: zzzzz-d1hrv-newpisharedobjs
309   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
310   name: Pipeline in New state in publicly accessible project
311   pipeline_template_uuid: zzzzz-p5p6p-tmpltpublicproj
312   state: New
313   created_at: 2014-09-15 12:00:00
314   components:
315     foo:
316       script: foo
317       script_version: master
318       script_parameters:
319         input:
320           required: true
321           dataclass: Collection
322           value: b519d9cb706a29fc7ea24dbea2f05851+93
323
324 new_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere:
325   uuid: zzzzz-d1hrv-newsharenotobjs
326   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
327   name: Pipeline in New state in public project with objects elsewhere
328   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
329   state: New
330   created_at: 2014-09-15 12:00:00
331   components:
332     foo:
333       script: foo
334       script_version: master
335       script_parameters:
336         input:
337           required: true
338           dataclass: Collection
339           value: zzzzz-4zz18-bv31uwvy3neko21
340
341 new_pipeline_in_publicly_accessible_project_with_dataclass_file_and_other_objects_elsewhere:
342   uuid: zzzzz-d1hrv-newsharenotfile
343   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
344   name: Pipeline in public project in New state with file type data class with objects elsewhere
345   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
346   state: New
347   created_at: 2014-09-15 12:00:00
348   components:
349     foo:
350       script: foo
351       script_version: master
352       script_parameters:
353         input:
354           required: true
355           dataclass: File
356           value: zzzzz-4zz18-bv31uwvy3neko21
357
358 pipeline_in_running_state:
359   name: running_with_job
360   state: Ready
361   uuid: zzzzz-d1hrv-runningpipeline
362   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
363   created_at: <%= 3.1.minute.ago.to_s(:db) %>
364   started_at: <%= 3.1.minute.ago.to_s(:db) %>
365   state: RunningOnServer
366   components:
367    foo:
368     script: foo
369     script_version: master
370     script_parameters: {}
371     job:
372       uuid: zzzzz-8i9sb-pshmckwoma9plh7
373       script_version: master
374
375 # Test Helper trims the rest of the file
376
377 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
378
379 # pipelines in project_with_10_pipelines
380 <% for i in 1..10 do %>
381 pipeline_<%=i%>_of_10:
382   name: pipeline_<%= i %>
383   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
384   owner_uuid: zzzzz-j7d0g-000010pipelines
385   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
386   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
387   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
388   state: Failed
389   components:
390     foo:
391       script: foo
392       script_version: master
393       script_parameters:
394         input:
395           required: true
396           dataclass: Collection
397           title: foo instance input
398 <% end %>
399
400 # pipelines in project_with_2_pipelines_and_100_jobs
401 <% for i in 1..2 do %>
402 pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
403   name: pipeline_<%= i %>
404   state: New
405   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
406   owner_uuid: zzzzz-j7d0g-nnjobspipelines
407   created_at: <%= i.minute.ago.to_s(:db) %>
408   components:
409     foo:
410       script: foo
411       script_version: master
412       script_parameters:
413         input:
414           required: true
415           dataclass: Collection
416           title: foo instance input
417 <% end %>
418
419 # pipelines in project_with_25_pipelines
420 <% for i in 1..25 do %>
421 pipeline_<%=i%>_of_25:
422   name: pipeline_<%=i%>
423   state: Failed
424   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
425   owner_uuid: zzzzz-j7d0g-000025pipelines
426   created_at: <%= i.hour.ago.to_s(:db) %>
427   started_at: <%= i.hour.ago.to_s(:db) %>
428   finished_at: <%= i.minute.ago.to_s(:db) %>
429   components:
430     foo:
431       script: foo
432       script_version: master
433       script_parameters:
434         input:
435           required: true
436           dataclass: Collection
437           title: foo instance input
438 <% end %>
439
440 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper