@@ -10,7 +10,7 @@ func (s *S) TestGetStatusSingle(c *check.C) {
10
10
server , requests := s .startServer (`
11
11
{
12
12
"response": {
13
- "job": {
13
+ "job": {
14
14
"id": "abc123",
15
15
"userid": "myuser",
16
16
"sourcefile": "http://some.video/file.mp4",
@@ -35,6 +35,7 @@ func (s *S) TestGetStatusSingle(c *check.C) {
35
35
"finished": "2015-12-31 21:00:03",
36
36
"s3_destination": "https://s3.amazonaws.com/not-really/valid.mp4",
37
37
"cf_destination": "https://blablabla.cloudfront.net/not-valid.mp4",
38
+ "convertedsize": "65723",
38
39
"destination": "s3://mynicebucket",
39
40
"destination_status": "Saved"
40
41
}
@@ -79,6 +80,7 @@ func (s *S) TestGetStatusSingle(c *check.C) {
79
80
FinishDate : expectedFinishDate ,
80
81
S3Destination : "https://s3.amazonaws.com/not-really/valid.mp4" ,
81
82
CFDestination : "https://blablabla.cloudfront.net/not-valid.mp4" ,
83
+ FileSize : "65723" ,
82
84
Destinations : []DestinationStatus {{Name : "s3://mynicebucket" , Status : "Saved" }},
83
85
},
84
86
},
@@ -122,6 +124,7 @@ func (s *S) TestGetStatusMultiple(c *check.C) {
122
124
"finished": "2015-12-31 21:00:03",
123
125
"s3_destination": "https://s3.amazonaws.com/not-really/valid.mp4",
124
126
"cf_destination": "https://blablabla.cloudfront.net/not-valid.mp4",
127
+ "convertedsize": "65724",
125
128
"destination": [
126
129
null,
127
130
"s3://myunclebucket/file.mp4"
@@ -139,6 +142,7 @@ func (s *S) TestGetStatusMultiple(c *check.C) {
139
142
"finished": "2015-12-31 21:00:03",
140
143
"s3_destination": "https://s3.amazonaws.com/not-really/valid.mp4",
141
144
"cf_destination": "https://blablabla.cloudfront.net/not-valid.mp4",
145
+ "convertedsize": "65725",
142
146
"destination": [
143
147
"s3://mynicebucket/file.mp4",
144
148
"s3://myunclebucket/file.mp4"
@@ -171,6 +175,7 @@ func (s *S) TestGetStatusMultiple(c *check.C) {
171
175
"finished": "2015-12-31 21:00:03",
172
176
"s3_destination": "https://s3.amazonaws.com/not-really/valid.mp4",
173
177
"cf_destination": "https://blablabla.cloudfront.net/not-valid.mp4",
178
+ "convertedsize": "65726",
174
179
"destination": [
175
180
"s3://mynicebucket/file.mp4",
176
181
"s3://myunclebucket/file.mp4"
@@ -221,6 +226,7 @@ func (s *S) TestGetStatusMultiple(c *check.C) {
221
226
FinishDate : expectedFinishDate ,
222
227
S3Destination : "https://s3.amazonaws.com/not-really/valid.mp4" ,
223
228
CFDestination : "https://blablabla.cloudfront.net/not-valid.mp4" ,
229
+ FileSize : "65724" ,
224
230
Destinations : []DestinationStatus {
225
231
{Name : "" , Status : "" },
226
232
{Name : "s3://myunclebucket/file.mp4" , Status : "Saved" },
@@ -234,6 +240,7 @@ func (s *S) TestGetStatusMultiple(c *check.C) {
234
240
FinishDate : expectedFinishDate ,
235
241
S3Destination : "https://s3.amazonaws.com/not-really/valid.mp4" ,
236
242
CFDestination : "https://blablabla.cloudfront.net/not-valid.mp4" ,
243
+ FileSize : "65725" ,
237
244
Destinations : []DestinationStatus {
238
245
{Name : "s3://mynicebucket/file.mp4" , Status : "" },
239
246
{Name : "s3://myunclebucket/file.mp4" , Status : "" },
@@ -266,6 +273,7 @@ func (s *S) TestGetStatusMultiple(c *check.C) {
266
273
FinishDate : expectedFinishDate ,
267
274
S3Destination : "https://s3.amazonaws.com/not-really/valid.mp4" ,
268
275
CFDestination : "https://blablabla.cloudfront.net/not-valid.mp4" ,
276
+ FileSize : "65726" ,
269
277
Destinations : []DestinationStatus {
270
278
{Name : "s3://mynicebucket/file.mp4" , Status : "Saved" },
271
279
{Name : "s3://myunclebucket/file.mp4" , Status : "Saved" },
@@ -320,6 +328,7 @@ func (s *S) TestGetStatusNotExtended(c *check.C) {
320
328
Output : "mp4" ,
321
329
VideoCodec : "libx264" ,
322
330
AudioCodec : "dolby_aac" ,
331
+ FileSize : "78544430" ,
323
332
},
324
333
},
325
334
},
0 commit comments