Merge branch '3699-arv-copy'
[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 # Test Helper trims the rest of the file
154
155 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
156
157 # pipelines in project_with_10_pipelines
158 <% for i in 0..9 do %>
159 pipeline_<%=i%>_of_10:
160   name: pipeline_<%= i %>
161   state: Failed
162   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
163   owner_uuid: zzzzz-j7d0g-000010pipelines
164   created_at: <%= (2*i).hour.ago.to_s(:db) %>
165   started_at: <%= (2*i).hour.ago.to_s(:db) %>
166   finished_at: <%= i.minute.ago.to_s(:db) %>
167   components:
168     foo:
169       script: foo
170       script_version: master
171       script_parameters:
172         input:
173           required: true
174           dataclass: Collection
175           title: foo instance input
176 <% end %>
177
178 # pipelines in project_with_2_pipelines_and_200_jobs
179 <% for i in 0..1 do %>
180 pipeline_<%=i%>_of_2_pipelines_and_200_jobs:
181   name: pipeline_<%= i %>
182   state: New
183   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
184   owner_uuid: zzzzz-j7d0g-nnjobspipelines
185   created_at: <%= i.minute.ago.to_s(:db) %>
186   components:
187     foo:
188       script: foo
189       script_version: master
190       script_parameters:
191         input:
192           required: true
193           dataclass: Collection
194           title: foo instance input
195 <% end %>
196
197 # pipelines in project_with_25_pipelines
198 <% for i in 0..24 do %>
199 pipeline_<%=i%>_of_25:
200   name: pipeline_<%=i%>
201   state: Failed
202   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
203   owner_uuid: zzzzz-j7d0g-000025pipelines
204   created_at: <%= i.hour.ago.to_s(:db) %>
205   started_at: <%= i.hour.ago.to_s(:db) %>
206   finished_at: <%= i.minute.ago.to_s(:db) %>
207   components:
208     foo:
209       script: foo
210       script_version: master
211       script_parameters:
212         input:
213           required: true
214           dataclass: Collection
215           title: foo instance input
216 <% end %>
217
218 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper