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