Skip to content

Add $listDatabases command tests#161

Open
danielfrankcom wants to merge 1 commit intodocumentdb:mainfrom
danielfrankcom:pr/listDatabases
Open

Add $listDatabases command tests#161
danielfrankcom wants to merge 1 commit intodocumentdb:mainfrom
danielfrankcom:pr/listDatabases

Conversation

@danielfrankcom
Copy link
Copy Markdown
Collaborator

This change adds tests for $listDatabases. The intent here is not to test the functionality of the operator, but just the spec, meaning the parameters/config it accepts, and the results it produces. Verifying the actual database listing through creating/deleting them is considered out of scope for these tests.

As part of this change I defined common expectation formats which are reused by a bunch of tests, as they expect pretty much the same thing in most cases. As many tests are focused on parameter structure and content, the expected result is identical in a lot of places. This helps to reduce some duplication across the files.

Ref: #26

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@danielfrankcom danielfrankcom requested a review from a team as a code owner May 4, 2026 20:44
@documentdb-triage-tool documentdb-triage-tool Bot added compatibility test Compatibility test related enhancement New feature or request labels May 4, 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 XL · Status Needs Review
Confidence: 0.85 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (2857+25 LOC, 16 files); LLM: Adds new compatibility test cases for the $listDatabases command, expanding test coverage within the tests directory.

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.

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.

1 participant