Support auto encryption in unified tests

XMLWordPrintableJSON

    • Hide

      DRIVERS-3106:
      Add support for auto encryption in unified test format. This is a prerequisite to migrating CSFLE/QE legacy tests to the unified test format.

      Summary of necessary driver changes

      • Sync spec tests
      • Implement unified test format version 1.23
        • Support autoEncryptOpts
        • Drop QE state collections (enxcol_.<coll>.esc and enxcol_.<coll>.ecoc)

      Tests introduce using AWS temporary credentials (indicated by the placeholder sessionToken). In summary:

      # Expects long-term credentials:
      { aws: { accessKeyId: { $$placeholder: 1 }, secretAccessKey: { $$placeholder: 1 } }
      
      # Expects temporary credentials:
      { aws: { accessKeyId: { $$placeholder: 1 }, secretAccessKey: { $$placeholder: 1 } sessionToken: { $$placeholder: 1 }}
      

       

      Commits for syncing spec/prose tests

      Show
      DRIVERS-3106 : Add support for auto encryption in unified test format. This is a prerequisite to migrating CSFLE/QE legacy tests to the unified test format. Summary of necessary driver changes Sync spec tests Implement unified test format version 1.23 Support autoEncryptOpts Drop QE state collections ( enxcol_.<coll>.esc and enxcol_.<coll>.ecoc ) Tests introduce using AWS temporary credentials (indicated by the placeholder sessionToken ). In summary: # Expects long -term credentials: { aws: { accessKeyId: { $$placeholder: 1 }, secretAccessKey: { $$placeholder: 1 } } # Expects temporary credentials: { aws: { accessKeyId: { $$placeholder: 1 }, secretAccessKey: { $$placeholder: 1 } sessionToken: { $$placeholder: 1 }}   Commits for syncing spec/prose tests Initial commit: https://github.com/mongodb/specifications/commit/52a076b7e7c0fa74abbab6e28ae5e36a1de1d1cb Follow-up fix to regenerate JSON file: https://github.com/mongodb/specifications/commit/89e91523b58e9de06d45da9329d3d2595307557c Follow-up to restore legacy JSON tests: https://github.com/mongodb/specifications/commit/a039bb4485b56c30bcda6d318b83f07ad741fb95 . (So drivers using a git submodule for spec tests can update without losing coverage) Follow-up fix to matching and drop state collections: https://github.com/mongodb/specifications/commit/1c1500ada5e4d03c7f95e0a7a93fc0f77e5c0f76 Follow-up fix to error assertion: https://github.com/mongodb/specifications/commit/88b5284f099dd3c09af53c5e2376c202968f494e Follow-up to clarify cryptSharedLibPath may be implicitly set: https://github.com/mongodb/specifications/commit/62b9114bba9437c2c073d7e4e3b1090591ff01d2 Follow-up to prevent QE unified test from running on standalone servers: https://github.com/mongodb/specifications/commit/28ffbc48d8ea5238881752eced5160d76d132691 Follow-up to fix typo: https://github.com/mongodb/specifications/commit/de3696ee8915f0e10632a9af872b1e803a2ebc1b   Follow-up to replace empty UUIDs in localSchema.json: https://github.com/mongodb/specifications/commit/2e1d32fe8f7e0e95e0a6c1309be0ee51f9229e41
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket was split from DRIVERS-3106, please see that ticket for a detailed description.

              Assignee:
              Ross Lawley
              Reporter:
              TPM Jira Automations Bot
              Slav Babanin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: