dont change dom-admin
This commit is contained in:
parent
17e149eb26
commit
aaa278a849
@ -127,7 +127,7 @@ public class DomainTest {
|
|||||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||||
Map<String, Object> setParams = new HashMap<String, Object>();
|
Map<String, Object> setParams = new HashMap<String, Object>();
|
||||||
Map<String, String> whereParams = new HashMap<String, String>();
|
Map<String, String> whereParams = new HashMap<String, String>();
|
||||||
setParams.put("user", "aaa00");
|
// setParams.put("user", "aaa00");
|
||||||
List<String> optionslist = new ArrayList<String>();
|
List<String> optionslist = new ArrayList<String>();
|
||||||
optionslist.add("invalide");
|
optionslist.add("invalide");
|
||||||
setParams.put("domainoptions", optionslist);
|
setParams.put("domainoptions", optionslist);
|
||||||
@ -150,7 +150,7 @@ public class DomainTest {
|
|||||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||||
Map<String, Object> setParams = new HashMap<String, Object>();
|
Map<String, Object> setParams = new HashMap<String, Object>();
|
||||||
Map<String, String> whereParams = new HashMap<String, String>();
|
Map<String, String> whereParams = new HashMap<String, String>();
|
||||||
setParams.put("user", "aaa00");
|
// setParams.put("user", "aaa00");
|
||||||
List<String> optionslist = new ArrayList<String>();
|
List<String> optionslist = new ArrayList<String>();
|
||||||
optionslist.add("graylisting");
|
optionslist.add("graylisting");
|
||||||
setParams.put("domainoptions", optionslist);
|
setParams.put("domainoptions", optionslist);
|
||||||
@ -173,7 +173,7 @@ public class DomainTest {
|
|||||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||||
Map<String, Object> setParams = new HashMap<String, Object>();
|
Map<String, Object> setParams = new HashMap<String, Object>();
|
||||||
Map<String, String> whereParams = new HashMap<String, String>();
|
Map<String, String> whereParams = new HashMap<String, String>();
|
||||||
setParams.put("user", "aaa00");
|
// setParams.put("user", "aaa00");
|
||||||
List<String> optionslist = new ArrayList<String>();
|
List<String> optionslist = new ArrayList<String>();
|
||||||
optionslist.add("htdocsfallback");
|
optionslist.add("htdocsfallback");
|
||||||
optionslist.add("graylisting");
|
optionslist.add("graylisting");
|
||||||
@ -244,6 +244,7 @@ public class DomainTest {
|
|||||||
Object execute = client.execute(MODULE + ".search", params);
|
Object execute = client.execute(MODULE + ".search", params);
|
||||||
Object[] result = (Object[]) execute;
|
Object[] result = (Object[]) execute;
|
||||||
assertEquals(result.length, 1);
|
assertEquals(result.length, 1);
|
||||||
|
assertTrue(result[0] instanceof Map<?, ?>);
|
||||||
Map<String, ?> domainMap = (Map<String, ?>) result[0];
|
Map<String, ?> domainMap = (Map<String, ?>) result[0];
|
||||||
assertNotNull(domainMap);
|
assertNotNull(domainMap);
|
||||||
List<?> optsList = (List<?>)domainMap.get("domainsoptions");
|
List<?> optsList = (List<?>)domainMap.get("domainsoptions");
|
||||||
|
Loading…
Reference in New Issue
Block a user