...

Text file src/go.mongodb.org/mongo-driver/testdata/atlas-data-lake-testing/getMore.yml

Documentation: go.mongodb.org/mongo-driver/testdata/atlas-data-lake-testing

     1collection_name: &collection_name "driverdata"
     2database_name: &database_name "test"
     3
     4tests:
     5  -
     6    description: "A successful find event with getMore"
     7    operations:
     8      -
     9        object: collection
    10        name: find
    11        arguments:
    12          filter: { a: { $gte: 2 }}
    13          sort: { a: 1 }
    14          batchSize: 3
    15          limit: 4
    16    expectations:
    17      -
    18        command_started_event:
    19          command:
    20            find: *collection_name
    21            filter: { a: { $gte : 2 }}
    22            sort: { a: 1 }
    23            batchSize: 3
    24            limit: 4
    25          command_name: "find"
    26          database_name: *database_name
    27      -
    28        command_started_event:
    29          command:
    30            # Assertions for "getMore" and "collection" fields are omitted, as they will have arbitrary values
    31            # TODO: Those assertions can be added after wildcard matchers are available via SPEC-1215
    32            batchSize: 1
    33          command_name: "getMore"
    34          # mongohoused always expects getMores on the "cursors" database
    35          database_name: "cursors"

View as plain text