James Moger
2011-09-27 4aafd4362caf198bdea97d2fdf2957aa5c345465
tests/com/gitblit/tests/FederationTests.java
@@ -24,6 +24,7 @@
import junit.framework.TestCase;
import com.gitblit.Constants.AccessRestrictionType;
import com.gitblit.Constants.FederationProposalResult;
import com.gitblit.Constants.FederationRequest;
import com.gitblit.Constants.FederationToken;
import com.gitblit.FederationServlet;
@@ -91,14 +92,15 @@
            "testtoken", repositories);
      // propose federation
      assertTrue("proposal refused",
            FederationUtils.propose("http://localhost:" + port, proposal));
      assertEquals("proposal refused",
            FederationUtils.propose("http://localhost:" + port, proposal),
            FederationProposalResult.NO_PROPOSALS);
   }
   public void testPullRepositories() throws Exception {
      try {
         String url = FederationServlet.asFederationLink("http://localhost:" + port, "testtoken",
               FederationRequest.PULL_REPOSITORIES);
         String url = FederationServlet.asFederationLink("http://localhost:" + port,
               "testtoken", FederationRequest.PULL_REPOSITORIES);
         String json = FederationUtils.readJson(url);
      } catch (IOException e) {
         if (!e.getMessage().contains("403")) {