9623: Removed fixtures additions meant for Container reuse tests because some of...
[arvados.git] / services / api / test / fixtures / container_requests.yml
1 queued:
2   uuid: zzzzz-xvhdp-cr4queuedcontnr
3   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
4   name: queued
5   state: Committed
6   priority: 1
7   created_at: 2016-01-11 11:11:11.111111111 Z
8   updated_at: 2016-01-11 11:11:11.111111111 Z
9   modified_at: 2016-01-11 11:11:11.111111111 Z
10   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
11   container_image: test
12   cwd: test
13   output_path: test
14   command: ["echo", "hello"]
15   container_uuid: zzzzz-dz642-queuedcontainer
16   runtime_constraints:
17     vcpus: 1
18     ram: 123
19
20 running:
21   uuid: zzzzz-xvhdp-cr4runningcntnr
22   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
23   name: running
24   state: Committed
25   priority: 1
26   created_at: 2016-01-11 11:11:11.111111111 Z
27   updated_at: 2016-01-11 11:11:11.111111111 Z
28   modified_at: 2016-01-11 11:11:11.111111111 Z
29   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
30   container_image: test
31   cwd: test
32   output_path: test
33   command: ["echo", "hello"]
34   container_uuid: zzzzz-dz642-runningcontainr
35   runtime_constraints:
36     vcpus: 1
37     ram: 123
38
39 running-older:
40   uuid: zzzzz-xvhdp-cr4runningcntn2
41   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
42   name: running
43   state: Committed
44   priority: 1
45   created_at: 2016-01-11 11:11:11.111111111 Z
46   updated_at: 2016-01-11 11:11:11.111111111 Z
47   modified_at: 2016-01-12 11:11:11.111111111 Z
48   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
49   container_image: test
50   cwd: test
51   output_path: test
52   command: ["echo", "hello"]
53   container_uuid: zzzzz-dz642-runningcontain2
54   runtime_constraints:
55     vcpus: 1
56     ram: 123
57
58 completed:
59   uuid: zzzzz-xvhdp-cr4completedctr
60   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
61   name: completed container request
62   state: Final
63   priority: 1
64   created_at: <%= 2.minute.ago.to_s(:db) %>
65   updated_at: <%= 1.minute.ago.to_s(:db) %>
66   modified_at: <%= 1.minute.ago.to_s(:db) %>
67   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
68   container_image: test
69   cwd: test
70   output_path: test
71   command: ["echo", "hello"]
72   container_uuid: zzzzz-dz642-compltcontainer
73   runtime_constraints:
74     vcpus: 1
75     ram: 123
76
77 completed-older:
78   uuid: zzzzz-xvhdp-cr4completedcr2
79   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
80   name: completed
81   state: Final
82   priority: 1
83   created_at: 2016-01-11 11:11:11.111111111 Z
84   updated_at: 2016-01-11 11:11:11.111111111 Z
85   modified_at: 2016-01-11 11:11:11.111111111 Z
86   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
87   container_image: test
88   cwd: test
89   output_path: test
90   command: ["echo", "hello"]
91   container_uuid: zzzzz-dz642-compltcontainr2
92   runtime_constraints:
93     vcpus: 1
94     ram: 123
95
96 cr_for_requester:
97   uuid: zzzzz-xvhdp-cr4requestercnt
98   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
99   name: requester_cr
100   state: Final
101   priority: 1
102   created_at: 2016-01-11 11:11:11.111111111 Z
103   updated_at: 2016-01-11 11:11:11.111111111 Z
104   modified_at: 2016-01-11 11:11:11.111111111 Z
105   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
106   container_image: test
107   cwd: test
108   output_path: test
109   command: ["echo", "hello"]
110   container_uuid: zzzzz-dz642-requestercntnr1
111   requesting_container_uuid: zzzzz-dz642-requestingcntnr
112   runtime_constraints:
113     vcpus: 1
114     ram: 123
115
116 cr_for_requester2:
117   uuid: zzzzz-xvhdp-cr4requestercn2
118   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
119   name: requester_cr2
120   state: Final
121   priority: 1
122   created_at: 2016-01-11 11:11:11.111111111 Z
123   updated_at: 2016-01-11 11:11:11.111111111 Z
124   modified_at: 2016-01-11 11:11:11.111111111 Z
125   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
126   container_image: test
127   cwd: test
128   output_path: test
129   command: ["echo", "hello"]
130   requesting_container_uuid: zzzzz-dz642-requestercntnr1
131   runtime_constraints:
132     vcpus: 1
133     ram: 123
134
135 running_anonymous_accessible:
136   uuid: zzzzz-xvhdp-runninganonaccs
137   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
138   name: running anonymously accessible cr
139   state: Committed
140   priority: 1
141   created_at: 2016-01-11 11:11:11.111111111 Z
142   updated_at: 2016-01-11 11:11:11.111111111 Z
143   modified_at: 2016-01-11 11:11:11.111111111 Z
144   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
145   container_image: test
146   cwd: test
147   output_path: test
148   command: ["echo", "hello"]
149   container_uuid: zzzzz-dz642-runningcontain2
150   runtime_constraints:
151     vcpus: 1
152     ram: 123
153
154 cr_for_failed:
155   uuid: zzzzz-xvhdp-cr4failedcontnr
156   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
157   name: cr for container exit code not 0
158   state: Committed
159   priority: 1
160   created_at: 2016-01-11 11:11:11.111111111 Z
161   updated_at: 2016-01-11 11:11:11.111111111 Z
162   modified_at: 2016-01-11 11:11:11.111111111 Z
163   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
164   container_image: test
165   cwd: test
166   output_path: test
167   command: ["echo", "hello"]
168   container_uuid: zzzzz-dz642-failedcntnr
169   runtime_constraints:
170     vcpus: 1
171     ram: 123
172
173 uncommitted:
174   uuid: zzzzz-xvhdp-cr4uncommittedc
175   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
176   name: uncommitted
177   created_at: 2016-01-11 11:11:11.111111111 Z
178   updated_at: 2016-01-11 11:11:11.111111111 Z
179   modified_at: 2016-01-11 11:11:11.111111111 Z
180   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
181   command: ["arvados-cwl-runner", "--local", "--api=containers",
182             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
183   output_path: "/var/spool/cwl"
184   cwd: "/var/spool/cwl"
185   priority: 1
186   state: "Uncommitted"
187   container_image: arvados/jobs
188   mounts: {
189         "/var/lib/cwl/workflow.json": {
190             "kind": "json",
191             "content": {
192                 "cwlVersion": "v1.0",
193                 "class": "CommandLineTool",
194                 "baseCommand": ["echo"],
195                 "inputs": [
196                     {
197                         "doc": "a longer documentation string for this parameter (optional)",
198                         "type": "boolean",
199                         "id": "ex_boolean",
200                         "label": "a short label for this parameter (optional)",
201                         "inputBinding": {"position": 1}
202                     },
203                     {
204                         "type": ["null", "boolean"],
205                         "id": "ex_boolean_opt",
206                         "inputBinding": {"position": 1}
207                     },
208                     {
209                         "doc": "directory selection should present the workbench collection picker",
210                         "type": "Directory",
211                         "id": "ex_dir",
212                         "inputBinding": {"position": 1}
213                     },
214                     {
215                         "type": "double",
216                         "id": "ex_double",
217                         "inputBinding": {"position": 1}
218                     },
219                     {
220                         "doc": "file selection should present the workbench file picker",
221                         "type": "File",
222                         "id": "ex_file",
223                         "inputBinding": {"position": 1}
224                     },
225                     {
226                         "type": "float",
227                         "id": "ex_float",
228                         "inputBinding": {"position": 1}
229                     },
230                     {
231                         "type": "int",
232                         "id": "ex_int",
233                         "inputBinding": {"position": 1}
234                     },
235                     {
236                         "type": ["null", "int"],
237                         "id": "ex_int_opt",
238                         "inputBinding": {"position": 1}
239                     },
240                     {
241                         "type": "long",
242                         "id": "ex_long",
243                         "inputBinding": {"position": 1}
244                     },
245                     {
246                         "type": "string",
247                         "id": "ex_string",
248                         "inputBinding": {"position": 1}
249                     },
250                     {
251                         "type": ["null", "string"],
252                         "id": "ex_string_opt",
253                         "inputBinding": {"position": 1}
254                     },
255                     {
256                         "type": {
257                             "type": "enum",
258                             "symbols": ["a", "b", "c"]
259                         },
260                         "id": "ex_enum",
261                         "inputBinding": {"position": 1}
262                     },
263                     {
264                         "type": ["null", {
265                             "type": "enum",
266                             "symbols": ["a", "b", "c"]
267                         }],
268                         "id": "ex_enum_opt",
269                         "inputBinding": {"position": 1}
270                     }
271                 ],
272                 "outputs": []
273             }
274         },
275         "/var/lib/cwl/cwl.input.json": {
276             "kind": "json",
277             "content": {}
278         },
279         "stdout": {
280             "kind": "file",
281             "path": "/var/spool/cwl/cwl.output.json"
282         },
283         "/var/spool/cwl": {
284             "kind": "collection",
285             "writable": true
286         }
287     }
288   runtime_constraints:
289     vcpus: 1
290     ram: 256000000
291     API: true
292
293 uncommitted_ready_to_run:
294   uuid: zzzzz-xvhdp-cr4uncommittedd
295   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
296   name: uncommitted_ready_to_run
297   created_at: 2016-01-11 11:11:11.111111111 Z
298   updated_at: 2016-01-11 11:11:11.111111111 Z
299   modified_at: 2016-01-11 11:11:11.111111111 Z
300   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
301   command: ["arvados-cwl-runner", "--local", "--api=containers",
302             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
303   output_path: "/var/spool/cwl"
304   cwd: "/var/spool/cwl"
305   priority: 1
306   state: "Uncommitted"
307   container_image: arvados/jobs
308   mounts: {
309         "/var/lib/cwl/workflow.json": {
310             "kind": "json",
311             "content": {
312                 "cwlVersion": "v1.0",
313                 "class": "CommandLineTool",
314                 "baseCommand": ["echo"],
315                 "inputs": [
316                     {
317                         "doc": "a longer documentation string for this parameter (optional)",
318                         "type": "boolean",
319                         "id": "ex_boolean",
320                         "label": "a short label for this parameter (optional)",
321                         "inputBinding": {"position": 1}
322                     },
323                     {
324                         "type": ["null", "boolean"],
325                         "id": "ex_boolean_opt",
326                         "inputBinding": {"position": 1}
327                     },
328                     {
329                         "doc": "directory selection should present the workbench collection picker",
330                         "type": "Directory",
331                         "id": "ex_dir",
332                         "inputBinding": {"position": 1}
333                     },
334                     {
335                         "type": "double",
336                         "id": "ex_double",
337                         "inputBinding": {"position": 1}
338                     },
339                     {
340                         "doc": "file selection should present the workbench file picker",
341                         "type": "File",
342                         "id": "ex_file",
343                         "inputBinding": {"position": 1}
344                     },
345                     {
346                         "type": "float",
347                         "id": "ex_float",
348                         "inputBinding": {"position": 1}
349                     },
350                     {
351                         "type": "int",
352                         "id": "ex_int",
353                         "inputBinding": {"position": 1}
354                     },
355                     {
356                         "type": ["null", "int"],
357                         "id": "ex_int_opt",
358                         "inputBinding": {"position": 1}
359                     },
360                     {
361                         "type": "long",
362                         "id": "ex_long",
363                         "inputBinding": {"position": 1}
364                     },
365                     {
366                         "type": "string",
367                         "id": "ex_string",
368                         "inputBinding": {"position": 1}
369                     },
370                     {
371                         "type": ["null", "string"],
372                         "id": "ex_string_opt",
373                         "inputBinding": {"position": 1}
374                     },
375                     {
376                         "type": {
377                             "type": "enum",
378                             "symbols": ["a", "b", "c"]
379                         },
380                         "id": "ex_enum",
381                         "inputBinding": {"position": 1}
382                     },
383                     {
384                         "type": ["null", {
385                             "type": "enum",
386                             "symbols": ["a", "b", "c"]
387                         }],
388                         "id": "ex_enum_opt",
389                         "inputBinding": {"position": 1}
390                     }
391                 ],
392                 "outputs": []
393             }
394         },
395         "/var/lib/cwl/cwl.input.json": {
396             "kind": "json",
397             "content": {
398               "ex_string_opt": null,
399               "ex_int_opt": null,
400               "ex_boolean": false,
401               "ex_boolean_opt": true,
402               "ex_dir": {
403                 "class": "Directory",
404                 "location": "keep:1f4b0bc7583c2a7f9102c395f4ffc5e3+45",
405                 "arv:collection": "zzzzz-4zz18-znfnqtbbv4spc3w"
406               },
407               "ex_double": 66.0,
408               "ex_file": {
409                 "class": "File",
410                 "location": "keep:1f4b0bc7583c2a7f9102c395f4ffc5e3+45/foo",
411                 "arv:collection": "zzzzz-4zz18-znfnqtbbv4spc3w/foo"
412               },
413               "ex_float": 55.0,
414               "ex_int": 55,
415               "ex_long": 22,
416               "ex_string": "qq",
417               "ex_enum": "a"
418             }
419         },
420         "stdout": {
421             "kind": "file",
422             "path": "/var/spool/cwl/cwl.output.json"
423         },
424         "/var/spool/cwl": {
425             "kind": "collection",
426             "writable": true
427         }
428     }
429   runtime_constraints:
430     vcpus: 1
431     ram: 256000000
432     API: true
433
434 uncommitted-with-directory-input:
435   uuid: zzzzz-xvhdp-cr4uncommitted2
436   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
437   name: uncommitted with directory input
438   created_at: 2016-01-11 11:11:11.111111111 Z
439   updated_at: 2016-01-11 11:11:11.111111111 Z
440   modified_at: 2016-01-11 11:11:11.111111111 Z
441   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
442   command: ["arvados-cwl-runner", "--local", "--api=containers",
443             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
444   output_path: "/var/spool/cwl"
445   cwd: "/var/spool/cwl"
446   priority: 1
447   state: Uncommitted
448   container_image: fa3c1a9cb6783f85f2ecda037e07b8c3+167
449   mounts: {
450         "/var/lib/cwl/workflow.json": {
451             "kind": "json",
452             "content": {
453                 "cwlVersion": "v1.0",
454                 "class": "CommandLineTool",
455                 "baseCommand": ["echo"],
456                 "inputs": [
457                     {
458                         "type": "Directory",
459                         "id": "directory_type",
460                         "inputBinding": {"position": 1}
461                     }
462                 ],
463                 "outputs": []
464             }
465         },
466         "/var/lib/cwl/cwl.input.json": {
467             "kind": "json",
468             "content": {}
469         },
470         "stdout": {
471             "kind": "file",
472             "path": "/var/spool/cwl/cwl.output.json"
473         },
474         "/var/spool/cwl": {
475             "kind": "collection",
476             "writable": true
477         }
478     }
479   runtime_constraints:
480     vcpus: 1
481     ram: 256000000
482     API: true
483
484 uncommitted-with-file-input:
485   uuid: zzzzz-xvhdp-cr4uncommittedf
486   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
487   name: uncommitted with directory input
488   created_at: 2016-01-11 11:11:11.111111111 Z
489   updated_at: 2016-01-11 11:11:11.111111111 Z
490   modified_at: 2016-01-11 11:11:11.111111111 Z
491   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
492   command: ["arvados-cwl-runner", "--local", "--api=containers",
493             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
494   output_path: "/var/spool/cwl"
495   cwd: "/var/spool/cwl"
496   priority: 1
497   state: Uncommitted
498   container_image: fa3c1a9cb6783f85f2ecda037e07b8c3+167
499   mounts: {
500         "/var/lib/cwl/workflow.json": {
501             "kind": "json",
502             "content": {
503                 "cwlVersion": "v1.0",
504                 "class": "CommandLineTool",
505                 "baseCommand": ["echo"],
506                 "inputs": [
507                     {
508                         "type": "File",
509                         "id": "file_type",
510                         "inputBinding": {"position": 1}
511                     }
512                 ],
513                 "outputs": []
514             }
515         },
516         "/var/lib/cwl/cwl.input.json": {
517             "kind": "json",
518             "content": {}
519         },
520         "stdout": {
521             "kind": "file",
522             "path": "/var/spool/cwl/cwl.output.json"
523         },
524         "/var/spool/cwl": {
525             "kind": "collection",
526             "writable": true
527         }
528     }
529   runtime_constraints:
530     vcpus: 1
531     ram: 256000000
532     API: true
533
534 uncommitted-with-required-and-optional-inputs:
535   uuid: zzzzz-xvhdp-cr4uncommitted3
536   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
537   name: uncommitted with required and optional inputs
538   created_at: 2016-01-11 11:11:11.111111111 Z
539   updated_at: 2016-01-11 11:11:11.111111111 Z
540   modified_at: 2016-01-11 11:11:11.111111111 Z
541   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
542   command: ["arvados-cwl-runner", "--local", "--api=containers",
543             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
544   output_path: "/var/spool/cwl"
545   cwd: "/var/spool/cwl"
546   priority: 1
547   state: Uncommitted
548   container_image: fa3c1a9cb6783f85f2ecda037e07b8c3+167
549   mounts: {
550         "/var/lib/cwl/workflow.json": {
551             "kind": "json",
552             "content": {
553                 "cwlVersion": "v1.0",
554                 "class": "CommandLineTool",
555                 "baseCommand": ["echo"],
556                 "inputs": [
557                     {
558                         "type": "int",
559                         "id": "int_required",
560                         "inputBinding": {"position": 1}
561                     },
562                     {
563                         "type": ["null", "int"],
564                         "id": "int_optional",
565                         "inputBinding": {"position": 1}
566                     }
567                 ],
568                 "outputs": []
569             }
570         },
571         "/var/lib/cwl/cwl.input.json": {
572             "kind": "json",
573             "content": {}
574         },
575         "stdout": {
576             "kind": "file",
577             "path": "/var/spool/cwl/cwl.output.json"
578         },
579         "/var/spool/cwl": {
580             "kind": "collection",
581             "writable": true
582         }
583     }
584   runtime_constraints:
585     vcpus: 1
586     ram: 256000000
587     API: true
588
589 # Test Helper trims the rest of the file
590
591 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
592
593 # container requests in project_with_2_pipelines_and_60_crs
594 <% for i in 1..60 do %>
595 cr_<%=i%>_of_60:
596   uuid: zzzzz-xvhdp-oneof60crs<%= i.to_s.rjust(5, '0') %>
597   created_at: <%= ((i+5)/5).hour.ago.to_s(:db) %>
598   owner_uuid: zzzzz-j7d0g-nnncrspipelines
599   name: cr-<%= i.to_s %>
600   output_path: test
601   command: ["echo", "hello"]
602 <% end %>
603
604 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper