...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/unified/updateMany-hint-clientError.yml

Documentation: go.mongodb.org/mongo-driver/testdata/crud/unified

     1# This file was created automatically using mongodb-spec-converter.
     2# Please review the generated file, then remove this notice.
     3
     4description: updateMany-hint-clientError
     5schemaVersion: '1.0'
     6runOnRequirements:
     7  -
     8    maxServerVersion: 3.3.99
     9createEntities:
    10  -
    11    client:
    12      id: &client0 client0
    13      observeEvents:
    14        - commandStartedEvent
    15  -
    16    database:
    17      id: &database0 database0
    18      client: client0
    19      databaseName: &database_name crud-v2
    20  -
    21    collection:
    22      id: &collection0 collection0
    23      database: database0
    24      collectionName: &collection_name test_updatemany_hint
    25initialData:
    26  -
    27    collectionName: *collection_name
    28    databaseName: *database_name
    29    documents:
    30      -
    31        _id: 1
    32        x: 11
    33      -
    34        _id: 2
    35        x: 22
    36      -
    37        _id: 3
    38        x: 33
    39tests:
    40  -
    41    description: 'UpdateMany with hint string unsupported (client-side error)'
    42    operations:
    43      -
    44        object: *collection0
    45        name: updateMany
    46        arguments:
    47          filter: &filter
    48            _id:
    49              $gt: 1
    50          update: &update
    51            $inc:
    52              x: 1
    53          hint: _id_
    54        expectError:
    55          isError: true
    56    expectEvents:
    57      -
    58        client: *client0
    59        events: []
    60    outcome: &outcome
    61      -
    62        collectionName: *collection_name
    63        databaseName: *database_name
    64        documents:
    65          -
    66            _id: 1
    67            x: 11
    68          -
    69            _id: 2
    70            x: 22
    71          -
    72            _id: 3
    73            x: 33
    74  -
    75    description: 'UpdateMany with hint document unsupported (client-side error)'
    76    operations:
    77      -
    78        object: *collection0
    79        name: updateMany
    80        arguments:
    81          filter: *filter
    82          update: *update
    83          hint:
    84            _id: 1
    85        expectError:
    86          isError: true
    87    expectEvents:
    88      -
    89        client: *client0
    90        events: []
    91    outcome: *outcome

View as plain text