Sha256: 16dd8661a7373419a6cc847f055b9485d4be1806f8605b36e78428174397403f

Contents?: true

Size: 1.11 KB

Versions: 14

Compression:

Stored size: 1.11 KB

Contents

# Test auto encryption on a collection with no jsonSchema configured.
# This is a regression test for MONGOCRYPT-378/PYTHON-3188.
runOn:
  - minServerVersion: "4.1.10"
database_name: &database_name "default"
collection_name: &collection_name "unencrypted"

data: []

tests:
  - description: "Insert on an unencrypted collection"
    clientOptions:
      autoEncryptOpts:
        kmsProviders:
          aws: {} # Credentials filled in from environment.
    operations:
      - name: insertOne
        arguments:
          document: &doc0 { _id: 1 }
    expectations:
      # Auto encryption will request the collection info.
      - command_started_event:
          command:
            listCollections: 1
            filter:
              name: *collection_name
          command_name: listCollections
      - command_started_event:
          command:
            insert: *collection_name
            documents:
              - *doc0
            ordered: true
          command_name: insert
    outcome:
      collection:
        # Outcome is checked using a separate MongoClient without auto encryption.
        data:
          - *doc0

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.20.1 spec/spec_tests/data/client_side_encryption/noSchema.yml
mogno-2.20.0 spec/spec_tests/data/client_side_encryption/noSchema.yml
mogno-1.0.0 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.20.0 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.19.3 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.18.3 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.19.2 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.19.1 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.19.0 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.18.2 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.18.1 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.18.0 spec/spec_tests/data/client_side_encryption/noSchema.yml
mongo-2.18.0.beta1 spec/spec_tests/data/client_side_encryption/noSchema.yml