You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/11/01 06:37:27 UTC
[GitHub] [solr] joshgog commented on a diff in pull request #1080: SOLR 15749 created a v2 equivalent of v1 'rename'
joshgog commented on code in PR #1080:
URL: https://github.com/apache/solr/pull/1080#discussion_r1010113677
##########
solr/core/src/test/org/apache/solr/handler/admin/api/V2CollectionAPIMappingTest.java:
##########
@@ -87,13 +96,15 @@ public void testGetCollectionStatus() throws Exception {
@Test
- public void testRenameCollectionAllParams() throws Exception {
- final SolrParams v1Params = captureConvertedV1Params(
- "/collections/collName", "POST", "{\"rename\": {\"to\": \"targetColl\"}}");
+ public void testRenameCollectionAllParams(){
+ final SolrQueryRequest request = runRenameCollectionsApi("/collections/collName");
Review Comment:
`Test result returns java.lang.AssertionError: expected:<rename> but was:<null>`
What if we mock `SolrQueryRequest` and `SolrQueryResponse` and pass them to the`public void renameCollection(SolrQueryRequest req, SolrQueryResponse rsp)` method of the API then perform the assertions
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org