Skip to content

Add collation tests#225

Open
danielfrankcom wants to merge 9 commits into
documentdb:mainfrom
danielfrankcom:pr/collation
Open

Add collation tests#225
danielfrankcom wants to merge 9 commits into
documentdb:mainfrom
danielfrankcom:pr/collation

Conversation

@danielfrankcom
Copy link
Copy Markdown
Collaborator

This change adds tests for collation across commands/features. The intent is to cover semantic behavior of collation in general, so these tests cover a number of different features that could potentially be affected by collation.

While working on this change I found some gaps in the collation testing for the aggregate command, so will add them in #221. The split is the command tests aim to test the syntax and accepted options for the collation configuration, whereas the dedicated collation tests focus on the behavior.

There is some overlap here with #191 as some of the framework changes are needed by both. I've included them here so they should merge cleanly.

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@danielfrankcom danielfrankcom requested a review from a team as a code owner May 21, 2026 23:51
@documentdb-triage-tool documentdb-triage-tool Bot added compatibility test Compatibility test related enhancement New feature or request labels May 21, 2026
@documentdb-triage-tool
Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: compatibility test, enhancement
Project fields suggested: Component test-coverage · Priority P2 · Effort XL · Status Needs Review
Confidence: 0.80 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (14234+21 LOC, 62 files); LLM: Adds new collation behavior tests across multiple commands/features, touching test coverage and some framework changes across multiple files.

If a label is wrong, remove it manually and ping @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@danielfrankcom danielfrankcom requested a review from yshanhu May 26, 2026 22:18
Move capped collection tests from options/ to collection_level/.
Move text index tests from options/ to index_level/ and add 2d/2dsphere
collation tests covering the restriction boundary (2d rejects non-simple,
2dsphere accepts any collation).
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Remove dedicated dotted path file (12 tests across multiple commands for
the same concern). Add a single dotted path test to test_operations_find.py
filter tests instead.
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@danielfrankcom danielfrankcom requested a review from eerxuan May 28, 2026 18:02
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility test Compatibility test related enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants