Sha256: df5d8bacddd21d6d1c8f700a03dedc0c9e4481a1f3dc486141adb0ebd9b0dab5

Contents?: true

Size: 1.71 KB

Versions: 14

Compression:

Stored size: 1.71 KB

Contents

description: snapshot-sessions-not-supported-client-error

schemaVersion: "1.0"

runOnRequirements:
  - minServerVersion: "3.6"
    maxServerVersion: "4.4.99"

createEntities:
  - client:
      id: &client0 client0
      observeEvents: [ commandStartedEvent, commandFailedEvent ]
  - database:
      id: &database0Name database0
      client: *client0
      databaseName: *database0Name
  - collection:
      id: &collection0Name collection0
      database: *database0Name
      collectionName: *collection0Name
  - session:
      id: session0
      client: client0
      sessionOptions:
        snapshot: true

initialData:
  - collectionName: *collection0Name
    databaseName: *database0Name
    documents:
      - { _id: 1, x: 11 }

tests:
- description: Client error on find with snapshot
  operations:
  - name: find
    object: collection0
    arguments:
      session: session0
      filter: {}
    expectError:
      isClientError: true
      errorContains: Snapshot reads require MongoDB 5.0 or later
  expectEvents:
    - client: *client0
      events: []

- description: Client error on aggregate with snapshot
  operations:
  - name: aggregate
    object: collection0
    arguments:
      session: session0
      pipeline: []
    expectError:
      isClientError: true
      errorContains: Snapshot reads require MongoDB 5.0 or later
  expectEvents:
    - client: *client0
      events: []

- description: Client error on distinct with snapshot
  operations:
  - name: distinct
    object: collection0
    arguments:
      fieldName: x
      filter: {}
      session: session0
    expectError:
      isClientError: true
      errorContains: Snapshot reads require MongoDB 5.0 or later
  expectEvents:
    - client: *client0
      events: []

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.20.1 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mogno-2.20.0 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mogno-1.0.0 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.20.0 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.19.3 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.18.3 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.19.2 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.19.1 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.19.0 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.18.2 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.18.1 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.18.0 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml
mongo-2.18.0.beta1 spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml