[DRIVERS-2048] Replace use of find operation "modifiers" in spec tests Created: 05/Apr/19  Updated: 08/Mar/23

Status: Backlog
Project: Drivers
Component/s: Command Logging and Monitoring
Fix Version/s: None

Type: Spec Change Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by DRIVERS-956 Command monitoring find tests are out... Closed
Driver Changes: Needed

 Description   

Now that find "modifiers" are deprecated, we should replace use of them in spec tests with their normal property replacements.

The one example i found is "A successful find event with options" in the command monitoring tests:

        "modifiers": {
            "$comment": "test",
            "$hint": {
              "_id": 1
            },
            "$max": {
              "_id": 6
            },
            "$maxTimeMS": 6000,
            "$min": {
              "_id": 0
            },
            "$returnKey": false,
            "$showDiskLoc": false,
          }

could be replaced with

          "comment" : "test",
          "hint": {
            "_id": 1
          },
          "max": {
            "_id": 6
          },
          "maxTimeMS": 6000,
          "min": {
            "_id": 0
          },
          "returnKey": true,
          "showRecordId": true,

This will make it possible for drivers that have removed modifiers support to implement the test.

It's possible that we still want to test modifiers translation, but if so, let's figure out a way to signify in the test that drivers that don't support modifiers should skip the test.


Generated at Thu Feb 08 08:24:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.