adityamparikh opened a new pull request, #304:
URL: https://github.com/apache/solr-mcp/pull/304
## Summary
`McpModernProtocolStdioIntegrationTest` (#287) built Testcontainers' own
`SolrContainer`, which starts embedded ZooKeeper with a bare `-DzkRun`. Solr
10.1 rejects that, so on `solr:10-slim` the container never comes up. #285
added a test-scoped shim that passes `-DzkRun=true`, but this test arrived
afterwards and imports the Testcontainers class directly, so it never got the
fix.
```diff
import org.apache.solr.mcp.server.BuildInfoReader;
+import org.apache.solr.mcp.server.SolrContainer;
...
-import org.testcontainers.containers.SolrContainer;
```
## Evidence
- **Before:** `./gradlew test --tests
'*McpModernProtocolStdioIntegrationTest' -Dsolr.test.image=solr:10-slim` on
`main` fails in `initializationError`: `SolrClientUtilsException: Http Call
Status: 503` from `createCollection`.
**After:** the same command passes, and so does the default
`solr:9.9.0-slim`.
- `./gradlew build`: 518 tests, 0 failures, 0 skipped.
## Merge Danger
**Door:** two-way
One test import. No production code changes.
**Blast Radius:** tests
Until this merges, the `Solr 10-slim Compatibility` job fails on every PR
rebased onto current `main`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]