Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
8946fb8e
Commit
8946fb8e
authored
May 22, 2018
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-334: Sync GridFS spec tests for unset filename
mongodb/specifications@56c90bf98af3b8536a3a589c0159318da9d3f810
parent
558053ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
105 deletions
+83
-105
delete.json
tests/GridFS/spec-tests/delete.json
+9
-34
download.json
tests/GridFS/spec-tests/download.json
+60
-38
download_by_name.json
tests/GridFS/spec-tests/download_by_name.json
+11
-26
upload.json
tests/GridFS/spec-tests/upload.json
+3
-7
No files found.
tests/GridFS/spec-tests/delete.json
View file @
8946fb8e
...
@@ -13,11 +13,8 @@
...
@@ -13,11 +13,8 @@
"md5"
:
"d41d8cd98f00b204e9800998ecf8427e"
,
"md5"
:
"d41d8cd98f00b204e9800998ecf8427e"
,
"filename"
:
"length-0"
,
"filename"
:
"length-0"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -31,11 +28,8 @@
...
@@ -31,11 +28,8 @@
"md5"
:
"d41d8cd98f00b204e9800998ecf8427e"
,
"md5"
:
"d41d8cd98f00b204e9800998ecf8427e"
,
"filename"
:
"length-0-with-empty-chunk"
,
"filename"
:
"length-0-with-empty-chunk"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -49,11 +43,8 @@
...
@@ -49,11 +43,8 @@
"md5"
:
"c700ed4fdb1d27055aa3faa2c2432283"
,
"md5"
:
"c700ed4fdb1d27055aa3faa2c2432283"
,
"filename"
:
"length-2"
,
"filename"
:
"length-2"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -67,11 +58,8 @@
...
@@ -67,11 +58,8 @@
"md5"
:
"dd254cdc958e53abaa67da9f797125f5"
,
"md5"
:
"dd254cdc958e53abaa67da9f797125f5"
,
"filename"
:
"length-8"
,
"filename"
:
"length-8"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
}
}
],
],
"chunks"
:
[
"chunks"
:
[
...
@@ -295,22 +283,9 @@
...
@@ -295,22 +283,9 @@
"limit"
:
1
"limit"
:
1
}
}
]
]
},
{
"delete"
:
"expected.chunks"
,
"deletes"
:
[
{
"q"
:
{
"files_id"
:
{
"$oid"
:
"000000000000000000000004"
}
},
"limit"
:
0
}
]
}
}
]
]
}
}
}
}
]
]
}
}
\ No newline at end of file
tests/GridFS/spec-tests/download.json
View file @
8946fb8e
...
@@ -13,11 +13,8 @@
...
@@ -13,11 +13,8 @@
"md5"
:
"d41d8cd98f00b204e9800998ecf8427e"
,
"md5"
:
"d41d8cd98f00b204e9800998ecf8427e"
,
"filename"
:
"length-0"
,
"filename"
:
"length-0"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -31,11 +28,8 @@
...
@@ -31,11 +28,8 @@
"md5"
:
"d41d8cd98f00b204e9800998ecf8427e"
,
"md5"
:
"d41d8cd98f00b204e9800998ecf8427e"
,
"filename"
:
"length-0-with-empty-chunk"
,
"filename"
:
"length-0-with-empty-chunk"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -49,11 +43,8 @@
...
@@ -49,11 +43,8 @@
"md5"
:
"c700ed4fdb1d27055aa3faa2c2432283"
,
"md5"
:
"c700ed4fdb1d27055aa3faa2c2432283"
,
"filename"
:
"length-2"
,
"filename"
:
"length-2"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -67,11 +58,8 @@
...
@@ -67,11 +58,8 @@
"md5"
:
"dd254cdc958e53abaa67da9f797125f5"
,
"md5"
:
"dd254cdc958e53abaa67da9f797125f5"
,
"filename"
:
"length-8"
,
"filename"
:
"length-8"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -85,11 +73,22 @@
...
@@ -85,11 +73,22 @@
"md5"
:
"57d83cd477bfb1ccd975ab33d827a92b"
,
"md5"
:
"57d83cd477bfb1ccd975ab33d827a92b"
,
"filename"
:
"length-10"
,
"filename"
:
"length-10"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
},
"metadata"
:
{
{
}
"_id"
:
{
"$oid"
:
"000000000000000000000006"
},
"length"
:
2
,
"chunkSize"
:
4
,
"uploadDate"
:
{
"$date"
:
"1970-01-01T00:00:00.000Z"
},
"md5"
:
"c700ed4fdb1d27055aa3faa2c2432283"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[],
"metadata"
:
{}
}
}
],
],
"chunks"
:
[
"chunks"
:
[
...
@@ -176,6 +175,18 @@
...
@@ -176,6 +175,18 @@
"data"
:
{
"data"
:
{
"$hex"
:
"99aa"
"$hex"
:
"99aa"
}
}
},
{
"_id"
:
{
"$oid"
:
"000000000000000000000008"
},
"files_id"
:
{
"$oid"
:
"000000000000000000000006"
},
"n"
:
0
,
"data"
:
{
"$hex"
:
"1122"
}
}
}
]
]
},
},
...
@@ -188,8 +199,7 @@
...
@@ -188,8 +199,7 @@
"id"
:
{
"id"
:
{
"$oid"
:
"000000000000000000000001"
"$oid"
:
"000000000000000000000001"
},
},
"options"
:
{
"options"
:
{}
}
}
}
},
},
"assert"
:
{
"assert"
:
{
...
@@ -206,8 +216,7 @@
...
@@ -206,8 +216,7 @@
"id"
:
{
"id"
:
{
"$oid"
:
"000000000000000000000002"
"$oid"
:
"000000000000000000000002"
},
},
"options"
:
{
"options"
:
{}
}
}
}
},
},
"assert"
:
{
"assert"
:
{
...
@@ -224,8 +233,7 @@
...
@@ -224,8 +233,7 @@
"id"
:
{
"id"
:
{
"$oid"
:
"000000000000000000000003"
"$oid"
:
"000000000000000000000003"
},
},
"options"
:
{
"options"
:
{}
}
}
}
},
},
"assert"
:
{
"assert"
:
{
...
@@ -242,8 +250,7 @@
...
@@ -242,8 +250,7 @@
"id"
:
{
"id"
:
{
"$oid"
:
"000000000000000000000004"
"$oid"
:
"000000000000000000000004"
},
},
"options"
:
{
"options"
:
{}
}
}
}
},
},
"assert"
:
{
"assert"
:
{
...
@@ -260,8 +267,7 @@
...
@@ -260,8 +267,7 @@
"id"
:
{
"id"
:
{
"$oid"
:
"000000000000000000000005"
"$oid"
:
"000000000000000000000005"
},
},
"options"
:
{
"options"
:
{}
}
}
}
},
},
"assert"
:
{
"assert"
:
{
...
@@ -278,8 +284,7 @@
...
@@ -278,8 +284,7 @@
"id"
:
{
"id"
:
{
"$oid"
:
"000000000000000000000000"
"$oid"
:
"000000000000000000000000"
},
},
"options"
:
{
"options"
:
{}
}
}
}
},
},
"assert"
:
{
"assert"
:
{
...
@@ -440,6 +445,23 @@
...
@@ -440,6 +445,23 @@
"assert"
:
{
"assert"
:
{
"error"
:
"ChunkIsWrongSize"
"error"
:
"ChunkIsWrongSize"
}
}
},
{
"description"
:
"Download legacy file with no name"
,
"act"
:
{
"operation"
:
"download"
,
"arguments"
:
{
"id"
:
{
"$oid"
:
"000000000000000000000006"
},
"options"
:
{}
}
},
"assert"
:
{
"result"
:
{
"$hex"
:
"1122"
}
}
}
}
]
]
}
}
\ No newline at end of file
tests/GridFS/spec-tests/download_by_name.json
View file @
8946fb8e
...
@@ -13,11 +13,8 @@
...
@@ -13,11 +13,8 @@
"md5"
:
"47ed733b8d10be225eceba344d533586"
,
"md5"
:
"47ed733b8d10be225eceba344d533586"
,
"filename"
:
"abc"
,
"filename"
:
"abc"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -31,11 +28,8 @@
...
@@ -31,11 +28,8 @@
"md5"
:
"b15835f133ff2e27c7cb28117bfae8f4"
,
"md5"
:
"b15835f133ff2e27c7cb28117bfae8f4"
,
"filename"
:
"abc"
,
"filename"
:
"abc"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -49,11 +43,8 @@
...
@@ -49,11 +43,8 @@
"md5"
:
"eccbc87e4b5ce2fe28308fd9f2a7baf3"
,
"md5"
:
"eccbc87e4b5ce2fe28308fd9f2a7baf3"
,
"filename"
:
"abc"
,
"filename"
:
"abc"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -67,11 +58,8 @@
...
@@ -67,11 +58,8 @@
"md5"
:
"f623e75af30e62bbd73d6df5b50bb7b5"
,
"md5"
:
"f623e75af30e62bbd73d6df5b50bb7b5"
,
"filename"
:
"abc"
,
"filename"
:
"abc"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
},
},
{
{
"_id"
:
{
"_id"
:
{
...
@@ -85,11 +73,8 @@
...
@@ -85,11 +73,8 @@
"md5"
:
"4c614360da93c0a041b22e537de151eb"
,
"md5"
:
"4c614360da93c0a041b22e537de151eb"
,
"filename"
:
"abc"
,
"filename"
:
"abc"
,
"contentType"
:
"application/octet-stream"
,
"contentType"
:
"application/octet-stream"
,
"aliases"
:
[
"aliases"
:
[],
"metadata"
:
{}
],
"metadata"
:
{
}
}
}
],
],
"chunks"
:
[
"chunks"
:
[
...
@@ -252,4 +237,4 @@
...
@@ -252,4 +237,4 @@
}
}
}
}
]
]
}
}
\ No newline at end of file
tests/GridFS/spec-tests/upload.json
View file @
8946fb8e
{
{
"data"
:
{
"data"
:
{
"files"
:
[
"files"
:
[],
"chunks"
:
[]
],
"chunks"
:
[
]
},
},
"tests"
:
[
"tests"
:
[
{
{
...
@@ -388,4 +384,4 @@
...
@@ -388,4 +384,4 @@
}
}
}
}
]
]
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment