Repository navigation
MLE-33565 Resolve the 5 remaining disabled tests - #1984
hmadala001 wants to merge 1 commit into
Conversation
Stabilised: - TestOpticOnViews.testgroupByUnion now uses order-independent assertions - BulkIOInputCallerTest.bulkInputEndpointTestWithAnyDocument now uses its own collections, cleans up beforehand, and asserts on the union of written inputs rather than on how batches are distributed across call contexts Retired: - ClientApiFunctionalTest.TestE2ENumberOfConcurrentUsers: tests the app server concurrent-request-limit feature, not the Java Client; flaky on Jenkins - DocumentMetadataHandleTest.testMetadataPropertiesExtraction (and test.bin): tests a v1/documents feature and causes OOM in CI - SetMaxBatchesTest.testWithQuery: setMaxBatches with a query is a known limitation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the test-only changes that re-enable two tests and remove three disabled tests.
No open issues 🎉
What changed in this PR
Resolves five disabled tests in the Java Client’s core and functional test suites by stabilizing two and retiring three. No production code changes are included.
Changes:
- Re-enables the Optic union test with order-independent assertions.
- Re-enables the bulk-input test with isolated collections, cleanup, and assertions that every input is written exactly once.
- Removes three disabled tests covering server behavior or a known limitation, plus an unused fixture and helper.
| File | Description |
|---|---|
marklogic-client-api/src/test/resources/test.bin |
Removes the retired metadata test’s binary fixture. |
marklogic-client-api/src/test/java/com/marklogic/client/test/io/DocumentMetadataHandleTest.java |
Removes the disabled metadata-extraction test and related imports. |
marklogic-client-api/src/test/java/com/marklogic/client/test/dataservices/BulkIOInputCallerTest.java |
Isolates and re-enables the bulk-input test with distribution-independent assertions. |
marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/fastfunctest/TestOpticOnViews.java |
Re-enables the union test and replaces order-sensitive row checks. |
marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/fastfunctest/datamovement/SetMaxBatchesTest.java |
Removes the disabled query-based test while retaining iterator coverage. |
marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/fastfunctest/ClientApiFunctionalTest.java |
Removes the disabled concurrent-request-limit test and its configuration helper. |
Review effort: Balanced
| } | ||
|
|
||
| @AfterAll | ||
| public static void cleanup(){ |
There was a problem hiding this comment.
I would rework this test class to extend AbstractClientTest which will clean the database before the test starts instead of after. That's a better practice because if the database is cleaned afterwards and the test fails, it's much harder to debug since the data is all gone. Extending that class also avoids duplication of deletion code like this.
Stabilised:
Retired: