Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[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
188 # Test Helper trims the rest of the file
189
190 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
191
192 # pipelines in project_with_10_pipelines
193 <% for i in 1..10 do %>
194 pipeline_<%=i%>_of_10:
195   name: pipeline_<%= i %>
196   state: Failed
197   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
198   owner_uuid: zzzzz-j7d0g-000010pipelines
199   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
200   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
201   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
202   components:
203     foo:
204       script: foo
205       script_version: master
206       script_parameters:
207         input:
208           required: true
209           dataclass: Collection
210           title: foo instance input
211 <% end %>
212
213 # pipelines in project_with_2_pipelines_and_100_jobs
214 <% for i in 1..2 do %>
215 pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
216   name: pipeline_<%= i %>
217   state: New
218   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
219   owner_uuid: zzzzz-j7d0g-nnjobspipelines
220   created_at: <%= i.minute.ago.to_s(:db) %>
221   components:
222     foo:
223       script: foo
224       script_version: master
225       script_parameters:
226         input:
227           required: true
228           dataclass: Collection
229           title: foo instance input
230 <% end %>
231
232 # pipelines in project_with_25_pipelines
233 <% for i in 1..25 do %>
234 pipeline_<%=i%>_of_25:
235   name: pipeline_<%=i%>
236   state: Failed
237   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
238   owner_uuid: zzzzz-j7d0g-000025pipelines
239   created_at: <%= i.hour.ago.to_s(:db) %>
240   started_at: <%= i.hour.ago.to_s(:db) %>
241   finished_at: <%= i.minute.ago.to_s(:db) %>
242   components:
243     foo:
244       script: foo
245       script_version: master
246       script_parameters:
247         input:
248           required: true
249           dataclass: Collection
250           title: foo instance input
251 <% end %>
252
253 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper