Add execute_command/assertion framework and migrate tests to runCommand format#20
Merged
nitinahuja89 merged 3 commits intodocumentdb:mainfrom Apr 1, 2026
Merged
Conversation
847bd84 to
8f9222c
Compare
…nd format Add framework modules: - framework/executor.py: execute_command, execute_admin_command - framework/infra_exceptions.py: infrastructure error detection - framework/assertions.py: assertSuccess, assertFailure, assertResult Migrate all existing tests from PyMongo driver calls to runCommand format using execute_command + framework assertions. This enables consistent error handling and result comparison across engines. Update framework/__init__.py exports and simplify tests/__init__.py. Signed-off-by: Yunxuan Shi <yunxuan@amazon.com> # Conflicts: # documentdb_tests/compatibility/tests/core/operator/stages/group/test_group_stage.py # documentdb_tests/compatibility/tests/core/operator/stages/match/test_match_stage.py
8f9222c to
1c1b300
Compare
eerxuan
commented
Mar 25, 2026
...ntdb_tests/compatibility/tests/core/query-and-write/commands/find/test_find_basic_queries.py
Show resolved
Hide resolved
vtarassov
approved these changes
Mar 27, 2026
alaye-ms
approved these changes
Mar 27, 2026
documentdb_tests/compatibility/tests/core/operator/stages/group/test_group_stage.py
Outdated
Show resolved
Hide resolved
documentdb_tests/compatibility/tests/core/operator/stages/match/test_match_stage.py
Show resolved
Hide resolved
d20fba9 to
0a6e01b
Compare
This was referenced Mar 31, 2026
alaye-ms
approved these changes
Mar 31, 2026
...ts/compatibility/tests/core/collections/capped_collections/test_capped_collections_create.py
Outdated
Show resolved
Hide resolved
documentdb_tests/compatibility/tests/core/operator/stages/group/test_group_stage.py
Show resolved
Hide resolved
documentdb_tests/compatibility/tests/core/operator/stages/group/test_group_stage.py
Outdated
Show resolved
Hide resolved
documentdb_tests/compatibility/tests/core/operator/stages/group/test_group_stage.py
Outdated
Show resolved
Hide resolved
0a6e01b to
3fb0931
Compare
Signed-off-by: Yunxuan Shi <yunxuan@amazon.com>
3fb0931 to
b5d5606
Compare
nitinahuja89
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add framework modules:
Migrate all existing tests from PyMongo driver calls to runCommand format using execute_command + framework assertions. This enables consistent error handling and result comparison across engines.
Update framework/init.py exports and simplify tests/init.py.