From 3317992d27691a40195b01ae1c69a325f70bf0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 29 Oct 2024 09:27:37 +0100 Subject: [PATCH] Ignore disableMD5 option as "md5" field is removed from the spec --- tests/UnifiedSpecTests/Operation.php | 4 ++++ tests/UnifiedSpecTests/UnifiedSpecTest.php | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/UnifiedSpecTests/Operation.php b/tests/UnifiedSpecTests/Operation.php index 63ca8fcd9..2ed73262d 100644 --- a/tests/UnifiedSpecTests/Operation.php +++ b/tests/UnifiedSpecTests/Operation.php @@ -769,6 +769,10 @@ private function executeForSession(Session $session) private function executeForBucket(Bucket $bucket) { $args = $this->prepareArguments(); + + // "md5" field is removed from the spec, option "disableMD5" is ignored + unset($args['disableMD5']); + Util::assertArgumentsBySchema(Bucket::class, $this->name, $args); switch ($this->name) { diff --git a/tests/UnifiedSpecTests/UnifiedSpecTest.php b/tests/UnifiedSpecTests/UnifiedSpecTest.php index 39d893e3d..46ce8adbe 100644 --- a/tests/UnifiedSpecTests/UnifiedSpecTest.php +++ b/tests/UnifiedSpecTests/UnifiedSpecTest.php @@ -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', ]; /**