...

Text file src/go.mongodb.org/mongo-driver/testdata/client-side-encryption/legacy/noSchema.json

Documentation: go.mongodb.org/mongo-driver/testdata/client-side-encryption/legacy

     1{
     2  "runOn": [
     3    {
     4      "minServerVersion": "4.1.10"
     5    }
     6  ],
     7  "database_name": "default",
     8  "collection_name": "unencrypted",
     9  "tests": [
    10    {
    11      "description": "Insert on an unencrypted collection",
    12      "clientOptions": {
    13        "autoEncryptOpts": {
    14          "kmsProviders": {
    15            "aws": {}
    16          }
    17        }
    18      },
    19      "operations": [
    20        {
    21          "name": "insertOne",
    22          "arguments": {
    23            "document": {
    24              "_id": 1
    25            }
    26          }
    27        }
    28      ],
    29      "expectations": [
    30        {
    31          "command_started_event": {
    32            "command": {
    33              "listCollections": 1,
    34              "filter": {
    35                "name": "unencrypted"
    36              }
    37            },
    38            "command_name": "listCollections"
    39          }
    40        },
    41        {
    42          "command_started_event": {
    43            "command": {
    44              "insert": "unencrypted",
    45              "documents": [
    46                {
    47                  "_id": 1
    48                }
    49              ],
    50              "ordered": true
    51            },
    52            "command_name": "insert"
    53          }
    54        }
    55      ],
    56      "outcome": {
    57        "collection": {
    58          "data": [
    59            {
    60              "_id": 1
    61            }
    62          ]
    63        }
    64      }
    65    }
    66  ]
    67}

View as plain text