184e7228180e3811613de43878a8fb9f06d0f58a
[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
36   # parsed into Time fields when rendering. This job must *not*
37   # have its own fixture; the point is to force the
38   # pipeline_instances_controller_test in Workbench to parse
39   # the "components" field.
40   state: Complete
41   uuid: zzzzz-d1hrv-i3e77t9z5y8j9cc
42   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
43   components:
44    foo:
45     script: foo
46     script_version: master
47     script_parameters: {}
48     job:
49       uuid: zzzzz-8i9sb-rft1xdewxkwgxnz
50       script_version: master
51       started_at: <%= 10.minute.ago.to_s(:db) %>
52       finished_at: <%= 9.minute.ago.to_s(:db) %>
53
54 has_job:
55   name: pipeline_with_job
56   state: Ready
57   uuid: zzzzz-d1hrv-1yfj6xkidf2muk3
58   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
59   created_at: <%= 3.1.minute.ago.to_s(:db) %>
60   components:
61    foo:
62     script: foo
63     script_version: master
64     script_parameters: {}
65     job: {
66             uuid: zzzzz-8i9sb-pshmckwoma9plh7,
67             script_version: master
68          }
69
70 components_is_jobspec:
71   # Helps test that clients cope with funny-shaped components.
72   # For an example, see #3321.
73   uuid: zzzzz-d1hrv-jobspeccomponts
74   created_at: <%= 30.minute.ago.to_s(:db) %>
75   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
76   created_at: 2014-04-14 12:35:04 -0400
77   updated_at: 2014-04-14 12:35:04 -0400
78   modified_at: 2014-04-14 12:35:04 -0400
79   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
80   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
81   state: RunningOnServer
82   components:
83     script: foo
84     script_version: master
85     script_parameters:
86       input:
87         required: true
88         dataclass: Collection
89         title: "Foo/bar pair"
90         description: "Provide a collection containing at least two files."
91
92 pipeline_with_tagged_collection_input:
93   name: pipeline_with_tagged_collection_input
94   state: Ready
95   uuid: zzzzz-d1hrv-1yfj61234abcdk3
96   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
97   created_at: <%= 3.1.minute.ago.to_s(:db) %>
98   components:
99     part-one:
100       script_parameters:
101         input:
102           value: zzzzz-4zz18-znfnqtbbv4spc3w
103
104 pipeline_to_merge_params:
105   name: pipeline_to_merge_params
106   state: Ready
107   uuid: zzzzz-d1hrv-1yfj6dcba4321k3
108   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
109   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
110   created_at: <%= 3.1.minute.ago.to_s(:db) %>
111   components:
112     part-one:
113       script_parameters:
114         input:
115           required: true
116           dataclass: Collection
117           title: "Foo/bar pair"
118           description: "Provide a collection containing at least two files."
119     part-two:
120       script_parameters:
121         input:
122           output_of: part-one
123         integer_with_default:
124           default: 123
125         integer_with_value:
126           value: 123
127         string_with_default:
128           default: baz
129         string_with_value:
130           value: baz
131         plain_string: qux
132         array_with_default:
133           default: [1,1,2,3,5]
134         array_with_value:
135           value: [1,1,2,3,5]
136
137 pipeline_with_newer_template:
138   state: Complete
139   uuid: zzzzz-d1hrv-9fm8l10i9z2kqc6
140   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
141   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
142   created_at: 2014-09-15 12:00:00
143   components:
144     foo:
145       script: foo
146       script_version: master
147       script_parameters:
148         input:
149           required: true
150           dataclass: Collection
151           title: foo instance input
152
153 pipeline_instance_owned_by_fuse:
154   state: Complete
155   uuid: zzzzz-d1hrv-ri9dvgkgqs9y09j
156   owner_uuid: zzzzz-tpzed-0fusedrivertest
157   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
158   created_at: 2014-09-15 12:00:00
159   name: "pipeline instance owned by FUSE"
160   components:
161     foo:
162       script: foo
163       script_version: master
164       script_parameters:
165         input:
166           required: true
167           dataclass: Collection
168           title: foo instance input
169
170 pipeline_instance_in_fuse_project:
171   state: Complete
172   uuid: zzzzz-d1hrv-scarxiyajtshq3l
173   owner_uuid: zzzzz-j7d0g-0000ownedbyfuse
174   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
175   created_at: 2014-09-15 12:00:00
176   name: "pipeline instance in FUSE project"
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_owned_by_active_in_aproject:
188   name: Completed pipeline in A Project
189   state: Complete
190   uuid: zzzzz-d1hrv-ju5ghi0i9z2kqc6
191   owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso
192   created_at: 2014-09-15 12:00:00
193   components:
194     foo:
195       script: foo
196       script_version: master
197       script_parameters:
198         input:
199           required: true
200           dataclass: Collection
201           title: foo instance input
202
203 pipeline_owned_by_active_in_home:
204   name: Completed pipeline in active user home
205   state: Complete
206   uuid: zzzzz-d1hrv-lihrbd0i9z2kqc6
207   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
208   created_at: 2014-09-15 12:00:00
209   components:
210     foo:
211       script: foo
212       script_version: master
213       script_parameters:
214         input:
215           required: true
216           dataclass: Collection
217           title: foo instance input
218
219 # Test Helper trims the rest of the file
220
221 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
222
223 # pipelines in project_with_10_pipelines
224 <% for i in 1..10 do %>
225 pipeline_<%=i%>_of_10:
226   name: pipeline_<%= i %>
227   state: Failed
228   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
229   owner_uuid: zzzzz-j7d0g-000010pipelines
230   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
231   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
232   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
233   components:
234     foo:
235       script: foo
236       script_version: master
237       script_parameters:
238         input:
239           required: true
240           dataclass: Collection
241           title: foo instance input
242 <% end %>
243
244 # pipelines in project_with_2_pipelines_and_100_jobs
245 <% for i in 1..2 do %>
246 pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
247   name: pipeline_<%= i %>
248   state: New
249   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
250   owner_uuid: zzzzz-j7d0g-nnjobspipelines
251   created_at: <%= i.minute.ago.to_s(:db) %>
252   components:
253     foo:
254       script: foo
255       script_version: master
256       script_parameters:
257         input:
258           required: true
259           dataclass: Collection
260           title: foo instance input
261 <% end %>
262
263 # pipelines in project_with_25_pipelines
264 <% for i in 1..25 do %>
265 pipeline_<%=i%>_of_25:
266   name: pipeline_<%=i%>
267   state: Failed
268   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
269   owner_uuid: zzzzz-j7d0g-000025pipelines
270   created_at: <%= i.hour.ago.to_s(:db) %>
271   started_at: <%= i.hour.ago.to_s(:db) %>
272   finished_at: <%= i.minute.ago.to_s(:db) %>
273   components:
274     foo:
275       script: foo
276       script_version: master
277       script_parameters:
278         input:
279           required: true
280           dataclass: Collection
281           title: foo instance input
282 <% end %>
283
284 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper