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