James Moger
2011-10-02 5c1ae2385f9e6c0c2050e5b0cb505d25bdbe27e0
Delete the test user account as part of cleanup.
1 files modified
18 ■■■■■ changed files
tests/com/gitblit/tests/RpcTests.java 18 ●●●●● patch | view | raw | blame | history
tests/com/gitblit/tests/RpcTests.java
@@ -159,6 +159,13 @@
        retrievedRepository = findRepository(model.name);
        assertTrue("Failed to delete " + model.name, retrievedRepository == null);
        for (UserModel u : RpcUtils.getUsers(url, account, password.toCharArray())) {
            if (u.username.equals(testMember)) {
                RpcUtils.deleteUser(u, url, account, password.toCharArray());
                break;
            }
        }
    }
    private RepositoryModel findRepository(String name) throws IOException {
@@ -185,16 +192,15 @@
                account, password.toCharArray());
        assertTrue("No federation result registrations were retrieved!", registrations.size() > 0);
    }
    public void testFederationProposals() throws Exception {
        List<FederationProposal> proposals = RpcUtils.getFederationProposals(url,
                account, password.toCharArray());
        List<FederationProposal> proposals = RpcUtils.getFederationProposals(url, account,
                password.toCharArray());
        assertTrue("No federation proposals were retrieved!", proposals.size() > 0);
    }
    public void testFederationSets() throws Exception {
        List<FederationSet> sets = RpcUtils.getFederationSets(url,
                account, password.toCharArray());
        List<FederationSet> sets = RpcUtils.getFederationSets(url, account, password.toCharArray());
        assertTrue("No federation sets were retrieved!", sets.size() > 0);
    }
}