...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/unified/findOneAndDelete-hint-serverError.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: findOneAndDelete-hint-serverError
     5schemaVersion: '1.0'
     6runOnRequirements:
     7  -
     8    minServerVersion: 4.2.0
     9    maxServerVersion: 4.3.3
    10createEntities:
    11  -
    12    client:
    13      id: &client0 client0
    14      observeEvents:
    15        - commandStartedEvent
    16  -
    17    database:
    18      id: &database0 database0
    19      client: client0
    20      databaseName: &database_name crud-v2
    21  -
    22    collection:
    23      id: &collection0 collection0
    24      database: database0
    25      collectionName: &collection_name findOneAndDelete_hint
    26initialData:
    27  -
    28    collectionName: *collection_name
    29    databaseName: *database_name
    30    documents:
    31      -
    32        _id: 1
    33        x: 11
    34      -
    35        _id: 2
    36        x: 22
    37tests:
    38  -
    39    description: 'FindOneAndDelete with hint string unsupported (server-side error)'
    40    operations:
    41      -
    42        object: *collection0
    43        name: findOneAndDelete
    44        arguments:
    45          filter: &filter
    46            _id: 1
    47          hint: _id_
    48        expectError:
    49          isError: true
    50    expectEvents:
    51      -
    52        client: *client0
    53        events:
    54          -
    55            commandStartedEvent:
    56              command:
    57                findAndModify: *collection_name
    58                query: *filter
    59                hint: _id_
    60                remove: true
    61    outcome: &outcome
    62      -
    63        collectionName: *collection_name
    64        databaseName: *database_name
    65        documents:
    66          -
    67            _id: 1
    68            x: 11
    69          -
    70            _id: 2
    71            x: 22
    72  -
    73    description: 'FindOneAndDelete with hint document unsupported (server-side error)'
    74    operations:
    75      -
    76        object: *collection0
    77        name: findOneAndDelete
    78        arguments:
    79          filter: &filter
    80            _id: 1
    81          hint:
    82            _id: 1
    83        expectError:
    84          isError: true
    85    expectEvents:
    86      -
    87        client: *client0
    88        events:
    89          -
    90            commandStartedEvent:
    91              command:
    92                findAndModify: *collection_name
    93                query: *filter
    94                hint:
    95                  _id: 1
    96                remove: true
    97    outcome: &outcome
    98      -
    99        collectionName: *collection_name
   100        databaseName: *database_name
   101        documents:
   102          -
   103            _id: 1
   104            x: 11
   105          -
   106            _id: 2
   107            x: 22

View as plain text