Skip to content

Add $listClusterCatalog stage tests#166

Open
danielfrankcom wants to merge 1 commit intodocumentdb:mainfrom
danielfrankcom:pr/listClusterCatalog
Open

Add $listClusterCatalog stage tests#166
danielfrankcom wants to merge 1 commit intodocumentdb:mainfrom
danielfrankcom:pr/listClusterCatalog

Conversation

@danielfrankcom
Copy link
Copy Markdown
Collaborator

This change adds tests for the $listClusterCatalog aggregation stage.

I modified assertProperties to run against all input documents. Previously it was only used by operators which produced 1 document, so this change is compatible with those existing cases.

I also introduced ListClusterCatalogTestCase for these cases, as there were some special requirements around collection handling and a few other things which aren't required by the existing StageTestCase users.

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@danielfrankcom danielfrankcom requested a review from a team as a code owner May 6, 2026 00:15
@documentdb-triage-tool documentdb-triage-tool Bot added compatibility test Compatibility test related enhancement New feature or request labels May 6, 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 L · Status Needs Review
Confidence: 0.85 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (1191+15 LOC, 10 files); LLM: Adds new test cases for the $listClusterCatalog aggregation stage, touching test coverage files with a moderate amount of new test logic and a new test case type.

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.

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.

1 participant