summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-10-02 17:21:20 -0400
committerJames Moger <james.moger@gitblit.com>2011-10-02 17:21:20 -0400
commit5c1ae2385f9e6c0c2050e5b0cb505d25bdbe27e0 (patch)
tree82db0291d11e714ea9128234e3da5f850c245d03 /tests
parent80b6fec124916efe960ac7ce8f5aff62078507c9 (diff)
downloadgitblit-5c1ae2385f9e6c0c2050e5b0cb505d25bdbe27e0.tar.gz
gitblit-5c1ae2385f9e6c0c2050e5b0cb505d25bdbe27e0.zip
Delete the test user account as part of cleanup.
Diffstat (limited to 'tests')
-rw-r--r--tests/com/gitblit/tests/RpcTests.java18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/com/gitblit/tests/RpcTests.java b/tests/com/gitblit/tests/RpcTests.java
index cb98a560..a20b918c 100644
--- a/tests/com/gitblit/tests/RpcTests.java
+++ b/tests/com/gitblit/tests/RpcTests.java
@@ -159,6 +159,13 @@ public class RpcTests extends TestCase {
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 @@ public class RpcTests extends TestCase {
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);
}
}