...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/unified/unacknowledged-findOneAndDelete-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: unacknowledged-findOneAndDelete-hint-clientError
     5schemaVersion: '1.0'
     6createEntities:
     7  -
     8    client:
     9      id: &client0 client0
    10      observeEvents:
    11        - commandStartedEvent
    12  -
    13    database:
    14      id: &database0 database0
    15      client: client0
    16      databaseName: &database_name crud-v2
    17  -
    18    collection:
    19      id: &collection0 collection0
    20      database: database0
    21      collectionName: &collection_name findOneAndDelete_hint
    22      collectionOptions:
    23        writeConcern: { w: 0 }
    24initialData:
    25  -
    26    collectionName: *collection_name
    27    databaseName: *database_name
    28    documents:
    29      -
    30        _id: 1
    31        x: 11
    32      -
    33        _id: 2
    34        x: 22
    35tests:
    36  -
    37    description: 'Unacknowledged findOneAndDelete with hint string fails with client-side error'
    38    operations:
    39      -
    40        object: *collection0
    41        name: findOneAndDelete
    42        arguments:
    43          filter: &filter
    44            _id: 1
    45          hint: _id_
    46        expectError:
    47          isError: true
    48    expectEvents:
    49      -
    50        client: *client0
    51        events: []
    52    outcome: &outcome
    53      -
    54        collectionName: *collection_name
    55        databaseName: *database_name
    56        documents:
    57          -
    58            _id: 1
    59            x: 11
    60          -
    61            _id: 2
    62            x: 22
    63  -
    64    description: 'Unacknowledged findOneAndDelete with hint document fails with client-side error'
    65    operations:
    66      -
    67        object: *collection0
    68        name: findOneAndDelete
    69        arguments:
    70          filter: &filter
    71            _id: 1
    72          hint:
    73            _id: 1
    74        expectError:
    75          isError: true
    76    expectEvents:
    77      -
    78        client: *client0
    79        events: []
    80    outcome: &outcome
    81      -
    82        collectionName: *collection_name
    83        databaseName: *database_name
    84        documents:
    85          -
    86            _id: 1
    87            x: 11
    88          -
    89            _id: 2
    90            x: 22

View as plain text