[CXX-2371] Add unified specification tests for snapshot sessions Created: 15/Sep/21  Updated: 28/Oct/23  Resolved: 08/Nov/21

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.0

Type: Task Priority: Unknown
Reporter: Kevin Albertson Assignee: Jesse Williamson (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Snapshot reads on Secondaries

 Description   

Background & Motivation
The sessions specification has two sets of JSON/YML tests:

  • sessions/tests/unified
  • sessions/tests/legacy

DRIVERS-815 includes new sessions tests written in the Unified Test Format under sessions/tests/unified. The C++ driver has a unified test format runner.

The C++ driver does not have a runner for the legacy sessions specification. CXX-2087 notes all test runners the C++ driver does not implement. The Snapshot Reads Specification did not introduce any new legacy sessions tests.

Scope

  • Download the sessions unified test files into a new directory /data/sessions/unified
  • Add a TEST_CASE to the unified test runner's runner.cpp
  • Update the unified test runner if necessary to run the new tests.


 Comments   
Comment by Githook User [ 05/Nov/21 ]

Author:

{'name': 'Jesse Williamson', 'email': 'jesse.williamson@mongodb.com', 'username': 'chardan'}

Message: CXX-2368 support read concern snapshot (#828)

  • Add snapshot-sessions data.

This commit adds data from CXX-2371, as described here:
https://jira.mongodb.org/browse/CXX-2371

  • Add cmake support for unified session tests.
  • Add slight informational improvements to runner's environment variable
    lookup.
  • remove unnecessary CAPTURE of test file contents
  • fix distinct result
  • pass session argument to count_documents operation
  • pass session argument to runCommand, updateOne, listDatabases, listCollections
  • support listIndexes
  • fix writeConcern parsing
  • use wc majority for inserting initialData
  • apply clang-format
  • Fixup for test; cannot check condition until another bug is patched.
  • Respond to review comments.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

Co-authored-by: Kevin Albertson <kevin.albertson@mongodb.com>
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/b858c5e18dce80bd9f8919f48b3be6fa3e066332

Comment by Kevin Albertson [ 03/Nov/21 ]

This is being done as part of CXX-2368.

Generated at Wed Feb 07 22:05:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.