[SERVER-56090] Refactor rename collection tests Created: 14/Apr/21  Updated: 29/Oct/23  Resolved: 15/Apr/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: Backlog
Fix Version/s: 4.9.0-rc1, 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-79051 clean up core/ddl/rename_collection.js Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2021-05-03
Participants:

 Description   

Currently we have some tests in jstests/core named "rename{0-8}.js", this cause some confusion since some of them test the renameCollection command and some other the $rename operator. Moreover some of these test are very small and can be grouped together.

Tasks that will be executed under this ticket:

  • Remove the require_fastcount tag by using countDocuments instead.
  • Split rename.js in rename_collection.js and rename_collection_capped.js.
  • Merge rename2.js in rename_collection.js.
  • Merge rename3.js in rename_collection.js.
  • Rename rename4.js into rename_operator.js.
  • Rename rename5.js into rename_operator_missing_source.js.
  • Rename rename6.js into rename_collection_long_name.js.
  • Rename rename7.js into rename_collection_different_dbs.js
  • Rename rename8.js into rename_collection_system_db.js
  • Rename rename_stayTemp.js into rename_collection_staytemp.js
  • Blacklist tests by tags instead of explicit blacklisting


 Comments   
Comment by Githook User [ 15/Apr/21 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-56090 Refactor rename collection tests
Branch: master
https://github.com/mongodb/mongo/commit/5e620d700d7c7c2b68fe1774bc8f070d47088bf7

Generated at Thu Feb 08 05:38:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.