]> source.dussan.org Git - gitblit.git/commitdiff
Delete the test user account as part of cleanup.
authorJames Moger <james.moger@gitblit.com>
Sun, 2 Oct 2011 21:21:20 +0000 (17:21 -0400)
committerJames Moger <james.moger@gitblit.com>
Sun, 2 Oct 2011 21:21:20 +0000 (17:21 -0400)
tests/com/gitblit/tests/RpcTests.java

index cb98a560dc460132339add22169ae6c047aa7de6..a20b918cdd6c1f1856f982dcf09d47bd4b3b4e87 100644 (file)
@@ -159,6 +159,13 @@ public class RpcTests extends TestCase {
 \r
                retrievedRepository = findRepository(model.name);\r
                assertTrue("Failed to delete " + model.name, retrievedRepository == null);\r
+\r
+               for (UserModel u : RpcUtils.getUsers(url, account, password.toCharArray())) {\r
+                       if (u.username.equals(testMember)) {\r
+                               RpcUtils.deleteUser(u, url, account, password.toCharArray());\r
+                               break;\r
+                       }\r
+               }\r
        }\r
 \r
        private RepositoryModel findRepository(String name) throws IOException {\r
@@ -185,16 +192,15 @@ public class RpcTests extends TestCase {
                                account, password.toCharArray());\r
                assertTrue("No federation result registrations were retrieved!", registrations.size() > 0);\r
        }\r
-       \r
+\r
        public void testFederationProposals() throws Exception {\r
-               List<FederationProposal> proposals = RpcUtils.getFederationProposals(url,\r
-                               account, password.toCharArray());\r
+               List<FederationProposal> proposals = RpcUtils.getFederationProposals(url, account,\r
+                               password.toCharArray());\r
                assertTrue("No federation proposals were retrieved!", proposals.size() > 0);\r
        }\r
-       \r
+\r
        public void testFederationSets() throws Exception {\r
-               List<FederationSet> sets = RpcUtils.getFederationSets(url,\r
-                               account, password.toCharArray());\r
+               List<FederationSet> sets = RpcUtils.getFederationSets(url, account, password.toCharArray());\r
                assertTrue("No federation sets were retrieved!", sets.size() > 0);\r
        }\r
 }\r