AAnakhe commented on code in PR #1080:
URL: https://github.com/apache/solr/pull/1080#discussion_r1006834433


##########
solr/core/src/test/org/apache/solr/handler/admin/api/V2CollectionAPIMappingTest.java:
##########
@@ -85,6 +85,18 @@ public void testGetCollectionStatus() throws Exception {
     assertEquals("shard2", v1Params.get(SHARD));
   }
 
+
+  @Test
+  public void testRenameCollectionAllParams() throws Exception {
+    final SolrParams v1Params = captureConvertedV1Params(
+            "/collections/collName", "POST", "{\"rename\": {\"to\": 
\"targetColl\"}}");

Review Comment:
   This is my test method
   
   ` @Test
     public void testRenameCollectionAllParams() throws Exception {
       final SolrParams v1Params = captureConvertedV1Params(
               "/collections/collName",
               "POST",
               "{ 'rename' : {"
                       + "'to': 'targetColl',"
                       + "'async': 'requestTrackingId',"
                       + "'followAliases': true}}");
   
       assertEquals("rename", v1Params.get(ACTION));
       assertEquals("collName", v1Params.get(NAME));
       assertEquals("targetColl", v1Params.get(TARGET));
       assertEquals("requestTrackingId", v1Params.get(ASYNC));
       assertEquals(true, v1Params.getPrimitiveBool("followAliases"));`
   
   but I get this error
   
   `Error in command payload, errors: [{errorMessages=[Unknown operation 
'rename' available ops are '[modify, balance-shard-unique, 
delete-replica-property, migrate-docs, reload, move-replica, rebalance-leaders, 
set-collection-property]'], rename={to=targetColl, async=requestTrackingId, 
followAliases=true}}], `



-- 
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]

Reply via email to