Add fsync command tests#657
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 (1081+1 LOC, 11 files); LLM failed: Invalid response body while trying to fetch https://api.anthropic.com/v1/messages: Premature close If a label is wrong, remove it manually and ping |
|
Required - Doc update needed for conftest.py validator allowance — the change to test_structure_validator.py is a project-wide convention change. Per REVIEW.md §9, update TEST_FORMAT.md or FOLDER_STRUCTURE.md to document that conftest.py is a valid non-test Python file. Suggestions
Questions
|
Complete the readConcern sub-field coverage for fsync. afterClusterTime and atClusterTime must both be Timestamps: a non-Timestamp value (including null) is a TypeMismatch. A null-timestamp afterClusterTime and any atClusterTime timestamp are InvalidOptions (atClusterTime requires the unsupported snapshot level). A non-zero afterClusterTime is accepted only where replication-dependent read concern is available (gated with requires(cluster_read_concern)), rejected with IllegalOperation elsewhere. The provenance and afterOpTime sub-fields are intentionally omitted as internal fields outside the compatibility surface. Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
FOLDER_STRUCTURE.md did not mention conftest.py, yet the structure validator now exempts it (alongside __init__.py) from the test-file naming rules. Document which non-test Python files a test folder may contain and the convention that shared fixtures live in utils/ and are re-exported from a thin conftest.py. Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Added a note about this.
I don't think this is needed. If the loop does not progress and reach a guard condition then there is a critical bug in the engine itself, which could apply to any command we execute hanging forever in the engine. The CI will eventually time out and fail the test run regardless of the problem with the engine so I don't think this is a concern we need to worry about.
The final
I think the property comment and test method naming already make this clear enough.
Added tests for both missing
The re-export keeps the autouse lock-drain scoped to just the |
This change adds tests for the
fsynccommand.There is some machinery overlap with #641 but they have the same content so they should merge cleanly.
Closes #420