Sha256: acfed48b87e1a8411e8a7d26d032002d25491fe4199fd2340ea8cb6ac2e029df

Contents?: true

Size: 1.9 KB

Versions: 13

Compression:

Stored size: 1.9 KB

Contents

runOn:
  - minServerVersion: "4.1.10"
database_name: &database_name "default"
collection_name: &collection_name "default"

data: []
tests:
  - description: "create is OK"
    clientOptions:
      autoEncryptOpts:
        kmsProviders:
          local: {'key': {'$binary': {'base64': 'Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk', 'subType': '00'}}}
    operations:
    # Drop to remove a collection that may exist from previous test runs.
    - name: dropCollection
      object: database
      arguments:
        collection: "unencryptedCollection"
    - name: createCollection
      object: database
      arguments:
        collection: "unencryptedCollection"
        validator:
          unencrypted_string: "foo"
    - name: assertCollectionExists
      object: testRunner
      arguments:
        database: *database_name
        collection: "unencryptedCollection"
  - description: "createIndexes is OK"
    clientOptions:
      autoEncryptOpts:
        kmsProviders:
          local: {'key': {'$binary': {'base64': 'Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk', 'subType': '00'}}}
    operations:
    # Drop to remove a collection that may exist from previous test runs.
    - name: dropCollection
      object: database
      arguments:
        collection: "unencryptedCollection"
    - name: createCollection
      object: database
      arguments:
        collection: "unencryptedCollection"
    - name: runCommand
      object: database
      arguments:
        command:
          createIndexes: "unencryptedCollection"
          indexes:
            - name: "name"
              key: { name: 1 }
    - name: assertIndexExists
      object: testRunner
      arguments:
        database: *database_name
        collection: "unencryptedCollection"
        index: name

Version data entries

13 entries across 13 versions & 2 rubygems

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