14873: Fixes unit tests.
[arvados.git] / services / api / test / fixtures / containers.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 queued:
6   uuid: zzzzz-dz642-queuedcontainer
7   owner_uuid: zzzzz-tpzed-000000000000000
8   state: Queued
9   priority: 1
10   created_at: 2016-01-11 11:11:11.111111111 Z
11   updated_at: 2016-01-11 11:11:11.111111111 Z
12   container_image: test
13   cwd: test
14   output_path: test
15   command: ["echo", "hello"]
16   runtime_constraints:
17     ram: 12000000000
18     vcpus: 4
19   mounts:
20     /tmp:
21       kind: tmp
22       capacity: 24000000000
23     /var/spool/cwl:
24       kind: tmp
25       capacity: 24000000000
26
27 running:
28   uuid: zzzzz-dz642-runningcontainr
29   owner_uuid: zzzzz-tpzed-000000000000000
30   state: Running
31   priority: 12
32   created_at: <%= 1.minute.ago.to_s(:db) %>
33   updated_at: <%= 1.minute.ago.to_s(:db) %>
34   started_at: <%= 1.minute.ago.to_s(:db) %>
35   container_image: test
36   cwd: test
37   output_path: test
38   command: ["echo", "hello"]
39   runtime_status:
40     hello: world
41   runtime_constraints:
42     ram: 12000000000
43     vcpus: 4
44   secret_mounts:
45     /secret/6x9:
46       kind: text
47       content: "42\n"
48   secret_mounts_md5: <%= Digest::MD5.hexdigest(SafeJSON.dump({'/secret/6x9' => {'content' => "42\n", 'kind' => 'text'}})) %>
49   auth_uuid: zzzzz-gj3su-077z32aux8dg2s2
50
51 running_older:
52   uuid: zzzzz-dz642-runningcontain2
53   owner_uuid: zzzzz-tpzed-000000000000000
54   state: Running
55   priority: 1
56   created_at: <%= 2.minute.ago.to_s(:db) %>
57   updated_at: <%= 2.minute.ago.to_s(:db) %>
58   started_at: <%= 2.minute.ago.to_s(:db) %>
59   container_image: test
60   cwd: test
61   output_path: test
62   command: ["echo", "hello"]
63   runtime_constraints:
64     ram: 12000000000
65     vcpus: 4
66   secret_mounts: {}
67   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
68
69 locked:
70   uuid: zzzzz-dz642-lockedcontainer
71   owner_uuid: zzzzz-tpzed-000000000000000
72   state: Locked
73   locked_by_uuid: zzzzz-gj3su-k9dvestay1plssr
74   priority: 2
75   created_at: <%= 2.minute.ago.to_s(:db) %>
76   updated_at: <%= 2.minute.ago.to_s(:db) %>
77   container_image: test
78   cwd: test
79   output_path: test
80   command: ["echo", "hello"]
81   runtime_constraints:
82     ram: 12000000000
83     vcpus: 4
84   secret_mounts: {}
85   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
86
87 completed:
88   uuid: zzzzz-dz642-compltcontainer
89   owner_uuid: zzzzz-tpzed-000000000000000
90   state: Complete
91   exit_code: 0
92   priority: 1
93   created_at: 2016-01-11 11:11:11.111111111 Z
94   updated_at: 2016-01-11 11:11:11.111111111 Z
95   started_at: 2016-01-11 11:11:11.111111111 Z
96   finished_at: 2016-01-12 11:12:13.111111111 Z
97   container_image: test
98   cwd: test
99   log: ea10d51bcf88862dbcc36eb292017dfd+45
100   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
101   output_path: test
102   command: ["echo", "hello", "/bin/sh", "-c", "'cat' '/keep/fa7aeb5140e2848d39b416daeef4ffc5+45/foobar' '/keep/fa7aeb5140e2848d39b416daeef4ffc5+45/baz' '|' 'gzip' '>' '/dev/null'"]
103   runtime_constraints:
104     ram: 12000000000
105     vcpus: 4
106   secret_mounts: {}
107   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
108
109 completed_older:
110   uuid: zzzzz-dz642-compltcontainr2
111   owner_uuid: zzzzz-tpzed-000000000000000
112   state: Complete
113   exit_code: 0
114   priority: 1
115   created_at: 2016-01-11 11:11:11.111111111 Z
116   updated_at: 2016-01-11 11:11:11.111111111 Z
117   started_at: 2016-01-13 11:11:11.111111111 Z
118   finished_at: 2016-01-14 11:12:13.111111111 Z
119   container_image: test
120   cwd: test
121   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
122   output_path: test
123   command: ["echo", "hello"]
124   runtime_constraints:
125     ram: 12000000000
126     vcpus: 4
127   secret_mounts: {}
128   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
129
130 requester:
131   uuid: zzzzz-dz642-requestingcntnr
132   owner_uuid: zzzzz-tpzed-000000000000000
133   state: Complete
134   exit_code: 0
135   priority: 1
136   created_at: 2016-01-11 11:11:11.111111111 Z
137   updated_at: 2016-01-11 11:11:11.111111111 Z
138   container_image: test
139   cwd: test
140   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
141   output_path: test
142   command: ["echo", "hello"]
143   runtime_constraints:
144     ram: 12000000000
145     vcpus: 4
146   secret_mounts: {}
147   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
148
149 requester_container:
150   uuid: zzzzz-dz642-requestercntnr1
151   owner_uuid: zzzzz-tpzed-000000000000000
152   state: Complete
153   exit_code: 0
154   priority: 1
155   created_at: 2016-01-11 11:11:11.111111111 Z
156   updated_at: 2016-01-11 11:11:11.111111111 Z
157   container_image: test
158   cwd: test
159   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
160   output_path: test
161   command: ["echo", "hello"]
162   runtime_constraints:
163     ram: 12000000000
164     vcpus: 4
165   secret_mounts: {}
166   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
167
168 failed_container:
169   uuid: zzzzz-dz642-failedcontainr1
170   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
171   state: Complete
172   exit_code: 33
173   priority: 1
174   created_at: 2016-01-11 11:11:11.111111111 Z
175   updated_at: 2016-01-11 11:11:11.111111111 Z
176   container_image: test
177   cwd: test
178   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
179   output_path: test
180   command: ["echo", "hello"]
181   runtime_constraints:
182     ram: 12000000000
183     vcpus: 4
184   secret_mounts: {}
185   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
186
187 ancient_container_with_logs:
188   uuid: zzzzz-dz642-logscontainer01
189   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
190   state: Complete
191   exit_code: 0
192   priority: 1
193   created_at: <%= 2.year.ago.to_s(:db) %>
194   updated_at: <%= 2.year.ago.to_s(:db) %>
195   container_image: test
196   cwd: test
197   output_path: test
198   command: ["echo", "hello"]
199   runtime_constraints:
200     ram: 12000000000
201     vcpus: 4
202   finished_at: <%= 2.year.ago.to_s(:db) %>
203   log: ea10d51bcf88862dbcc36eb292017dfd+45
204   output: test
205   secret_mounts: {}
206   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
207
208 previous_container_with_logs:
209   uuid: zzzzz-dz642-logscontainer02
210   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
211   state: Complete
212   exit_code: 0
213   priority: 1
214   created_at: <%= 1.month.ago.to_s(:db) %>
215   updated_at: <%= 1.month.ago.to_s(:db) %>
216   container_image: test
217   cwd: test
218   output_path: test
219   command: ["echo", "hello"]
220   runtime_constraints:
221     ram: 12000000000
222     vcpus: 4
223   finished_at: <%= 1.month.ago.to_s(:db) %>
224   log: ea10d51bcf88862dbcc36eb292017dfd+45
225   output: test
226   secret_mounts: {}
227   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
228
229 running_container_with_logs:
230   uuid: zzzzz-dz642-logscontainer03
231   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
232   state: Running
233   priority: 1
234   created_at: <%= 1.hour.ago.to_s(:db) %>
235   updated_at: <%= 1.hour.ago.to_s(:db) %>
236   container_image: test
237   cwd: test
238   output_path: test
239   command: ["echo", "hello"]
240   runtime_constraints:
241     ram: 12000000000
242     vcpus: 4
243   secret_mounts: {}
244   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
245
246 running_to_be_deleted:
247   uuid: zzzzz-dz642-runnincntrtodel
248   owner_uuid: zzzzz-tpzed-000000000000000
249   state: Running
250   priority: 1
251   created_at: <%= 1.minute.ago.to_s(:db) %>
252   updated_at: <%= 1.minute.ago.to_s(:db) %>
253   started_at: <%= 1.minute.ago.to_s(:db) %>
254   container_image: test
255   cwd: test
256   output_path: test
257   command: ["echo", "hello"]
258   runtime_constraints:
259     ram: 12000000000
260     vcpus: 4
261   auth_uuid: zzzzz-gj3su-ty6lvu9d7u7c2sq
262   secret_mounts: {}
263   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
264
265 runtime_token:
266   uuid: zzzzz-dz642-20isqbkl8xwnsao
267   owner_uuid: zzzzz-tpzed-000000000000000
268   state: Locked
269   locked_by_uuid: zzzzz-gj3su-jrriu629zljsnuf
270   priority: 1
271   created_at: 2016-01-11 11:11:11.111111111 Z
272   updated_at: 2016-01-11 11:11:11.111111111 Z
273   container_image: test
274   cwd: test
275   output_path: test
276   command: ["echo", "hello"]
277   runtime_token: v2/zzzzz-gj3su-2nj68s291f50gd9/2d19ue6ofx26o3mm7fs9u6t7hov9um0v92dzwk1o2xed3abprw
278   runtime_user_uuid: zzzzz-tpzed-l3skomkti0c4vg4
279   runtime_auth_scopes: ["all"]
280   runtime_constraints:
281     ram: 12000000000
282     vcpus: 4
283   mounts:
284     /tmp:
285       kind: tmp
286       capacity: 24000000000
287     /var/spool/cwl:
288       kind: tmp
289       capacity: 24000000000