Add setQuerySettings tests#610
Conversation
10fe8d6 to
8e67e62
Compare
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (test-coverage, test-framework); effort from diff stats (3863+1 LOC, 31 files); LLM: Adds new test coverage for the setQuerySettings command operator, covering behavior, output, syntax, and error cases — a functional test expansion across multiple test scenarios. If a label is wrong, remove it manually and ping |
eerxuan
left a comment
There was a problem hiding this comment.
- Please use @pytest.mark.no_parallel. The test cases can interact each other.
- Please rebase and use @pytest.mark.requires(...)
cd8c4e7 to
3850b14
Compare
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
3850b14 to
cf61c5c
Compare
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
|
@eerxuan I have added |
|
Why does this feature tests require change_streams? Can add a new capability if needed. |
|
|
|
So you need a capability called "query_settings" which only supported under replicaset target. |
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
|
Ok, I have looked and functional-tests/documentdb_tests/framework/preconditions.py Lines 43 to 45 in dd4fa43 |
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com> Signed-off-by: RyanGarfinkel <113050972+RyanGarfinkel@users.noreply.github.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com> Signed-off-by: Sarthak Dalmia <sadalmia@microsoft.com>
This change adds tests for the setQuerySettings command operator. In order to define the
SettingsTestCaseclass, I renamedquery-planningtoquery_planning. Reason is that hyphens aren't allowed in identifiers, so directories that need to be imported must use underscores instead.Add command operator tests for setQuerySettings. Tests database setQuerySettings behavior, output collection, syntax, and expected errors.
Edit:
replica_setis needed because query settings are not supported on standalone instances