mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Rename disabled project test
This commit is contained in:
parent
25ccfe28fe
commit
4c237e84f5
2 changed files with 5 additions and 5 deletions
|
@ -45,8 +45,8 @@ public class WLGitBridgeIntegrationTest {
|
||||||
put("cannotCloneAProtectedProjectWithoutAuthentication", new HashMap<String, SnapshotAPIState>() {{
|
put("cannotCloneAProtectedProjectWithoutAuthentication", new HashMap<String, SnapshotAPIState>() {{
|
||||||
put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneAProtectedProjectWithoutAuthentication/state/state.json")).build());
|
put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneAProtectedProjectWithoutAuthentication/state/state.json")).build());
|
||||||
}});
|
}});
|
||||||
put("cannotCloneADisabledProject", new HashMap<String, SnapshotAPIState>() {{
|
put("cannotCloneA4xxProject", new HashMap<String, SnapshotAPIState>() {{
|
||||||
put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneADisabledProject/state/state.json")).build());
|
put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneA4xxProject/state/state.json")).build());
|
||||||
}});
|
}});
|
||||||
put("cannotCloneAMissingProject", new HashMap<String, SnapshotAPIState>() {{
|
put("cannotCloneAMissingProject", new HashMap<String, SnapshotAPIState>() {{
|
||||||
put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneAMissingProject/state/state.json")).build());
|
put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneAMissingProject/state/state.json")).build());
|
||||||
|
@ -752,13 +752,13 @@ public class WLGitBridgeIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void cannotCloneADisabledProject() throws IOException, GitAPIException, InterruptedException {
|
public void cannotCloneA4xxProject() throws IOException, GitAPIException, InterruptedException {
|
||||||
int gitBridgePort = 33879;
|
int gitBridgePort = 33879;
|
||||||
int mockServerPort = 3879;
|
int mockServerPort = 3879;
|
||||||
|
|
||||||
MockSnapshotServer server = new MockSnapshotServer(mockServerPort, getResource("/cannotCloneADisabledProject").toFile());
|
MockSnapshotServer server = new MockSnapshotServer(mockServerPort, getResource("/cannotCloneA4xxProject").toFile());
|
||||||
server.start();
|
server.start();
|
||||||
server.setState(states.get("cannotCloneADisabledProject").get("state"));
|
server.setState(states.get("cannotCloneA4xxProject").get("state"));
|
||||||
GitBridgeApp wlgb = new GitBridgeApp(new String[] {
|
GitBridgeApp wlgb = new GitBridgeApp(new String[] {
|
||||||
makeConfigFile(gitBridgePort, mockServerPort)
|
makeConfigFile(gitBridgePort, mockServerPort)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue