Skip to content

Add applyOps tests#624

Merged
eerxuan merged 5 commits into
documentdb:mainfrom
alinaliBQ:applyOps
Jun 25, 2026
Merged

Add applyOps tests#624
eerxuan merged 5 commits into
documentdb:mainfrom
alinaliBQ:applyOps

Conversation

@alinaliBQ

@alinaliBQ alinaliBQ commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Add command operator tests for applyOps, including the smoke test. Tests database applyOps behavior, output collection, syntax, and errors. Add the ReplicationTestCase class definition.
Add and use the replication capability.

@documentdb-triage-tool documentdb-triage-tool Bot added compatibility test Compatibility test related enhancement New feature or request labels Jun 18, 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 In Progress
Confidence: 0.85 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (1233+0 LOC, 11 files); LLM: Adds new applyOps command test coverage and a new ReplicationTestCase class, expanding compatibility test suite across multiple test files within one component.

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.

@alinaliBQ alinaliBQ marked this pull request as ready for review June 18, 2026 21:18
@alinaliBQ alinaliBQ requested a review from a team as a code owner June 18, 2026 21:18
@alinaliBQ alinaliBQ changed the title Add applyOps tests Add applyOps tests Jun 18, 2026

@eerxuan eerxuan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. 🟡 test_applyOps_core.py:581 & test_applyOps_multi_ops.py:1228 — use_admin is silently ignored by the doc-check functions.
    Every case in APPLYOPS_DOC_CHECK_TESTS / APPLYOPS_MULTI_OPS_DOC_CHECK_TESTS sets use_admin=False, but these test functions call execute_command unconditionally and never read test.use_admin (unlike test_applyOps_core/_entry_validation/_multi_ops, which branch on it). A maintainer who later sets use_admin=True on a doc-check case would get no behavior change and no
    warning. Either honor the flag or drop it from those cases.

Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
…ck test

Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>

@alinaliBQ alinaliBQ left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@eerxuan Addressed all comments. Added if test.use_admin check to test_applyOps_core.py & test_applyOps_multi_ops.py.

Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
@eerxuan eerxuan merged commit 61d6767 into documentdb:main Jun 25, 2026
14 checks passed
RyanGarfinkel pushed a commit to RyanGarfinkel/functional-tests that referenced this pull request Jun 29, 2026
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: RyanGarfinkel <113050972+RyanGarfinkel@users.noreply.github.com>
krishnasai453 pushed a commit to krishnasai453/functional-tests that referenced this pull request Jul 8, 2026
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
SarthakDalmia1 pushed a commit to SarthakDalmia1/functional-tests that referenced this pull request Jul 10, 2026
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Sarthak Dalmia <sadalmia@microsoft.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