From 4c237e84f5e37eb157be657f3642c08e61ca8541 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Wed, 7 Feb 2018 13:27:31 +0000 Subject: [PATCH] Rename disabled project test --- .../application/WLGitBridgeIntegrationTest.java | 10 +++++----- .../state/state.json | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/WLGitBridgeIntegrationTest/{cannotCloneADisabledProject => cannotCloneA4xxProject}/state/state.json (100%) diff --git a/services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/application/WLGitBridgeIntegrationTest.java b/services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/application/WLGitBridgeIntegrationTest.java index 6ed5b62d40..cd103fca5b 100644 --- a/services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/application/WLGitBridgeIntegrationTest.java +++ b/services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/application/WLGitBridgeIntegrationTest.java @@ -45,8 +45,8 @@ public class WLGitBridgeIntegrationTest { put("cannotCloneAProtectedProjectWithoutAuthentication", new HashMap() {{ put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneAProtectedProjectWithoutAuthentication/state/state.json")).build()); }}); - put("cannotCloneADisabledProject", new HashMap() {{ - put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneADisabledProject/state/state.json")).build()); + put("cannotCloneA4xxProject", new HashMap() {{ + put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneA4xxProject/state/state.json")).build()); }}); put("cannotCloneAMissingProject", new HashMap() {{ put("state", new SnapshotAPIStateBuilder(getResourceAsStream("/cannotCloneAMissingProject/state/state.json")).build()); @@ -752,13 +752,13 @@ public class WLGitBridgeIntegrationTest { } @Test - public void cannotCloneADisabledProject() throws IOException, GitAPIException, InterruptedException { + public void cannotCloneA4xxProject() throws IOException, GitAPIException, InterruptedException { int gitBridgePort = 33879; int mockServerPort = 3879; - MockSnapshotServer server = new MockSnapshotServer(mockServerPort, getResource("/cannotCloneADisabledProject").toFile()); + MockSnapshotServer server = new MockSnapshotServer(mockServerPort, getResource("/cannotCloneA4xxProject").toFile()); server.start(); - server.setState(states.get("cannotCloneADisabledProject").get("state")); + server.setState(states.get("cannotCloneA4xxProject").get("state")); GitBridgeApp wlgb = new GitBridgeApp(new String[] { makeConfigFile(gitBridgePort, mockServerPort) }); diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/WLGitBridgeIntegrationTest/cannotCloneADisabledProject/state/state.json b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/WLGitBridgeIntegrationTest/cannotCloneA4xxProject/state/state.json similarity index 100% rename from services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/WLGitBridgeIntegrationTest/cannotCloneADisabledProject/state/state.json rename to services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/WLGitBridgeIntegrationTest/cannotCloneA4xxProject/state/state.json