File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
driver-core/src/test/resources/gridfs-tests Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 415
415
}
416
416
]
417
417
}
418
+ },
419
+ {
420
+ "description" : " Upload when length is 1 sans MD5" ,
421
+ "act" : {
422
+ "operation" : " upload" ,
423
+ "arguments" : {
424
+ "filename" : " filename" ,
425
+ "source" : {
426
+ "$hex" : " 11"
427
+ },
428
+ "options" : {
429
+ "chunkSizeBytes" : 4 ,
430
+ "disableMD5" : true
431
+ }
432
+ }
433
+ },
434
+ "assert" : {
435
+ "result" : " &result" ,
436
+ "data" : [
437
+ {
438
+ "insert" : " expected.files" ,
439
+ "documents" : [
440
+ {
441
+ "_id" : " *result" ,
442
+ "length" : 1 ,
443
+ "chunkSize" : 4 ,
444
+ "uploadDate" : " *actual" ,
445
+ "filename" : " filename"
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "insert" : " expected.chunks" ,
451
+ "documents" : [
452
+ {
453
+ "_id" : " *actual" ,
454
+ "files_id" : " *result" ,
455
+ "n" : 0 ,
456
+ "data" : {
457
+ "$hex" : " 11"
458
+ }
459
+ }
460
+ ]
461
+ }
462
+ ]
463
+ }
418
464
}
419
465
]
420
466
}
You can’t perform that action at this time.
0 commit comments