Add autoCompact command tests#629
Conversation
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (test-coverage, test-framework); effort from diff stats (930+1 LOC, 10 files); LLM: Adds new test cases for the autoCompact command within the compatibility test suite, including a utility for stable-state waiting and no_parallel markers. If a label is wrong, remove it manually and ping |
| # state ensure_autocompact_idle guarantees, installing a persistent config | ||
| # that the differing enable below then conflicts with. | ||
| execute_admin_command(collection, {"autoCompact": True, "freeSpaceTargetMB": 30}) | ||
| result = execute_admin_command(collection, {"autoCompact": True, "freeSpaceTargetMB": 50}) |
There was a problem hiding this comment.
can we also add a case that set freeSpaceTargetMB the same value, will it error out or not?
This change adds tests for the
autoCompactadministration command.This command is relatively simple, but since it has server-wide effects, these need to run with the
no_parallelmarker. The effect of this command can also extend beyond the runtime of a test case, so I introduced theensure_autocompact_idleutility so test cases can wait for a stable state before they run.Closes #415