user-test
This commit is contained in:
parent
3111d6b4cd
commit
df401564f4
@ -11,8 +11,8 @@ import org.junit.runners.Suite;
|
||||
MysqlDbTest.class,
|
||||
PgsqlUserTest.class,
|
||||
PgsqlDbTest.class,
|
||||
PacTest.class
|
||||
// UnixUserTest.class,
|
||||
PacTest.class,
|
||||
UnixUserTest.class
|
||||
// EMailAliasTest.class,
|
||||
// DomainTest.class,
|
||||
// EMailAddressTest.class,
|
||||
|
@ -181,24 +181,24 @@ public class UnixUserTest {
|
||||
assertEquals(count, getObjectCount());
|
||||
}
|
||||
|
||||
// @Test
|
||||
// public void testDeleteAsPacAdminFail() {
|
||||
// int count = getObjectCount();
|
||||
// try {
|
||||
// String user = "aaa01";
|
||||
// String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||
// Map<String, String> whereParams = new HashMap<String, String>();
|
||||
// whereParams.put("name", "aaa00-test2");
|
||||
// Object[] params = new Object[] { user,
|
||||
// cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
|
||||
// whereParams };
|
||||
// Object execute = client.execute(MODULE + ".delete", params);
|
||||
// assertNull(execute);
|
||||
// } catch (XmlRpcException e) {
|
||||
// fail(e.getMessage());
|
||||
// }
|
||||
// assertEquals(count, getObjectCount());
|
||||
// }
|
||||
@Test
|
||||
public void testDeleteAsPacAdminFail() {
|
||||
int count = getObjectCount();
|
||||
try {
|
||||
String user = "aaa01";
|
||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||
Map<String, String> whereParams = new HashMap<String, String>();
|
||||
whereParams.put("name", "aaa00-test2");
|
||||
Object[] params = new Object[] { user,
|
||||
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
|
||||
whereParams };
|
||||
Object execute = client.execute(MODULE + ".delete", params);
|
||||
assertNull(execute);
|
||||
} catch (XmlRpcException e) {
|
||||
fail(e.getMessage());
|
||||
}
|
||||
assertEquals(count, getObjectCount());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDeleteAsPacAdmin() {
|
||||
|
Loading…
Reference in New Issue
Block a user