extend test with given pac-components
This commit is contained in:
parent
c5ceafba98
commit
c109b20bc4
@ -88,12 +88,17 @@ public class PacTest {
|
|||||||
int count = getPacsCount();
|
int count = getPacsCount();
|
||||||
String user = "ad";
|
String user = "ad";
|
||||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||||
Map<String, String> setParams = new HashMap<String, String>();
|
Map<String, Object> setParams = new HashMap<String, Object>();
|
||||||
setParams.put("name", "aaa01");
|
setParams.put("name", "aaa01");
|
||||||
setParams.put("hive", "h99");
|
setParams.put("hive", "h99");
|
||||||
setParams.put("customer", config.getProperty("accountprefix.customer") + "-aaa");
|
setParams.put("customer", config.getProperty("accountprefix.customer") + "-aaa");
|
||||||
setParams.put("basepac", "DW/B");
|
setParams.put("basepac", "DW/B");
|
||||||
setParams.put("curinetaddr", "176.9.242.76");
|
setParams.put("curinetaddr", "176.9.242.76");
|
||||||
|
HashMap<String, String> components = new HashMap<String, String>();
|
||||||
|
components.put("QUOTA", "512");
|
||||||
|
components.put("TRAFFIC", "8");
|
||||||
|
components.put("TOMCAT", "1");
|
||||||
|
setParams.put("components", components);
|
||||||
Object[] params = new Object[] { user,
|
Object[] params = new Object[] { user,
|
||||||
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
|
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
|
||||||
setParams };
|
setParams };
|
||||||
@ -104,7 +109,7 @@ public class PacTest {
|
|||||||
fail(e.getMessage());
|
fail(e.getMessage());
|
||||||
}
|
}
|
||||||
assertEquals(count + 1, getPacsCount());
|
assertEquals(count + 1, getPacsCount());
|
||||||
setParams = new HashMap<String, String>();
|
setParams = new HashMap<String, Object>();
|
||||||
Map<String, String> whereParams = new HashMap<String, String>();
|
Map<String, String> whereParams = new HashMap<String, String>();
|
||||||
setParams.put("password", "test123");
|
setParams.put("password", "test123");
|
||||||
whereParams.put("name", "aaa01");
|
whereParams.put("name", "aaa01");
|
||||||
|
Loading…
Reference in New Issue
Block a user