-
Notifications
You must be signed in to change notification settings - Fork 266
Ignore disableMD5
option as md5
field is removed from the spec
#1502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
3317992
2cd6387
f8b4e79
0d26c28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -463,7 +463,7 @@ private function createSession(string $id, stdClass $o): void | |||||
|
||||||
private function createBucket(string $id, stdClass $o): void | ||||||
{ | ||||||
Util::assertHasOnlyKeys($o, ['id', 'database', 'bucketOptions']); | ||||||
Util::assertHasOnlyKeys($o, ['id', 'database', 'bucketOptions', 'disableMD5']); | ||||||
|
||||||
$databaseId = $o->database ?? null; | ||||||
assertIsString($databaseId); | ||||||
|
@@ -499,7 +499,7 @@ private static function prepareCollectionOrDatabaseOptions(array $options): arra | |||||
|
||||||
private static function prepareBucketOptions(array $options): array | ||||||
{ | ||||||
Util::assertHasOnlyKeys($options, ['bucketName', 'chunkSizeBytes', 'readConcern', 'readPreference', 'writeConcern']); | ||||||
Util::assertHasOnlyKeys($options, ['bucketName', 'chunkSizeBytes', 'disableMD5', 'readConcern', 'readPreference', 'writeConcern']); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per my earlier comment about no tests using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are correct, this option is not necessary for the existing spec tests. But it should be allowed according to the spec.
Suggested change
|
||||||
|
||||||
if (array_key_exists('bucketName', $options)) { | ||||||
assertIsString($options['bucketName']); | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,10 +64,6 @@ class UnifiedSpecTest extends FunctionalTestCase | |
'index-management/search index operations ignore read and write concern: listSearchIndexes ignores read and write concern' => 'libmongoc appends readConcern to aggregate command', | ||
// Uses an invalid object name | ||
'run-command/runCursorCommand: does not close the cursor when receiving an empty batch' => 'Uses an invalid object name', | ||
// GridFS deprecated fields are removed | ||
'gridfs/gridfs-upload-disableMD5: upload when length is 0 sans MD5' => 'Deprecated fields are removed', | ||
'gridfs/gridfs-upload-disableMD5: upload when length is 1 sans MD5' => 'Deprecated fields are removed', | ||
'gridfs/gridfs-upload: upload when contentType is provided' => 'Deprecated fields are removed', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noted that this test was removed in mongodb/specifications@12be2df. |
||
]; | ||
|
||
/** | ||
|
Uh oh!
There was an error while loading. Please reload this page.