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