File: returnDocument-enum-invalid.yml

package info (click to toggle)
golang-mongodb-mongo-driver 1.8.4%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 18,520 kB
  • sloc: perl: 533; ansic: 491; python: 432; makefile: 187; sh: 72
file content (34 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
description: "returnDocument-enum-invalid"

schemaVersion: "1.0"

createEntities:
  - client:
      id: &client0 client0
  - database:
      id: &database0 database0
      client: *client0
      databaseName: &databaseName test
  - collection:
      id: &collection0 collection0
      database: *database0
      collectionName: &collectionName coll

tests:
  - description: "FindOneAndReplace returnDocument invalid enum value"
    operations:
      - name: findOneAndReplace
        object: *collection0
        arguments:
          filter: { _id: 1 }
          replacement: { _id: 1, x: 111 }
          returnDocument: invalid

  - description: "FindOneAndUpdate returnDocument invalid enum value"
    operations:
      - name: findOneAndUpdate
        object: *collection0
        arguments:
          filter: { _id: 1 }
          update: { $inc: { x : 1 }}
          returnDocument: invalid