From a6396a4244fe15cf72f0452a62dc2cfe2e9a253a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:28:05 +0100 Subject: [PATCH] Bump tests/specifications from `9058491` to `34f9a57` (#1509) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump tests/specifications from `9058491` to `34f9a57` Bumps [tests/specifications](https://github.com/mongodb/specifications) from `9058491` to `34f9a57`. - [Release notes](https://github.com/mongodb/specifications/releases) - [Commits](https://github.com/mongodb/specifications/compare/9058491f2d5b5651913a56e373121a24d6498673...34f9a579cb7b74023a2bf59c61c39145cf9aec45) --- updated-dependencies: - dependency-name: tests/specifications dependency-type: direct:production ... Signed-off-by: dependabot[bot] * DRIVERS-3023 Add spec tests for GridFS Bucket rename (#1507) --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jérôme Tamarelle --- tests/UnifiedSpecTests/Operation.php | 9 +++++++++ tests/UnifiedSpecTests/Util.php | 1 + tests/specifications | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/UnifiedSpecTests/Operation.php b/tests/UnifiedSpecTests/Operation.php index cc7cd703a..390e278be 100644 --- a/tests/UnifiedSpecTests/Operation.php +++ b/tests/UnifiedSpecTests/Operation.php @@ -803,6 +803,15 @@ private function executeForBucket(Bucket $bucket) return stream_get_contents($bucket->openDownloadStream($args['id'])); + case 'rename': + assertArrayHasKey('id', $args); + assertArrayHasKey('newFilename', $args); + assertIsString($args['newFilename']); + + $bucket->rename($args['id'], $args['newFilename']); + + return null; + case 'uploadWithId': assertArrayHasKey('id', $args); $args['_id'] = $args['id']; diff --git a/tests/UnifiedSpecTests/Util.php b/tests/UnifiedSpecTests/Util.php index 4f2fb22f1..e09e3f942 100644 --- a/tests/UnifiedSpecTests/Util.php +++ b/tests/UnifiedSpecTests/Util.php @@ -134,6 +134,7 @@ final class Util 'delete' => ['id'], 'downloadByName' => ['filename', 'revision'], 'download' => ['id'], + 'rename' => ['id', 'newFilename'], 'uploadWithId' => ['id', 'filename', 'source', 'chunkSizeBytes', 'disableMD5', 'contentType', 'metadata'], 'upload' => ['filename', 'source', 'chunkSizeBytes', 'disableMD5', 'contentType', 'metadata'], ], diff --git a/tests/specifications b/tests/specifications index 9058491f2..34f9a579c 160000 --- a/tests/specifications +++ b/tests/specifications @@ -1 +1 @@ -Subproject commit 9058491f2d5b5651913a56e373121a24d6498673 +Subproject commit 34f9a579cb7b74023a2bf59c61c39145cf9aec45