@@ -57,7 +57,7 @@ public static void createDB(String dbName) {
5757 new UsernamePasswordCredentials ("admin" , "admin" ));
5858
5959 HttpPost post = new HttpPost ("http://localhost:8002" + "/manage/v2/databases?format=json" );
60- String JSONString = "[{\" name\" :\" " + dbName + "\" }]" ;
60+ String JSONString = "[{\" database- name\" :\" " + dbName + "\" }]" ;
6161
6262 post .addHeader ("Content-type" , "application/json" );
6363 post .setEntity ( new StringEntity (JSONString ));
@@ -364,7 +364,7 @@ public static void createUserRolesWithPrevilages(String roleName, String... priv
364364 ArrayNode roleArray = mapper .createArrayNode ();
365365 ArrayNode privArray = mapper .createArrayNode ();
366366 ArrayNode permArray = mapper .createArrayNode ();
367- mainNode .put ("name" ,roleName );
367+ mainNode .put ("role- name" ,roleName );
368368 mainNode .put ("description" , "role discription" );
369369
370370 for (String rolename : roleNames )
@@ -434,7 +434,7 @@ public static void createRESTUser(String usrName, String pass, String... roleNam
434434 ObjectNode mainNode = mapper .createObjectNode ();
435435 // ObjectNode childNode = mapper.createObjectNode();
436436 ArrayNode childArray = mapper .createArrayNode ();
437- mainNode .put ("name" ,usrName );
437+ mainNode .put ("user- name" ,usrName );
438438 mainNode .put ("description" , "user discription" );
439439 mainNode .put ("password" , pass );
440440 for (String rolename : roleNames )
@@ -531,7 +531,7 @@ public static void createRESTUserWithPermissions(String usrName, String pass,Obj
531531 ObjectNode mainNode = mapper .createObjectNode ();
532532 // ObjectNode childNode = mapper.createObjectNode();
533533 ArrayNode childArray = mapper .createArrayNode ();
534- mainNode .put ("name" ,usrName );
534+ mainNode .put ("user- name" ,usrName );
535535 mainNode .put ("description" , "user discription" );
536536 mainNode .put ("password" , pass );
537537 for (String rolename : roleNames )
0 commit comments