Merge branch 'master' into 5365-not-link-unreadables
[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         script_version: master
272         log: zzzzz-4zz18-4en62shvi99lxd4
273         output: b519d9cb706a29fc7ea24dbea2f05851+93
274         state: Complete
275
276 pipeline_in_publicly_accessible_project_but_other_objects_elsewhere:
277   uuid: zzzzz-d1hrv-pisharednotobjs
278   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
279   name: Pipeline in public project with other objects elsewhere
280   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
281   state: Complete
282   created_at: 2014-09-15 12:00:00
283   components:
284     foo:
285       script: foo
286       script_version: master
287       script_parameters:
288         input:
289           required: true
290           dataclass: Collection
291           title: foo instance input
292       job:
293         uuid: zzzzz-8i9sb-aceg2bnq7jt7kon
294         script_version: master
295         log: zzzzz-4zz18-bv31uwvy3neko21
296         output: zzzzz-4zz18-bv31uwvy3neko21
297         state: Complete
298
299 pipeline_in_running_state:
300   name: running_with_job
301   state: Ready
302   uuid: zzzzz-d1hrv-runningpipeline
303   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
304   created_at: <%= 3.1.minute.ago.to_s(:db) %>
305   started_at: <%= 3.1.minute.ago.to_s(:db) %>
306   state: RunningOnServer
307   components:
308    foo:
309     script: foo
310     script_version: master
311     script_parameters: {}
312     job:
313       uuid: zzzzz-8i9sb-pshmckwoma9plh7
314       script_version: master
315
316 # Test Helper trims the rest of the file
317
318 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
319
320 # pipelines in project_with_10_pipelines
321 <% for i in 1..10 do %>
322 pipeline_<%=i%>_of_10:
323   name: pipeline_<%= i %>
324   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
325   owner_uuid: zzzzz-j7d0g-000010pipelines
326   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
327   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
328   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
329   state: Failed
330   components:
331     foo:
332       script: foo
333       script_version: master
334       script_parameters:
335         input:
336           required: true
337           dataclass: Collection
338           title: foo instance input
339 <% end %>
340
341 # pipelines in project_with_2_pipelines_and_100_jobs
342 <% for i in 1..2 do %>
343 pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
344   name: pipeline_<%= i %>
345   state: New
346   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
347   owner_uuid: zzzzz-j7d0g-nnjobspipelines
348   created_at: <%= i.minute.ago.to_s(:db) %>
349   components:
350     foo:
351       script: foo
352       script_version: master
353       script_parameters:
354         input:
355           required: true
356           dataclass: Collection
357           title: foo instance input
358 <% end %>
359
360 # pipelines in project_with_25_pipelines
361 <% for i in 1..25 do %>
362 pipeline_<%=i%>_of_25:
363   name: pipeline_<%=i%>
364   state: Failed
365   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
366   owner_uuid: zzzzz-j7d0g-000025pipelines
367   created_at: <%= i.hour.ago.to_s(:db) %>
368   started_at: <%= i.hour.ago.to_s(:db) %>
369   finished_at: <%= i.minute.ago.to_s(:db) %>
370   components:
371     foo:
372       script: foo
373       script_version: master
374       script_parameters:
375         input:
376           required: true
377           dataclass: Collection
378           title: foo instance input
379 <% end %>
380
381 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper