HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-05-06 8b270bf3731cc49e299c85a363da762a74e9b8d4
work on tests
3 files modified
33 ■■■■ changed files
hsarback/test/de/hsadmin/remote/PacTest.java 10 ●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/RemoteTest.java 19 ●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/UnixUserTest.java 4 ●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/PacTest.java
@@ -86,14 +86,14 @@
    @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 @@
    @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 @@
    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");
hsarback/test/de/hsadmin/remote/RemoteTest.java
@@ -6,17 +6,18 @@
@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 {
hsarback/test/de/hsadmin/remote/UnixUserTest.java
@@ -43,7 +43,7 @@
        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 @@
            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()),