PYTHON-4990 - Remove deprecated field from GridFS unified tests (#2216)
This commit is contained in:
parent
f77e1ac119
commit
dec13a8020
@ -49,10 +49,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -64,10 +61,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0-with-empty-chunk",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -79,10 +73,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
|
||||
"filename": "length-2",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -94,10 +85,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "dd254cdc958e53abaa67da9f797125f5",
|
||||
"filename": "length-8",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
@ -197,10 +185,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0-with-empty-chunk",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -212,10 +197,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
|
||||
"filename": "length-2",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -227,10 +209,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "dd254cdc958e53abaa67da9f797125f5",
|
||||
"filename": "length-8",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
@ -330,10 +309,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -345,10 +321,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
|
||||
"filename": "length-2",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -360,10 +333,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "dd254cdc958e53abaa67da9f797125f5",
|
||||
"filename": "length-8",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
@ -448,10 +418,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -463,10 +430,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0-with-empty-chunk",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -478,10 +442,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
|
||||
"filename": "length-2",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
@ -554,10 +515,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -569,10 +527,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0-with-empty-chunk",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -584,10 +539,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
|
||||
"filename": "length-2",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -599,10 +551,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "dd254cdc958e53abaa67da9f797125f5",
|
||||
"filename": "length-8",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
@ -719,10 +668,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -734,10 +680,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0-with-empty-chunk",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -749,10 +692,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
|
||||
"filename": "length-2",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
|
||||
@ -49,10 +49,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -64,10 +61,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"filename": "length-0-with-empty-chunk",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -79,10 +73,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
|
||||
"filename": "length-2",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -94,10 +85,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "dd254cdc958e53abaa67da9f797125f5",
|
||||
"filename": "length-8",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -109,10 +97,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "57d83cd477bfb1ccd975ab33d827a92b",
|
||||
"filename": "length-10",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -124,9 +109,6 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "c700ed4fdb1d27055aa3faa2c2432283",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
|
||||
@ -49,10 +49,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-01T00:00:00.000Z"
|
||||
},
|
||||
"md5": "47ed733b8d10be225eceba344d533586",
|
||||
"filename": "abc",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -64,10 +61,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-02T00:00:00.000Z"
|
||||
},
|
||||
"md5": "b15835f133ff2e27c7cb28117bfae8f4",
|
||||
"filename": "abc",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -79,10 +73,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-03T00:00:00.000Z"
|
||||
},
|
||||
"md5": "eccbc87e4b5ce2fe28308fd9f2a7baf3",
|
||||
"filename": "abc",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -94,10 +85,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-04T00:00:00.000Z"
|
||||
},
|
||||
"md5": "f623e75af30e62bbd73d6df5b50bb7b5",
|
||||
"filename": "abc",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
},
|
||||
{
|
||||
@ -109,10 +97,7 @@
|
||||
"uploadDate": {
|
||||
"$date": "1970-01-05T00:00:00.000Z"
|
||||
},
|
||||
"md5": "4c614360da93c0a041b22e537de151eb",
|
||||
"filename": "abc",
|
||||
"contentType": "application/octet-stream",
|
||||
"aliases": [],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
|
||||
@ -470,75 +470,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "upload when contentType is provided",
|
||||
"operations": [
|
||||
{
|
||||
"name": "upload",
|
||||
"object": "bucket0",
|
||||
"arguments": {
|
||||
"filename": "filename",
|
||||
"source": {
|
||||
"$$hexBytes": "11"
|
||||
},
|
||||
"chunkSizeBytes": 4,
|
||||
"contentType": "image/jpeg"
|
||||
},
|
||||
"expectResult": {
|
||||
"$$type": "objectId"
|
||||
},
|
||||
"saveResultAsEntity": "uploadedObjectId"
|
||||
},
|
||||
{
|
||||
"name": "find",
|
||||
"object": "bucket0_files_collection",
|
||||
"arguments": {
|
||||
"filter": {}
|
||||
},
|
||||
"expectResult": [
|
||||
{
|
||||
"_id": {
|
||||
"$$matchesEntity": "uploadedObjectId"
|
||||
},
|
||||
"length": 1,
|
||||
"chunkSize": 4,
|
||||
"uploadDate": {
|
||||
"$$type": "date"
|
||||
},
|
||||
"md5": {
|
||||
"$$unsetOrMatches": "47ed733b8d10be225eceba344d533586"
|
||||
},
|
||||
"filename": "filename",
|
||||
"contentType": "image/jpeg"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "find",
|
||||
"object": "bucket0_chunks_collection",
|
||||
"arguments": {
|
||||
"filter": {}
|
||||
},
|
||||
"expectResult": [
|
||||
{
|
||||
"_id": {
|
||||
"$$type": "objectId"
|
||||
},
|
||||
"files_id": {
|
||||
"$$matchesEntity": "uploadedObjectId"
|
||||
},
|
||||
"n": 0,
|
||||
"data": {
|
||||
"$binary": {
|
||||
"base64": "EQ==",
|
||||
"subType": "00"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "upload when metadata is provided",
|
||||
"operations": [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user