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