Merge branch 'master' into 3761-pull-list-worker
[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   state: Complete
258   created_at: 2014-09-15 12:00:00
259   components:
260     foo:
261       script: foo
262       script_version: master
263       script_parameters:
264         input:
265           required: true
266           dataclass: Collection
267           title: foo instance input
268
269 pipeline_in_running_state:
270   name: running_with_job
271   state: Ready
272   uuid: zzzzz-d1hrv-runningpipeline
273   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
274   created_at: <%= 3.1.minute.ago.to_s(:db) %>
275   started_at: <%= 3.1.minute.ago.to_s(:db) %>
276   state: RunningOnServer
277   components:
278    foo:
279     script: foo
280     script_version: master
281     script_parameters: {}
282     job:
283       uuid: zzzzz-8i9sb-pshmckwoma9plh7
284       script_version: master
285
286 # Test Helper trims the rest of the file
287
288 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
289
290 # pipelines in project_with_10_pipelines
291 <% for i in 1..10 do %>
292 pipeline_<%=i%>_of_10:
293   name: pipeline_<%= i %>
294   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
295   owner_uuid: zzzzz-j7d0g-000010pipelines
296   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
297   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
298   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
299   state: Failed
300   components:
301     foo:
302       script: foo
303       script_version: master
304       script_parameters:
305         input:
306           required: true
307           dataclass: Collection
308           title: foo instance input
309 <% end %>
310
311 # pipelines in project_with_2_pipelines_and_100_jobs
312 <% for i in 1..2 do %>
313 pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
314   name: pipeline_<%= i %>
315   state: New
316   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
317   owner_uuid: zzzzz-j7d0g-nnjobspipelines
318   created_at: <%= i.minute.ago.to_s(:db) %>
319   components:
320     foo:
321       script: foo
322       script_version: master
323       script_parameters:
324         input:
325           required: true
326           dataclass: Collection
327           title: foo instance input
328 <% end %>
329
330 # pipelines in project_with_25_pipelines
331 <% for i in 1..25 do %>
332 pipeline_<%=i%>_of_25:
333   name: pipeline_<%=i%>
334   state: Failed
335   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
336   owner_uuid: zzzzz-j7d0g-000025pipelines
337   created_at: <%= i.hour.ago.to_s(:db) %>
338   started_at: <%= i.hour.ago.to_s(:db) %>
339   finished_at: <%= i.minute.ago.to_s(:db) %>
340   components:
341     foo:
342       script: foo
343       script_version: master
344       script_parameters:
345         input:
346           required: true
347           dataclass: Collection
348           title: foo instance input
349 <% end %>
350
351 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper