mirror of https://github.com/apache/lucene.git
SOLR-7226: fixed the commented out testcase due to failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1669634 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
83969f44a0
commit
e0ff3a6b0c
|
@ -358,31 +358,22 @@ public class TestSolrConfigHandler extends RestTestBase {
|
||||||
10);
|
10);
|
||||||
|
|
||||||
payload = "{\n" +
|
payload = "{\n" +
|
||||||
"'delete-transformer' : 'mytrans'" +
|
"'delete-transformer' : 'mytrans'," +
|
||||||
"}";
|
|
||||||
runConfigCommand(writeHarness, "/config?wt=json", payload);
|
|
||||||
testForResponseElement(writeHarness,
|
|
||||||
testServerBaseUrl,
|
|
||||||
"/config?wt=json",
|
|
||||||
cloudSolrServer,
|
|
||||||
Arrays.asList("config", "transformer", "mytrans"),
|
|
||||||
null,
|
|
||||||
10);
|
|
||||||
payload = "{\n" +
|
|
||||||
"'create-initparams' : { 'name' : 'hello', 'key':'val'}\n" +
|
"'create-initparams' : { 'name' : 'hello', 'key':'val'}\n" +
|
||||||
"}";
|
"}";
|
||||||
runConfigCommand(writeHarness, "/config?wt=json", payload);
|
runConfigCommand(writeHarness, "/config?wt=json", payload);
|
||||||
Map map = testForResponseElement(writeHarness,
|
Map map = testForResponseElement(writeHarness,
|
||||||
testServerBaseUrl,
|
testServerBaseUrl,
|
||||||
"/config?wt=json",
|
"/config?wt=json",
|
||||||
cloudSolrServer,
|
cloudSolrServer,
|
||||||
Arrays.asList("config", "transformer", "mytrans"),
|
Arrays.asList("config", "transformer", "mytrans"),
|
||||||
null,
|
null,
|
||||||
10);
|
10);
|
||||||
// List l = (List) ConfigOverlay.getObjectByPath(map,false, Arrays.asList("config", "initParams"));
|
|
||||||
// assertNotNull("no object /config/initParams : "+ TestBlobHandler.getAsString(map) , l);
|
List l = (List) ConfigOverlay.getObjectByPath(map,false, Arrays.asList("config", "initParams"));
|
||||||
// assertEquals( 1, l.size());
|
assertNotNull("no object /config/initParams : "+ TestBlobHandler.getAsString(map) , l);
|
||||||
// assertEquals( "val", ((Map)l.get(0)).get("key") );
|
assertEquals( 1, l.size());
|
||||||
|
assertEquals( "val", ((Map)l.get(0)).get("key") );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Map testForResponseElement(RestTestHarness harness,
|
public static Map testForResponseElement(RestTestHarness harness,
|
||||||
|
|
Loading…
Reference in New Issue