File: expectedError-errorResponse.yml

package info (click to toggle)
ruby-mongo 2.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,764 kB
  • sloc: ruby: 108,806; makefile: 5; sh: 2
file content (39 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download
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
35
36
37
38
39
description: "expectedError-errorResponse"

schemaVersion: "1.12"

createEntities:
  - client:
      id: &client0 client0
  - database:
      id: &database0 database0
      client: *client0
      databaseName: &database0Name test
  - collection:
      id: &collection0 collection0
      database: *database0
      collectionName: &collection0Name coll0

tests:
  - description: "Unsupported command"
    operations:
      - name: runCommand
        object: *database0
        arguments:
          commandName: unsupportedCommand
          command: { unsupportedCommand: 1 }
        expectError:
          # Avoid asserting the exact error since it may vary by server version
          errorResponse:
            errmsg: { $$type: "string" }

  - description: "Unsupported query operator"
    operations:
      - name: find
        object: *collection0
        arguments:
          filter: { $unsupportedQueryOperator: 1 }
        expectError:
          # Avoid asserting the exact error since it may vary by server version
          errorResponse:
            errmsg: { $$type: "string" }