Sha256: 47676170e3d510acca2cf41a0c3f8e14031d211a6cdc22007c3cb6ba2c830a12

Contents?: true

Size: 1.7 KB

Versions: 4

Compression:

Stored size: 1.7 KB

Contents

description: createDataKey-provider-invalid

schemaVersion: "1.8"

runOnRequirements:
  - csfle: true

createEntities:
  - client:
      id: &client0 client0
      observeEvents:
        - commandStartedEvent
        - commandSucceededEvent
        - commandFailedEvent
  - clientEncryption:
      id: &clientEncryption0 clientEncryption0
      clientEncryptionOpts:
        keyVaultClient: *client0
        keyVaultNamespace: keyvault.datakeys
        kmsProviders:
          aws: { accessKeyId: { $$placeholder: 1 }, secretAccessKey: { $$placeholder: 1 } }

tests:
  - description: create data key without required master key fields
    operations:
      - name: createDataKey
        object: *clientEncryption0
        arguments:
          kmsProvider: aws
          opts:
            masterKey: {}
        expectError:
          isClientError: true
    expectEvents:
      - client: *client0
        events: []

  - description: create data key with invalid master key field
    operations:
      - name: createDataKey
        object: *clientEncryption0
        arguments:
          kmsProvider: local
          opts:
            masterKey:
              invalid: 1
        expectError:
          isClientError: true
    expectEvents:
      - client: *client0
        events: []

  - description: create data key with invalid master key
    operations:
      - name: createDataKey
        object: *clientEncryption0
        arguments:
          kmsProvider: aws
          opts:
            masterKey:
              key: arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0
              region: invalid
        expectError:
          isClientError: true
    expectEvents:
      - client: *client0
        events: []

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongo-2.18.3 spec/spec_tests/data/client_side_encryption/unified/createDataKey-kms_providers-invalid.yml
mongo-2.18.2 spec/spec_tests/data/client_side_encryption/unified/createDataKey-kms_providers-invalid.yml
mongo-2.18.1 spec/spec_tests/data/client_side_encryption/unified/createDataKey-kms_providers-invalid.yml
mongo-2.18.0 spec/spec_tests/data/client_side_encryption/unified/createDataKey-kms_providers-invalid.yml