Skip to content

Commit c2e2cf2

Browse files
committed
Remove deprecated field from GridFS unified tests (#1577)
Remove deprecated field from GridFS unified tests Removes the use of deprecated fields -- md5, contentType, and aliases -- from the GridFS unified tests JAVA-5709
1 parent 711a4c9 commit c2e2cf2

File tree

4 files changed

+0
-162
lines changed

4 files changed

+0
-162
lines changed

Diff for: driver-core/src/test/resources/unified-test-format/gridfs/delete.json

-60
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@
4949
"uploadDate": {
5050
"$date": "1970-01-01T00:00:00.000Z"
5151
},
52-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
5352
"filename": "length-0",
54-
"contentType": "application/octet-stream",
55-
"aliases": [],
5653
"metadata": {}
5754
},
5855
{
@@ -64,10 +61,7 @@
6461
"uploadDate": {
6562
"$date": "1970-01-01T00:00:00.000Z"
6663
},
67-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
6864
"filename": "length-0-with-empty-chunk",
69-
"contentType": "application/octet-stream",
70-
"aliases": [],
7165
"metadata": {}
7266
},
7367
{
@@ -79,10 +73,7 @@
7973
"uploadDate": {
8074
"$date": "1970-01-01T00:00:00.000Z"
8175
},
82-
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
8376
"filename": "length-2",
84-
"contentType": "application/octet-stream",
85-
"aliases": [],
8677
"metadata": {}
8778
},
8879
{
@@ -94,10 +85,7 @@
9485
"uploadDate": {
9586
"$date": "1970-01-01T00:00:00.000Z"
9687
},
97-
"md5": "dd254cdc958e53abaa67da9f797125f5",
9888
"filename": "length-8",
99-
"contentType": "application/octet-stream",
100-
"aliases": [],
10189
"metadata": {}
10290
}
10391
]
@@ -197,10 +185,7 @@
197185
"uploadDate": {
198186
"$date": "1970-01-01T00:00:00.000Z"
199187
},
200-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
201188
"filename": "length-0-with-empty-chunk",
202-
"contentType": "application/octet-stream",
203-
"aliases": [],
204189
"metadata": {}
205190
},
206191
{
@@ -212,10 +197,7 @@
212197
"uploadDate": {
213198
"$date": "1970-01-01T00:00:00.000Z"
214199
},
215-
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
216200
"filename": "length-2",
217-
"contentType": "application/octet-stream",
218-
"aliases": [],
219201
"metadata": {}
220202
},
221203
{
@@ -227,10 +209,7 @@
227209
"uploadDate": {
228210
"$date": "1970-01-01T00:00:00.000Z"
229211
},
230-
"md5": "dd254cdc958e53abaa67da9f797125f5",
231212
"filename": "length-8",
232-
"contentType": "application/octet-stream",
233-
"aliases": [],
234213
"metadata": {}
235214
}
236215
]
@@ -330,10 +309,7 @@
330309
"uploadDate": {
331310
"$date": "1970-01-01T00:00:00.000Z"
332311
},
333-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
334312
"filename": "length-0",
335-
"contentType": "application/octet-stream",
336-
"aliases": [],
337313
"metadata": {}
338314
},
339315
{
@@ -345,10 +321,7 @@
345321
"uploadDate": {
346322
"$date": "1970-01-01T00:00:00.000Z"
347323
},
348-
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
349324
"filename": "length-2",
350-
"contentType": "application/octet-stream",
351-
"aliases": [],
352325
"metadata": {}
353326
},
354327
{
@@ -360,10 +333,7 @@
360333
"uploadDate": {
361334
"$date": "1970-01-01T00:00:00.000Z"
362335
},
363-
"md5": "dd254cdc958e53abaa67da9f797125f5",
364336
"filename": "length-8",
365-
"contentType": "application/octet-stream",
366-
"aliases": [],
367337
"metadata": {}
368338
}
369339
]
@@ -448,10 +418,7 @@
448418
"uploadDate": {
449419
"$date": "1970-01-01T00:00:00.000Z"
450420
},
451-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
452421
"filename": "length-0",
453-
"contentType": "application/octet-stream",
454-
"aliases": [],
455422
"metadata": {}
456423
},
457424
{
@@ -463,10 +430,7 @@
463430
"uploadDate": {
464431
"$date": "1970-01-01T00:00:00.000Z"
465432
},
466-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
467433
"filename": "length-0-with-empty-chunk",
468-
"contentType": "application/octet-stream",
469-
"aliases": [],
470434
"metadata": {}
471435
},
472436
{
@@ -478,10 +442,7 @@
478442
"uploadDate": {
479443
"$date": "1970-01-01T00:00:00.000Z"
480444
},
481-
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
482445
"filename": "length-2",
483-
"contentType": "application/octet-stream",
484-
"aliases": [],
485446
"metadata": {}
486447
}
487448
]
@@ -554,10 +515,7 @@
554515
"uploadDate": {
555516
"$date": "1970-01-01T00:00:00.000Z"
556517
},
557-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
558518
"filename": "length-0",
559-
"contentType": "application/octet-stream",
560-
"aliases": [],
561519
"metadata": {}
562520
},
563521
{
@@ -569,10 +527,7 @@
569527
"uploadDate": {
570528
"$date": "1970-01-01T00:00:00.000Z"
571529
},
572-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
573530
"filename": "length-0-with-empty-chunk",
574-
"contentType": "application/octet-stream",
575-
"aliases": [],
576531
"metadata": {}
577532
},
578533
{
@@ -584,10 +539,7 @@
584539
"uploadDate": {
585540
"$date": "1970-01-01T00:00:00.000Z"
586541
},
587-
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
588542
"filename": "length-2",
589-
"contentType": "application/octet-stream",
590-
"aliases": [],
591543
"metadata": {}
592544
},
593545
{
@@ -599,10 +551,7 @@
599551
"uploadDate": {
600552
"$date": "1970-01-01T00:00:00.000Z"
601553
},
602-
"md5": "dd254cdc958e53abaa67da9f797125f5",
603554
"filename": "length-8",
604-
"contentType": "application/octet-stream",
605-
"aliases": [],
606555
"metadata": {}
607556
}
608557
]
@@ -719,10 +668,7 @@
719668
"uploadDate": {
720669
"$date": "1970-01-01T00:00:00.000Z"
721670
},
722-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
723671
"filename": "length-0",
724-
"contentType": "application/octet-stream",
725-
"aliases": [],
726672
"metadata": {}
727673
},
728674
{
@@ -734,10 +680,7 @@
734680
"uploadDate": {
735681
"$date": "1970-01-01T00:00:00.000Z"
736682
},
737-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
738683
"filename": "length-0-with-empty-chunk",
739-
"contentType": "application/octet-stream",
740-
"aliases": [],
741684
"metadata": {}
742685
},
743686
{
@@ -749,10 +692,7 @@
749692
"uploadDate": {
750693
"$date": "1970-01-01T00:00:00.000Z"
751694
},
752-
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
753695
"filename": "length-2",
754-
"contentType": "application/octet-stream",
755-
"aliases": [],
756696
"metadata": {}
757697
}
758698
]

