Skip to content

Commit

Permalink
Bump tests/specifications from 9058491 to 34f9a57 (#1509)
Browse files Browse the repository at this point in the history
* 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](mongodb/specifications@9058491...34f9a57)

---
updated-dependencies:
- dependency-name: tests/specifications
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* DRIVERS-3023 Add spec tests for GridFS Bucket rename (#1507)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Tamarelle <[email protected]>
  • Loading branch information
dependabot[bot] and GromNaN authored Oct 31, 2024
1 parent f9dd433 commit a6396a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions tests/UnifiedSpecTests/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
1 change: 1 addition & 0 deletions tests/UnifiedSpecTests/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
],
Expand Down
2 changes: 1 addition & 1 deletion tests/specifications
Submodule specifications updated 28 files
+2 −2 source/gridfs/tests/delete.json
+2 −2 source/gridfs/tests/delete.yml
+5 −5 source/gridfs/tests/download.json
+5 −5 source/gridfs/tests/download.yml
+2 −2 source/gridfs/tests/downloadByName.json
+2 −2 source/gridfs/tests/downloadByName.yml
+179 −0 source/gridfs/tests/rename.json
+78 −0 source/gridfs/tests/rename.yml
+3 −3 source/uri-options/tests/compression-options.json
+4 −4 source/uri-options/tests/compression-options.yml
+3 −3 source/uri-options/tests/concern-options.json
+3 −3 source/uri-options/tests/concern-options.yml
+19 −19 source/uri-options/tests/connection-options.json
+20 −20 source/uri-options/tests/connection-options.yml
+4 −4 source/uri-options/tests/connection-pool-options.json
+5 −5 source/uri-options/tests/connection-pool-options.yml
+10 −10 source/uri-options/tests/proxy-options.json
+10 −10 source/uri-options/tests/proxy-options.yml
+18 −3 source/uri-options/tests/read-preference-options.json
+14 −3 source/uri-options/tests/read-preference-options.yml
+1 −1 source/uri-options/tests/sdam-options.json
+1 −1 source/uri-options/tests/sdam-options.yml
+1 −1 source/uri-options/tests/single-threaded-options.json
+1 −1 source/uri-options/tests/single-threaded-options.yml
+6 −6 source/uri-options/tests/srv-options.json
+7 −7 source/uri-options/tests/srv-options.yml
+55 −55 source/uri-options/tests/tls-options.json
+55 −55 source/uri-options/tests/tls-options.yml

0 comments on commit a6396a4

Please sign in to comment.