File: README.rst

package info (click to toggle)
golang-mongodb-mongo-driver 1.8.4%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 18,520 kB
  • sloc: perl: 533; ansic: 491; python: 432; makefile: 187; sh: 72
file content (37 lines) | stat: -rw-r--r-- 1,209 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
===================
Versioned API Tests
===================

.. contents::

----

Notes
=====

This directory contains tests for the Versioned API specification. They are
implemented in the `Unified Test Format <../../unified-test-format/unified-test-format.rst>`__,
and require schema version 1.1. Note that to run these tests, the server must be
started with both ``enableTestCommands`` and ``acceptApiVersion2`` parameters
set to true.

Testing with required API version
=================================

Drivers MUST run their test suite against a cluster with the
``requireApiVersion`` parameter enabled and also requires authentication.

To run this test, proceed as follows:
- Start a standalone mongod instance

- Connect to the standalone instance and run the following command on the
  ``admin`` database: ``{ setParameter: 1, requireApiVersion: true }``

- Declare an API version for the test run through the ``MONGODB_API_VERSION``
  environment variable.

- If the environment variable is set, all clients created in tests MUST declare
  the ``ServerApiVersion`` specified.

No other topologies must be tested until ``mongo-orchestration`` can handle
servers with ``requireApiVersion`` enabled.