11369: Fix tests. Tweak test fixture to include a mounts entry with capacity.
[arvados.git] / services / api / test / fixtures / containers.yml
1 queued:
2   uuid: zzzzz-dz642-queuedcontainer
3   owner_uuid: zzzzz-tpzed-000000000000000
4   state: Queued
5   priority: 1
6   created_at: 2016-01-11 11:11:11.111111111 Z
7   updated_at: 2016-01-11 11:11:11.111111111 Z
8   container_image: test
9   cwd: test
10   output_path: test
11   command: ["echo", "hello"]
12   runtime_constraints:
13     ram: 12000000000
14     vcpus: 4
15   mounts:
16     /tmp:
17       kind: tmp
18       capacity: 24000000000
19     /var/spool/cwl:
20       kind: tmp
21       capacity: 24000000000
22
23 running:
24   uuid: zzzzz-dz642-runningcontainr
25   owner_uuid: zzzzz-tpzed-000000000000000
26   state: Running
27   priority: 1
28   created_at: <%= 1.minute.ago.to_s(:db) %>
29   updated_at: <%= 1.minute.ago.to_s(:db) %>
30   started_at: <%= 1.minute.ago.to_s(:db) %>
31   container_image: test
32   cwd: test
33   output_path: test
34   command: ["echo", "hello"]
35   runtime_constraints:
36     ram: 12000000000
37     vcpus: 4
38   auth_uuid: zzzzz-gj3su-077z32aux8dg2s2
39
40 running_older:
41   uuid: zzzzz-dz642-runningcontain2
42   owner_uuid: zzzzz-tpzed-000000000000000
43   state: Running
44   priority: 1
45   created_at: <%= 2.minute.ago.to_s(:db) %>
46   updated_at: <%= 2.minute.ago.to_s(:db) %>
47   started_at: <%= 2.minute.ago.to_s(:db) %>
48   container_image: test
49   cwd: test
50   output_path: test
51   command: ["echo", "hello"]
52   runtime_constraints:
53     ram: 12000000000
54     vcpus: 4
55
56 locked:
57   uuid: zzzzz-dz642-lockedcontainer
58   owner_uuid: zzzzz-tpzed-000000000000000
59   state: Locked
60   priority: 2
61   created_at: <%= 2.minute.ago.to_s(:db) %>
62   updated_at: <%= 2.minute.ago.to_s(:db) %>
63   container_image: test
64   cwd: test
65   output_path: test
66   command: ["echo", "hello"]
67   runtime_constraints:
68     ram: 12000000000
69     vcpus: 4
70
71 completed:
72   uuid: zzzzz-dz642-compltcontainer
73   owner_uuid: zzzzz-tpzed-000000000000000
74   state: Complete
75   exit_code: 0
76   priority: 1
77   created_at: 2016-01-11 11:11:11.111111111 Z
78   updated_at: 2016-01-11 11:11:11.111111111 Z
79   started_at: 2016-01-11 11:11:11.111111111 Z
80   finished_at: 2016-01-12 11:12:13.111111111 Z
81   container_image: test
82   cwd: test
83   log: ea10d51bcf88862dbcc36eb292017dfd+45
84   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
85   output_path: test
86   command: ["echo", "hello"]
87   runtime_constraints:
88     ram: 12000000000
89     vcpus: 4
90
91 completed_older:
92   uuid: zzzzz-dz642-compltcontainr2
93   owner_uuid: zzzzz-tpzed-000000000000000
94   state: Complete
95   exit_code: 0
96   priority: 1
97   created_at: 2016-01-11 11:11:11.111111111 Z
98   updated_at: 2016-01-11 11:11:11.111111111 Z
99   started_at: 2016-01-13 11:11:11.111111111 Z
100   finished_at: 2016-01-14 11:12:13.111111111 Z
101   container_image: test
102   cwd: test
103   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
104   output_path: test
105   command: ["echo", "hello"]
106   runtime_constraints:
107     ram: 12000000000
108     vcpus: 4
109
110 requester:
111   uuid: zzzzz-dz642-requestingcntnr
112   owner_uuid: zzzzz-tpzed-000000000000000
113   state: Complete
114   exit_code: 0
115   priority: 1
116   created_at: 2016-01-11 11:11:11.111111111 Z
117   updated_at: 2016-01-11 11:11:11.111111111 Z
118   container_image: test
119   cwd: test
120   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
121   output_path: test
122   command: ["echo", "hello"]
123   runtime_constraints:
124     ram: 12000000000
125     vcpus: 4
126
127 requester_container:
128   uuid: zzzzz-dz642-requestercntnr1
129   owner_uuid: zzzzz-tpzed-000000000000000
130   state: Complete
131   exit_code: 0
132   priority: 1
133   created_at: 2016-01-11 11:11:11.111111111 Z
134   updated_at: 2016-01-11 11:11:11.111111111 Z
135   container_image: test
136   cwd: test
137   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
138   output_path: test
139   command: ["echo", "hello"]
140   runtime_constraints:
141     ram: 12000000000
142     vcpus: 4
143   auth_uuid: zzzzz-gj3su-077z32aux8dg2s3
144
145 failed_container:
146   uuid: zzzzz-dz642-failedcontainr1
147   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
148   state: Complete
149   exit_code: 33
150   priority: 1
151   created_at: 2016-01-11 11:11:11.111111111 Z
152   updated_at: 2016-01-11 11:11:11.111111111 Z
153   container_image: test
154   cwd: test
155   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
156   output_path: test
157   command: ["echo", "hello"]
158   runtime_constraints:
159     ram: 12000000000
160     vcpus: 4
161
162 ancient_container_with_logs:
163   uuid: zzzzz-dz642-logscontainer01
164   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
165   state: Complete
166   exit_code: 0
167   priority: 1
168   created_at: <%= 2.year.ago.to_s(:db) %>
169   updated_at: <%= 2.year.ago.to_s(:db) %>
170   container_image: test
171   cwd: test
172   output_path: test
173   command: ["echo", "hello"]
174   runtime_constraints:
175     ram: 12000000000
176     vcpus: 4
177   finished_at: <%= 2.year.ago.to_s(:db) %>
178   log: ea10d51bcf88862dbcc36eb292017dfd+45
179   output: test
180
181 previous_container_with_logs:
182   uuid: zzzzz-dz642-logscontainer02
183   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
184   state: Complete
185   exit_code: 0
186   priority: 1
187   created_at: <%= 1.month.ago.to_s(:db) %>
188   updated_at: <%= 1.month.ago.to_s(:db) %>
189   container_image: test
190   cwd: test
191   output_path: test
192   command: ["echo", "hello"]
193   runtime_constraints:
194     ram: 12000000000
195     vcpus: 4
196   finished_at: <%= 1.month.ago.to_s(:db) %>
197   log: ea10d51bcf88862dbcc36eb292017dfd+45
198   output: test
199
200 running_container_with_logs:
201   uuid: zzzzz-dz642-logscontainer03
202   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
203   state: Running
204   priority: 1
205   created_at: <%= 1.hour.ago.to_s(:db) %>
206   updated_at: <%= 1.hour.ago.to_s(:db) %>
207   container_image: test
208   cwd: test
209   output_path: test
210   command: ["echo", "hello"]
211   runtime_constraints:
212     ram: 12000000000
213     vcpus: 4