From c109b20bc416560759df76afd75d4972632c6a2c Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Mon, 21 Jan 2013 13:35:31 +0100
Subject: [PATCH] extend test with given pac-components

---
 hsarback/test/de/hsadmin/remote/PacTest.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/hsarback/test/de/hsadmin/remote/PacTest.java b/hsarback/test/de/hsadmin/remote/PacTest.java
index b213b94..45cccc9 100644
--- a/hsarback/test/de/hsadmin/remote/PacTest.java
+++ b/hsarback/test/de/hsadmin/remote/PacTest.java
@@ -88,12 +88,17 @@
 		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 @@
 			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");

--
Gitblit v1.9.1