Skip to content

Commit 3317992

Browse files
committed
Ignore disableMD5 option as "md5" field is removed from the spec
1 parent 660fe6c commit 3317992

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/UnifiedSpecTests/Operation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,10 @@ private function executeForSession(Session $session)
769769
private function executeForBucket(Bucket $bucket)
770770
{
771771
$args = $this->prepareArguments();
772+
773+
// "md5" field is removed from the spec, option "disableMD5" is ignored
774+
unset($args['disableMD5']);
775+
772776
Util::assertArgumentsBySchema(Bucket::class, $this->name, $args);
773777

774778
switch ($this->name) {

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ class UnifiedSpecTest extends FunctionalTestCase
6464
'index-management/search index operations ignore read and write concern: listSearchIndexes ignores read and write concern' => 'libmongoc appends readConcern to aggregate command',
6565
// Uses an invalid object name
6666
'run-command/runCursorCommand: does not close the cursor when receiving an empty batch' => 'Uses an invalid object name',
67-
// GridFS deprecated fields are removed
68-
'gridfs/gridfs-upload-disableMD5: upload when length is 0 sans MD5' => 'Deprecated fields are removed',
69-
'gridfs/gridfs-upload-disableMD5: upload when length is 1 sans MD5' => 'Deprecated fields are removed',
70-
'gridfs/gridfs-upload: upload when contentType is provided' => 'Deprecated fields are removed',
7167
];
7268

7369
/**

0 commit comments

Comments
 (0)