9514: Refactor job log related bit out of log_viewer.js into job_log_viewer.js
[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 requester:
97   uuid: zzzzz-xvhdp-9zacv3o1xw6sxz5
98   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
99   name: requester
100   state: Committed
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: /
108   output_path: /output
109   command: ["request-another-container", "echo", "hello"]
110   container_uuid: zzzzz-dz642-requestingcntnr
111   runtime_constraints:
112     vcpus: 1
113     ram: 123
114
115 cr_for_requester:
116   uuid: zzzzz-xvhdp-cr4requestercnt
117   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
118   name: requester_cr
119   state: Final
120   priority: 1
121   created_at: 2016-01-11 11:11:11.111111111 Z
122   updated_at: 2016-01-11 11:11:11.111111111 Z
123   modified_at: 2016-01-11 11:11:11.111111111 Z
124   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
125   container_image: test
126   cwd: test
127   output_path: test
128   command: ["echo", "hello"]
129   container_uuid: zzzzz-dz642-requestercntnr1
130   requesting_container_uuid: zzzzz-dz642-requestingcntnr
131   runtime_constraints:
132     vcpus: 1
133     ram: 123
134
135 cr_for_requester2:
136   uuid: zzzzz-xvhdp-cr4requestercn2
137   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
138   name: requester_cr2
139   state: Final
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   requesting_container_uuid: zzzzz-dz642-requestercntnr1
150   runtime_constraints:
151     vcpus: 1
152     ram: 123
153
154 running_anonymous_accessible:
155   uuid: zzzzz-xvhdp-runninganonaccs
156   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
157   name: running anonymously accessible cr
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-runningcontain2
169   runtime_constraints:
170     vcpus: 1
171     ram: 123
172
173 cr_for_failed:
174   uuid: zzzzz-xvhdp-cr4failedcontnr
175   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
176   name: cr for container exit code not 0
177   state: Committed
178   priority: 1
179   created_at: 2016-01-11 11:11:11.111111111 Z
180   updated_at: 2016-01-11 11:11:11.111111111 Z
181   modified_at: 2016-01-11 11:11:11.111111111 Z
182   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
183   container_image: test
184   cwd: test
185   output_path: test
186   command: ["echo", "hello"]
187   container_uuid: zzzzz-dz642-failedcontainr1
188   runtime_constraints:
189     vcpus: 1
190     ram: 123
191
192 uncommitted:
193   uuid: zzzzz-xvhdp-cr4uncommittedc
194   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
195   name: uncommitted
196   created_at: 2016-01-11 11:11:11.111111111 Z
197   updated_at: 2016-01-11 11:11:11.111111111 Z
198   modified_at: 2016-01-11 11:11:11.111111111 Z
199   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
200   command: ["arvados-cwl-runner", "--local", "--api=containers",
201             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
202   output_path: "/var/spool/cwl"
203   cwd: "/var/spool/cwl"
204   priority: 1
205   state: "Uncommitted"
206   container_image: arvados/jobs
207   mounts: {
208         "/var/lib/cwl/workflow.json": {
209             "kind": "json",
210             "content": {
211                 "cwlVersion": "v1.0",
212                 "$graph": [{
213                 "id": "#main",
214                 "class": "CommandLineTool",
215                 "baseCommand": ["echo"],
216                 "inputs": [
217                     {
218                         "doc": "a longer documentation string for this parameter (optional)",
219                         "type": "boolean",
220                         "id": "ex_boolean",
221                         "label": "a short label for this parameter (optional)",
222                         "inputBinding": {"position": 1}
223                     },
224                     {
225                         "type": ["null", "boolean"],
226                         "id": "ex_boolean_opt",
227                         "inputBinding": {"position": 1}
228                     },
229                     {
230                         "doc": "directory selection should present the workbench collection picker",
231                         "type": "Directory",
232                         "id": "ex_dir",
233                         "inputBinding": {"position": 1}
234                     },
235                     {
236                         "type": "double",
237                         "id": "ex_double",
238                         "inputBinding": {"position": 1}
239                     },
240                     {
241                         "doc": "file selection should present the workbench file picker",
242                         "type": "File",
243                         "id": "ex_file",
244                         "inputBinding": {"position": 1}
245                     },
246                     {
247                         "type": "float",
248                         "id": "ex_float",
249                         "inputBinding": {"position": 1}
250                     },
251                     {
252                         "type": "int",
253                         "id": "ex_int",
254                         "inputBinding": {"position": 1}
255                     },
256                     {
257                         "type": ["null", "int"],
258                         "id": "ex_int_opt",
259                         "inputBinding": {"position": 1}
260                     },
261                     {
262                         "type": "long",
263                         "id": "ex_long",
264                         "inputBinding": {"position": 1}
265                     },
266                     {
267                         "type": "string",
268                         "id": "ex_string",
269                         "inputBinding": {"position": 1}
270                     },
271                     {
272                         "type": ["null", "string"],
273                         "id": "ex_string_opt",
274                         "inputBinding": {"position": 1}
275                     },
276                     {
277                         "type": {
278                             "type": "enum",
279                             "symbols": ["a", "b", "c"]
280                         },
281                         "id": "ex_enum",
282                         "inputBinding": {"position": 1}
283                     },
284                     {
285                         "type": ["null", {
286                             "type": "enum",
287                             "symbols": ["a", "b", "c"]
288                         }],
289                         "id": "ex_enum_opt",
290                         "inputBinding": {"position": 1}
291                     }
292                 ],
293                 "outputs": []
294             }]
295           }
296         },
297         "/var/lib/cwl/cwl.input.json": {
298             "kind": "json",
299             "content": {}
300         },
301         "stdout": {
302             "kind": "file",
303             "path": "/var/spool/cwl/cwl.output.json"
304         },
305         "/var/spool/cwl": {
306             "kind": "collection",
307             "writable": true
308         }
309     }
310   runtime_constraints:
311     vcpus: 1
312     ram: 256000000
313     API: true
314
315 uncommitted_ready_to_run:
316   uuid: zzzzz-xvhdp-cr4uncommittedd
317   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
318   name: uncommitted_ready_to_run
319   created_at: 2016-01-11 11:11:11.111111111 Z
320   updated_at: 2016-01-11 11:11:11.111111111 Z
321   modified_at: 2016-01-11 11:11:11.111111111 Z
322   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
323   command: ["arvados-cwl-runner", "--local", "--api=containers",
324             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
325   output_path: "/var/spool/cwl"
326   cwd: "/var/spool/cwl"
327   priority: 1
328   state: "Uncommitted"
329   container_image: arvados/jobs
330   mounts: {
331         "/var/lib/cwl/workflow.json": {
332             "kind": "json",
333             "content": {
334                 "cwlVersion": "v1.0",
335                 "class": "CommandLineTool",
336                 "baseCommand": ["echo"],
337                 "inputs": [
338                     {
339                         "doc": "a longer documentation string for this parameter (optional)",
340                         "type": "boolean",
341                         "id": "ex_boolean",
342                         "label": "a short label for this parameter (optional)",
343                         "inputBinding": {"position": 1}
344                     },
345                     {
346                         "type": ["null", "boolean"],
347                         "id": "ex_boolean_opt",
348                         "inputBinding": {"position": 1}
349                     },
350                     {
351                         "doc": "directory selection should present the workbench collection picker",
352                         "type": "Directory",
353                         "id": "ex_dir",
354                         "inputBinding": {"position": 1}
355                     },
356                     {
357                         "type": "double",
358                         "id": "ex_double",
359                         "inputBinding": {"position": 1}
360                     },
361                     {
362                         "doc": "file selection should present the workbench file picker",
363                         "type": "File",
364                         "id": "ex_file",
365                         "inputBinding": {"position": 1}
366                     },
367                     {
368                         "type": "float",
369                         "id": "ex_float",
370                         "inputBinding": {"position": 1}
371                     },
372                     {
373                         "type": "int",
374                         "id": "ex_int",
375                         "inputBinding": {"position": 1}
376                     },
377                     {
378                         "type": ["null", "int"],
379                         "id": "ex_int_opt",
380                         "inputBinding": {"position": 1}
381                     },
382                     {
383                         "type": "long",
384                         "id": "ex_long",
385                         "inputBinding": {"position": 1}
386                     },
387                     {
388                         "type": "string",
389                         "id": "ex_string",
390                         "inputBinding": {"position": 1}
391                     },
392                     {
393                         "type": ["null", "string"],
394                         "id": "ex_string_opt",
395                         "inputBinding": {"position": 1}
396                     },
397                     {
398                         "type": {
399                             "type": "enum",
400                             "symbols": ["a", "b", "c"]
401                         },
402                         "id": "ex_enum",
403                         "inputBinding": {"position": 1}
404                     },
405                     {
406                         "type": ["null", {
407                             "type": "enum",
408                             "symbols": ["a", "b", "c"]
409                         }],
410                         "id": "ex_enum_opt",
411                         "inputBinding": {"position": 1}
412                     }
413                 ],
414                 "outputs": []
415             }
416         },
417         "/var/lib/cwl/cwl.input.json": {
418             "kind": "json",
419             "content": {
420               "ex_string_opt": null,
421               "ex_int_opt": null,
422               "ex_boolean": false,
423               "ex_boolean_opt": true,
424               "ex_dir": {
425                 "class": "Directory",
426                 "location": "keep:1f4b0bc7583c2a7f9102c395f4ffc5e3+45",
427                 "arv:collection": "zzzzz-4zz18-znfnqtbbv4spc3w"
428               },
429               "ex_double": 66.0,
430               "ex_file": {
431                 "class": "File",
432                 "location": "keep:1f4b0bc7583c2a7f9102c395f4ffc5e3+45/foo",
433                 "arv:collection": "zzzzz-4zz18-znfnqtbbv4spc3w/foo"
434               },
435               "ex_float": 55.0,
436               "ex_int": 55,
437               "ex_long": 22,
438               "ex_string": "qq",
439               "ex_enum": "a"
440             }
441         },
442         "stdout": {
443             "kind": "file",
444             "path": "/var/spool/cwl/cwl.output.json"
445         },
446         "/var/spool/cwl": {
447             "kind": "collection",
448             "writable": true
449         }
450     }
451   runtime_constraints:
452     vcpus: 1
453     ram: 256000000
454     API: true
455
456 uncommitted-with-directory-input:
457   uuid: zzzzz-xvhdp-cr4uncommitted2
458   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
459   name: uncommitted with directory input
460   created_at: 2016-01-11 11:11:11.111111111 Z
461   updated_at: 2016-01-11 11:11:11.111111111 Z
462   modified_at: 2016-01-11 11:11:11.111111111 Z
463   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
464   command: ["arvados-cwl-runner", "--local", "--api=containers",
465             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
466   output_path: "/var/spool/cwl"
467   cwd: "/var/spool/cwl"
468   priority: 1
469   state: Uncommitted
470   container_image: fa3c1a9cb6783f85f2ecda037e07b8c3+167
471   mounts: {
472         "/var/lib/cwl/workflow.json": {
473             "kind": "json",
474             "content": {
475                 "cwlVersion": "v1.0",
476                 "class": "CommandLineTool",
477                 "baseCommand": ["echo"],
478                 "inputs": [
479                     {
480                         "type": "Directory",
481                         "id": "directory_type",
482                         "inputBinding": {"position": 1}
483                     }
484                 ],
485                 "outputs": []
486             }
487         },
488         "/var/lib/cwl/cwl.input.json": {
489             "kind": "json",
490             "content": {}
491         },
492         "stdout": {
493             "kind": "file",
494             "path": "/var/spool/cwl/cwl.output.json"
495         },
496         "/var/spool/cwl": {
497             "kind": "collection",
498             "writable": true
499         }
500     }
501   runtime_constraints:
502     vcpus: 1
503     ram: 256000000
504     API: true
505
506 uncommitted-with-file-input:
507   uuid: zzzzz-xvhdp-cr4uncommittedf
508   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
509   name: uncommitted with directory input
510   created_at: 2016-01-11 11:11:11.111111111 Z
511   updated_at: 2016-01-11 11:11:11.111111111 Z
512   modified_at: 2016-01-11 11:11:11.111111111 Z
513   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
514   command: ["arvados-cwl-runner", "--local", "--api=containers",
515             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
516   output_path: "/var/spool/cwl"
517   cwd: "/var/spool/cwl"
518   priority: 1
519   state: Uncommitted
520   container_image: fa3c1a9cb6783f85f2ecda037e07b8c3+167
521   mounts: {
522         "/var/lib/cwl/workflow.json": {
523             "kind": "json",
524             "content": {
525                 "cwlVersion": "v1.0",
526                 "class": "CommandLineTool",
527                 "baseCommand": ["echo"],
528                 "inputs": [
529                     {
530                         "type": "File",
531                         "id": "file_type",
532                         "inputBinding": {"position": 1}
533                     }
534                 ],
535                 "outputs": []
536             }
537         },
538         "/var/lib/cwl/cwl.input.json": {
539             "kind": "json",
540             "content": {}
541         },
542         "stdout": {
543             "kind": "file",
544             "path": "/var/spool/cwl/cwl.output.json"
545         },
546         "/var/spool/cwl": {
547             "kind": "collection",
548             "writable": true
549         }
550     }
551   runtime_constraints:
552     vcpus: 1
553     ram: 256000000
554     API: true
555
556 uncommitted-with-required-and-optional-inputs:
557   uuid: zzzzz-xvhdp-cr4uncommitted3
558   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
559   name: uncommitted with required and optional inputs
560   created_at: 2016-01-11 11:11:11.111111111 Z
561   updated_at: 2016-01-11 11:11:11.111111111 Z
562   modified_at: 2016-01-11 11:11:11.111111111 Z
563   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
564   command: ["arvados-cwl-runner", "--local", "--api=containers",
565             "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
566   output_path: "/var/spool/cwl"
567   cwd: "/var/spool/cwl"
568   priority: 1
569   state: Uncommitted
570   container_image: fa3c1a9cb6783f85f2ecda037e07b8c3+167
571   mounts: {
572         "/var/lib/cwl/workflow.json": {
573             "kind": "json",
574             "content": {
575                 "cwlVersion": "v1.0",
576                 "class": "CommandLineTool",
577                 "baseCommand": ["echo"],
578                 "inputs": [
579                     {
580                         "type": "int",
581                         "id": "int_required",
582                         "inputBinding": {"position": 1}
583                     },
584                     {
585                         "type": ["null", "int"],
586                         "id": "int_optional",
587                         "inputBinding": {"position": 1}
588                     }
589                 ],
590                 "outputs": []
591             }
592         },
593         "/var/lib/cwl/cwl.input.json": {
594             "kind": "json",
595             "content": {}
596         },
597         "stdout": {
598             "kind": "file",
599             "path": "/var/spool/cwl/cwl.output.json"
600         },
601         "/var/spool/cwl": {
602             "kind": "collection",
603             "writable": true
604         }
605     }
606   runtime_constraints:
607     vcpus: 1
608     ram: 256000000
609     API: true
610
611 # Test Helper trims the rest of the file
612
613 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
614
615 # container requests in project_with_2_pipelines_and_60_crs
616 <% for i in 1..60 do %>
617 cr_<%=i%>_of_60:
618   uuid: zzzzz-xvhdp-oneof60crs<%= i.to_s.rjust(5, '0') %>
619   created_at: <%= ((i+5)/5).hour.ago.to_s(:db) %>
620   owner_uuid: zzzzz-j7d0g-nnncrspipelines
621   name: cr-<%= i.to_s %>
622   output_path: test
623   command: ["echo", "hello"]
624 <% end %>
625
626 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper