Skip to content

RUBY-3625 Support auto encryption in unified tests - #3085

Open
comandeo-mongo wants to merge 1 commit into
mongodb:masterfrom
comandeo-mongo:3625-auto-encryption-unified
Open

RUBY-3625 Support auto encryption in unified tests#3085
comandeo-mongo wants to merge 1 commit into
mongodb:masterfrom
comandeo-mongo:3625-auto-encryption-unified

Conversation

@comandeo-mongo

Copy link
Copy Markdown
Contributor

Syncs the canonical poc-queryable-encryption fixture from the specifications repo into the valid-pass unified suite. It exercises autoEncryptOpts on a client entity (local KMS provider + queryable encryption encryptedFields), demonstrating that the Unified Test Runner can configure AutoEncryptionOpts — the acceptance criterion of DRIVERS-3106.

The runner support itself already exists on master (landed incrementally under RUBY-3773 and RUBY-3363); this fixture is the missing demonstration. No runner code changes are needed — spec/spec_tests/unified_spec.rb globs valid-pass/**/*.yml automatically.

Files changed

  • spec/spec_tests/data/unified/valid-pass/poc-queryable-encryption.yml — new fixture, copied verbatim from specifications/source/unified-test-format/tests/valid-pass/.

Test plan

  • bundle exec rspec spec/spec_tests/unified_spec.rb -e poc-queryable-encryption against a local 8.2.0 replica set with crypt_shared + libmongocrypt-helper — 1 example, 0 failures.

Jira: https://jira.mongodb.org/browse/RUBY-3625

Sync the poc-queryable-encryption fixture from the specifications repo
into the valid-pass unified suite. It exercises autoEncryptOpts on a
client entity (local KMS + queryable encryption), demonstrating the
runner support landed under RUBY-3773 and RUBY-3363.
@comandeo-mongo
comandeo-mongo marked this pull request as ready for review July 21, 2026 07:44
@comandeo-mongo
comandeo-mongo requested a review from a team as a code owner July 21, 2026 07:44
@comandeo-mongo
comandeo-mongo requested review from Copilot and jamis July 21, 2026 07:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Unified Test Format fixture to the Ruby driver’s unified spec test suite to demonstrate and validate support for configuring AutoEncryptionOpts via autoEncryptOpts on a client entity (Queryable Encryption / CSFLE), aligning with DRIVERS-3106 and RUBY-3625.

Changes:

  • Syncs the canonical poc-queryable-encryption unified test (valid-pass) into the driver’s spec fixtures.
  • Exercises QE setup via encryptedFields create options and verifies encrypted vs unencrypted client behavior in basic CRUD operations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants