work on tests
This commit is contained in:
parent
6d4a3fbca9
commit
8b270bf373
@ -86,14 +86,14 @@ public class PacTest {
|
||||
@Test
|
||||
public void testCreate() {
|
||||
int count = getPacsCount();
|
||||
String user = "pe";
|
||||
String user = "ad";
|
||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||
Map<String, String> setParams = new HashMap<String, String>();
|
||||
setParams.put("name", "aaa01");
|
||||
setParams.put("hive", "h90");
|
||||
setParams.put("hive", "h81");
|
||||
setParams.put("customer", config.getProperty("accountprefix.customer") + "-aaa");
|
||||
setParams.put("basepac", "DW/B");
|
||||
setParams.put("curinetaddr", "83.223.95.133");
|
||||
setParams.put("curinetaddr", "192.168.108.202");
|
||||
Object[] params = new Object[] { user,
|
||||
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
|
||||
setParams };
|
||||
@ -109,7 +109,7 @@ public class PacTest {
|
||||
@Test
|
||||
public void testDelete() {
|
||||
int count = getPacsCount();
|
||||
String user = "pe";
|
||||
String user = "ad";
|
||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||
Map<String, String> whereParams = new HashMap<String, String>();
|
||||
whereParams.put("name", "aaa01");
|
||||
@ -127,7 +127,7 @@ public class PacTest {
|
||||
|
||||
private int getPacsCount() {
|
||||
int count = 0;
|
||||
String user = "hsh90-aaa";
|
||||
String user = "hsh00-aaa";
|
||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||
Map<String, String> whereParams = new HashMap<String, String>();
|
||||
whereParams.put("customer", config.getProperty("accountprefix.customer") + "-aaa");
|
||||
|
@ -6,17 +6,18 @@ import org.junit.runners.Suite;
|
||||
@RunWith(Suite.class)
|
||||
@Suite.SuiteClasses({
|
||||
InitDataTest.class,
|
||||
CustomerTest.class,
|
||||
PacTest.class,
|
||||
UnixUserTest.class,
|
||||
MysqlDbTest.class,
|
||||
MysqlUserTest.class,
|
||||
PgsqlDbTest.class,
|
||||
PgsqlUserTest.class,
|
||||
EMailAliasTest.class,
|
||||
EMailAddressTest.class,
|
||||
DomainTest.class,
|
||||
CustomerTest.class
|
||||
// MysqlDbTest.class,
|
||||
// MysqlUserTest.class,
|
||||
// PgsqlDbTest.class,
|
||||
// PgsqlUserTest.class,
|
||||
// EMailAliasTest.class,
|
||||
// EMailAddressTest.class,
|
||||
// DomainTest.class,
|
||||
// HostmasterTest.class,
|
||||
QueueTaskTest.class
|
||||
// QueueTaskTest.class
|
||||
})
|
||||
|
||||
public class RemoteTest {
|
||||
|
@ -43,7 +43,7 @@ public class UnixUserTest {
|
||||
try {
|
||||
Object execute = client.execute(MODULE + ".search", params);
|
||||
Object[] result = (Object[]) execute;
|
||||
assertEquals(1, result.length);
|
||||
assertEquals(2, result.length);
|
||||
for (Object o : result) {
|
||||
if (o instanceof Map<?, ?>) {
|
||||
Map<?, ?> row = (Map<?, ?>) o;
|
||||
@ -136,7 +136,7 @@ public class UnixUserTest {
|
||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||
Map<String, String> whereParams = new HashMap<String, String>();
|
||||
Map<String, String> setParams = new HashMap<String, String>();
|
||||
whereParams.put("name", "aaa00-test2");
|
||||
whereParams.put("name", "aaa00-test3");
|
||||
setParams.put("password", "test1234");
|
||||
Object[] params = new Object[] { user,
|
||||
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
|
||||
|
Loading…
Reference in New Issue
Block a user