Skip to content

Add aggregate command tests#221

Open
danielfrankcom wants to merge 7 commits into
documentdb:mainfrom
danielfrankcom:pr/aggregate
Open

Add aggregate command tests#221
danielfrankcom wants to merge 7 commits into
documentdb:mainfrom
danielfrankcom:pr/aggregate

Conversation

@danielfrankcom
Copy link
Copy Markdown
Collaborator

This change adds tests for the aggregate command.

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 <[email protected]>
@danielfrankcom danielfrankcom requested a review from a team as a code owner May 21, 2026 00:04
@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.75 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (11743+10 LOC, 44 files); LLM: Adds new test coverage for the aggregate command, a functional enhancement to the test suite with some framework overlap from another PR.

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 <[email protected]>
@danielfrankcom
Copy link
Copy Markdown
Collaborator Author

Added a few more tests for collation based on work in #225. There are some aspects of collation that make more sense in this directory as they are part of the command syntax rather than collation behavior.

Remove collation subfield/semantic tests (covered in collation/),
writeConcern fsync/getLastError/provenance tests (undocumented options),
namespace naming rules (common spec), and thorough view tests (covered
in collections/views/). Add collection type acceptance tests. Keep only
command-specific syntax validation.
Signed-off-by: Daniel Frankcom <[email protected]>
Signed-off-by: Daniel Frankcom <[email protected]>
Signed-off-by: Daniel Frankcom <[email protected]>
The comment field accepts any BSON type, which is already covered by
test_aggregate_comment_types.py. Testing specific values within accepted
types adds no compatibility signal.
Signed-off-by: Daniel Frankcom <[email protected]>
@danielfrankcom danielfrankcom requested a review from yshanhu May 27, 2026 23:29
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