Closed kevinAlbs closed 10 months ago
readConcern
writeConcern
Tests were run in the C++ driver in this PR: https://github.com/mongodb/mongo-cxx-driver/pull/1055
This PR proposes adding tests to ensure each search index command does not include readConcern or writeConcern.
Unit tests apply a non-default readConcern and writeConcern to the collection:
# Set a non-default read and write concern. uriOptions: readConcernLevel: local w: 1
Unit tests verify the command started event is checked:
# Expect no writeConcern or readConcern to be sent. writeConcern: { $$exists: false } readConcern: { $$exists: false }
The integration test is as an extra precaution to test against a live Atlas instance.
The C++ driver failed unit and integration tests prior to fixes applied in https://github.com/mongodb/mongo-cxx-driver/pull/1055.
Please complete the following before merging:
Summary
readConcern
andwriteConcern
is not applied to search index commands.Tests were run in the C++ driver in this PR: https://github.com/mongodb/mongo-cxx-driver/pull/1055
Background & Motivation
This PR proposes adding tests to ensure each search index command does not include
readConcern
orwriteConcern
.Unit tests apply a non-default
readConcern
andwriteConcern
to the collection:Unit tests verify the command started event is checked:
The integration test is as an extra precaution to test against a live Atlas instance.
The C++ driver failed unit and integration tests prior to fixes applied in https://github.com/mongodb/mongo-cxx-driver/pull/1055.
Please complete the following before merging: