extend test with given pac-components

This commit is contained in:
Peter Hormanns 2013-01-21 13:35:31 +01:00
parent c5ceafba98
commit c109b20bc4

View File

@ -88,12 +88,17 @@ public class PacTest {
int count = getPacsCount();
String user = "ad";
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("hive", "h99");
setParams.put("customer", config.getProperty("accountprefix.customer") + "-aaa");
setParams.put("basepac", "DW/B");
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,
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
setParams };
@ -104,7 +109,7 @@ public class PacTest {
fail(e.getMessage());
}
assertEquals(count + 1, getPacsCount());
setParams = new HashMap<String, String>();
setParams = new HashMap<String, Object>();
Map<String, String> whereParams = new HashMap<String, String>();
setParams.put("password", "test123");
whereParams.put("name", "aaa01");