Assert collections are not created on unsupported server for QEv2.
Background & Motivation
CDRIVER-4653 reports a bug in the C driver implementation of DRIVERS-2524:
the state collections for QEv2 are created before the wire version check for MongoDB 7.0+.
The assertions in this PR are intended to verify this bug is fixed.
A separate drivers ticket was not created. Surveying other driver implementations, the C driver appears to be the only driver with this bug.
Please complete the following before merging:
[ ] Update changelog.N/A. Only test file changes.
[x] Make sure there are generated JSON files from the YAML test files.
[x] Test changes in at least one language driver. Tested in C
[ ] Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless).Tested in C on replica set. C does not test Queryable Encryption on sharded or serverless
Summary
Background & Motivation
CDRIVER-4653 reports a bug in the C driver implementation of DRIVERS-2524:
The assertions in this PR are intended to verify this bug is fixed.
A separate drivers ticket was not created. Surveying other driver implementations, the C driver appears to be the only driver with this bug.
Please complete the following before merging:
[ ] Update changelog.N/A. Only test file changes.[ ] Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless).Tested in C on replica set. C does not test Queryable Encryption on sharded or serverless