...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/unified/bulkWrite-delete-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: bulkWrite-delete-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 BulkWrite_delete_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
    39      -
    40        _id: 4
    41        x: 44
    42tests:
    43  -
    44    description: 'BulkWrite deleteOne with hints unsupported (client-side error)'
    45    operations:
    46      -
    47        object: *collection0
    48        name: bulkWrite
    49        arguments:
    50          requests:
    51            -
    52              deleteOne:
    53                filter: &deleteOne_filter1
    54                  _id: 1
    55                hint: &hint_string _id_
    56            -
    57              deleteOne:
    58                filter: &deleteOne_filter2
    59                  _id: 2
    60                hint: &hint_doc
    61                  _id: 1
    62          ordered: true
    63        expectError:
    64          isError: true
    65    expectEvents:
    66      -
    67        client: *client0
    68        events: []
    69    outcome: &outcome
    70      -
    71        collectionName: *collection_name
    72        databaseName: *database_name
    73        documents:
    74          -
    75            _id: 1
    76            x: 11
    77          -
    78            _id: 2
    79            x: 22
    80          -
    81            _id: 3
    82            x: 33
    83          -
    84            _id: 4
    85            x: 44
    86  -
    87    description: 'BulkWrite deleteMany with hints unsupported (client-side error)'
    88    operations:
    89      -
    90        object: *collection0
    91        name: bulkWrite
    92        arguments:
    93          requests:
    94            -
    95              deleteMany:
    96                filter: &deleteMany_filter1
    97                  _id:
    98                    $lt: 3
    99                hint: *hint_string
   100            -
   101              deleteMany:
   102                filter: &deleteMany_filter2
   103                  _id:
   104                    $gte: 4
   105                hint: *hint_doc
   106          ordered: true
   107        expectError:
   108          isError: true
   109    expectEvents:
   110      -
   111        client: *client0
   112        events: []
   113    outcome: *outcome

View as plain text