gerlowskija commented on PR #1115:
URL: https://github.com/apache/solr/pull/1115#issuecomment-1297503312
> The error received is 500.
Make sure you register `CatchAllExceptionMapper.class` in your JerseyTest's
`configure()` method...that makes it much easier to see what's going on here.
When I add that to your test class, put a debugger break-point in
CatchAllExceptionMapper and re-run, I get the following error:
```
Solr instance is not running in SolrCloud mode.
```
Which makes sense - one of the first things that ReplaceNodeAPI does is call
`fetchAndValidateZooKeeperAwareCoreContainer`, and the `mockCoreContainer` your
test uses isn't configured to say that it's ZK-aware. I fixed that by adding
the line:
```
when(mockCoreContainer.isZooKeeperAware()).thenReturn(true);
```
to the test, which lets us get further until we hit a different mock related
error later on. But, that's progress.
Anyway, hope that helps!
--
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]