Diff for: driver-core/src/test/resources/unified-test-format/gridfs/download.json

-18
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@
4949
"uploadDate": {
5050
"$date": "1970-01-01T00:00:00.000Z"
5151
},
52-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
5352
"filename": "length-0",
54-
"contentType": "application/octet-stream",
55-
"aliases": [],
5653
"metadata": {}
5754
},
5855
{
@@ -64,10 +61,7 @@
6461
"uploadDate": {
6562
"$date": "1970-01-01T00:00:00.000Z"
6663
},
67-
"md5": "d41d8cd98f00b204e9800998ecf8427e",
6864
"filename": "length-0-with-empty-chunk",
69-
"contentType": "application/octet-stream",
70-
"aliases": [],
7165
"metadata": {}
7266
},
7367
{
@@ -79,10 +73,7 @@
7973
"uploadDate": {
8074
"$date": "1970-01-01T00:00:00.000Z"
8175
},
82-
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
8376
"filename": "length-2",
84-
"contentType": "application/octet-stream",
85-
"aliases": [],
8677
"metadata": {}
8778
},
8879
{
@@ -94,10 +85,7 @@
9485
"uploadDate": {
9586
"$date": "1970-01-01T00:00:00.000Z"
9687
},
97-
"md5": "dd254cdc958e53abaa67da9f797125f5",
9888
"filename": "length-8",
99-
"contentType": "application/octet-stream",
100-
"aliases": [],
10189
"metadata": {}
10290
},
10391
{
@@ -109,10 +97,7 @@
10997
"uploadDate": {
11098
"$date": "1970-01-01T00:00:00.000Z"
11199
},
112-
"md5": "57d83cd477bfb1ccd975ab33d827a92b",
113100
"filename": "length-10",
114-
"contentType": "application/octet-stream",
115-
"aliases": [],
116101
"metadata": {}
117102
},
118103
{
@@ -124,9 +109,6 @@
124109
"uploadDate": {
125110
"$date": "1970-01-01T00:00:00.000Z"
126111
},
127-
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
128-
"contentType": "application/octet-stream",
129-
"aliases": [],
130112
"metadata": {}
131113
}
132114
]

Diff for: driver-core/src/test/resources/unified-test-format/gridfs/downloadByName.json

-15
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@
4949
"uploadDate": {
5050
"$date": "1970-01-01T00:00:00.000Z"
5151
},
52-
"md5": "47ed733b8d10be225eceba344d533586",
5352
"filename": "abc",
54-
"contentType": "application/octet-stream",
55-
"aliases": [],
5653
"metadata": {}
5754
},
5855
{
@@ -64,10 +61,7 @@
6461
"uploadDate": {
6562
"$date": "1970-01-02T00:00:00.000Z"
6663
},
67-
"md5": "b15835f133ff2e27c7cb28117bfae8f4",
6864
"filename": "abc",
69-
"contentType": "application/octet-stream",
70-
"aliases": [],
7165
"metadata": {}
7266
},
7367
{
@@ -79,10 +73,7 @@
7973
"uploadDate": {
8074
"$date": "1970-01-03T00:00:00.000Z"
8175
},
82-
"md5": "eccbc87e4b5ce2fe28308fd9f2a7baf3",
8376
"filename": "abc",
84-
"contentType": "application/octet-stream",
85-
"aliases": [],
8677
"metadata": {}
8778
},
8879
{
@@ -94,10 +85,7 @@
9485
"uploadDate": {
9586
"$date": "1970-01-04T00:00:00.000Z"
9687
},
97-
"md5": "f623e75af30e62bbd73d6df5b50bb7b5",
9888
"filename": "abc",
99-
"contentType": "application/octet-stream",
100-
"aliases": [],
10189
"metadata": {}
10290
},
10391
{
@@ -109,10 +97,7 @@
10997
"uploadDate": {
11098
"$date": "1970-01-05T00:00:00.000Z"
11199
},
112-
"md5": "4c614360da93c0a041b22e537de151eb",
113100
"filename": "abc",
114-
"contentType": "application/octet-stream",
115-
"aliases": [],
116101
"metadata": {}
117102
}
118103
]

0 commit comments

Comments
 (0)