2659: hide job re-run button when user is inactive and add fixtures and tests for...
[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 pipeline_in_publicly_accessible_project:
220   uuid: zzzzz-d1hrv-n68vc490mloy4fi
221   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
222   name: Pipeline in publicly accessible project
223   state: Complete
224   created_at: 2014-09-15 12:00:00
225   components:
226     foo:
227       script: foo
228       script_version: master
229       script_parameters:
230         input:
231           required: true
232           dataclass: Collection
233           title: foo instance input
234
235 # Test Helper trims the rest of the file
236
237 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
238
239 # pipelines in project_with_10_pipelines
240 <% for i in 1..10 do %>
241 pipeline_<%=i%>_of_10:
242   name: pipeline_<%= i %>
243   state: Failed
244   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
245   owner_uuid: zzzzz-j7d0g-000010pipelines
246   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
247   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
248   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
249   components:
250     foo:
251       script: foo
252       script_version: master
253       script_parameters:
254         input:
255           required: true
256           dataclass: Collection
257           title: foo instance input
258 <% end %>
259
260 # pipelines in project_with_2_pipelines_and_100_jobs
261 <% for i in 1..2 do %>
262 pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
263   name: pipeline_<%= i %>
264   state: New
265   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
266   owner_uuid: zzzzz-j7d0g-nnjobspipelines
267   created_at: <%= i.minute.ago.to_s(:db) %>
268   components:
269     foo:
270       script: foo
271       script_version: master
272       script_parameters:
273         input:
274           required: true
275           dataclass: Collection
276           title: foo instance input
277 <% end %>
278
279 # pipelines in project_with_25_pipelines
280 <% for i in 1..25 do %>
281 pipeline_<%=i%>_of_25:
282   name: pipeline_<%=i%>
283   state: Failed
284   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
285   owner_uuid: zzzzz-j7d0g-000025pipelines
286   created_at: <%= i.hour.ago.to_s(:db) %>
287   started_at: <%= i.hour.ago.to_s(:db) %>
288   finished_at: <%= i.minute.ago.to_s(:db) %>
289   components:
290     foo:
291       script: foo
292       script_version: master
293       script_parameters:
294         input:
295           required: true
296           dataclass: Collection
297           title: foo instance input
298 <% end %>
299
300 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper