Merge branch '5739-no-sqlite3' closes #5739
[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: <%= 1.minute.ago.to_s(:db) %>
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/bar
357
358 pipeline_in_running_state:
359   name: running_with_job
360   uuid: zzzzz-d1hrv-runningpipeline
361   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
362   created_at: <%= 3.1.minute.ago.to_s(:db) %>
363   started_at: <%= 3.1.minute.ago.to_s(:db) %>
364   state: RunningOnServer
365   components:
366    foo:
367     script: foo
368     script_version: master
369     script_parameters: {}
370     job:
371       uuid: zzzzz-8i9sb-pshmckwoma9plh7
372       script_version: master
373
374 running_pipeline_with_complete_job:
375   uuid: zzzzz-d1hrv-partdonepipelin
376   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
377   state: RunningOnServer
378   components:
379    previous:
380     job:
381       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
382       log: zzzzz-4zz18-op4e2lbej01tcvu
383    running:
384     job:
385       uuid: zzzzz-8i9sb-pshmckwoma9plh7
386
387 complete_pipeline_with_two_jobs:
388   uuid: zzzzz-d1hrv-twodonepipeline
389   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
390   state: Complete
391   components:
392    ancient:
393     job:
394       uuid: zzzzz-8i9sb-ahd7cie8jah9qui
395       log: zzzzz-4zz18-op4e2lbej01tcvu
396    previous:
397     job:
398       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
399       log: zzzzz-4zz18-op4e2lbej01tcvu
400
401 failed_pipeline_with_two_jobs:
402   uuid: zzzzz-d1hrv-twofailpipeline
403   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
404   state: Failed
405   components:
406    ancient:
407     job:
408       uuid: zzzzz-8i9sb-ahd7cie8jah9qui
409       log: zzzzz-4zz18-op4e2lbej01tcvu
410    previous:
411     job:
412       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
413       log: zzzzz-4zz18-op4e2lbej01tcvu
414
415 # Test Helper trims the rest of the file
416
417 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
418
419 # pipelines in project_with_10_pipelines
420 <% for i in 1..10 do %>
421 pipeline_<%=i%>_of_10:
422   name: pipeline_<%= i %>
423   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
424   owner_uuid: zzzzz-j7d0g-000010pipelines
425   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
426   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
427   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
428   state: Failed
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 # pipelines in project_with_2_pipelines_and_100_jobs
441 <% for i in 1..2 do %>
442 pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
443   name: pipeline_<%= i %>
444   state: New
445   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
446   owner_uuid: zzzzz-j7d0g-nnjobspipelines
447   created_at: <%= i.minute.ago.to_s(:db) %>
448   components:
449     foo:
450       script: foo
451       script_version: master
452       script_parameters:
453         input:
454           required: true
455           dataclass: Collection
456           title: foo instance input
457 <% end %>
458
459 # pipelines in project_with_25_pipelines
460 <% for i in 1..25 do %>
461 pipeline_<%=i%>_of_25:
462   name: pipeline_<%=i%>
463   state: Failed
464   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
465   owner_uuid: zzzzz-j7d0g-000025pipelines
466   created_at: <%= i.hour.ago.to_s(:db) %>
467   started_at: <%= i.hour.ago.to_s(:db) %>
468   finished_at: <%= i.minute.ago.to_s(:db) %>
469   components:
470     foo:
471       script: foo
472       script_version: master
473       script_parameters:
474         input:
475           required: true
476           dataclass: Collection
477           title: foo instance input
478 <% end %>
479
480 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper