diff options
author | David Gageot <david@gageot.net> | 2015-09-02 12:13:48 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2015-09-02 14:25:02 +0200 |
commit | d8efb97a9451855a881ab375768bcb044097ed5c (patch) | |
tree | d056155e9ebe8ebd60a9fb5be32184247330139b /it/it-tests/src/test/java/server | |
parent | a1d9480ac376955a23c3b23e6237a587139d86bb (diff) | |
download | sonarqube-d8efb97a9451855a881ab375768bcb044097ed5c.tar.gz sonarqube-d8efb97a9451855a881ab375768bcb044097ed5c.zip |
Group its
Diffstat (limited to 'it/it-tests/src/test/java/server')
-rw-r--r-- | it/it-tests/src/test/java/server/HttpsTest.java | 2 | ||||
-rw-r--r-- | it/it-tests/src/test/java/server/ServerTest.java | 18 | ||||
-rw-r--r-- | it/it-tests/src/test/java/server/suite/ServerTestSuite.java | 1 |
3 files changed, 18 insertions, 3 deletions
diff --git a/it/it-tests/src/test/java/server/HttpsTest.java b/it/it-tests/src/test/java/server/HttpsTest.java index 4566ebd14c6..acf8d657555 100644 --- a/it/it-tests/src/test/java/server/HttpsTest.java +++ b/it/it-tests/src/test/java/server/HttpsTest.java @@ -69,6 +69,7 @@ public class HttpsTest { try { URL jksKeystore = getClass().getResource("/server/HttpsTest/keystore.jks"); orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") .setServerProperty("sonar.web.https.port", String.valueOf(httpsPort)) .setServerProperty("sonar.web.https.keyAlias", "tests") .setServerProperty("sonar.web.https.keyPass", "__wrong__") @@ -88,6 +89,7 @@ public class HttpsTest { // start server URL jksKeystore = getClass().getResource("/server/HttpsTest/keystore.jks"); orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") .setServerProperty("sonar.web.https.port", String.valueOf(httpsPort)) .setServerProperty("sonar.web.https.keyAlias", "tests") .setServerProperty("sonar.web.https.keyPass", "thetests") diff --git a/it/it-tests/src/test/java/server/ServerTest.java b/it/it-tests/src/test/java/server/ServerTest.java index 23ac3c27c34..f490194ff2c 100644 --- a/it/it-tests/src/test/java/server/ServerTest.java +++ b/it/it-tests/src/test/java/server/ServerTest.java @@ -43,6 +43,7 @@ public class ServerTest { public void test_settings() { URL secretKeyUrl = getClass().getResource("/server/ServerTest/sonar-secret.txt"); orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") .addPlugin(ItUtils.pluginArtifact("settings-plugin")) .addPlugin(ItUtils.pluginArtifact("license-plugin")) .setServerProperty("sonar.secretKeyPath", secretKeyUrl.getFile()) @@ -77,6 +78,7 @@ public class ServerTest { @Test public void property_relocation() { orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") .addPlugin(ItUtils.pluginArtifact("property-relocation-plugin")) .addPlugin(ItUtils.xooPlugin()) .setServerProperty("sonar.deprecatedKey", "true") @@ -103,6 +105,7 @@ public class ServerTest { public void check_minimal_sonar_version_at_startup() throws Exception { try { orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") .addPlugin(FileLocation.of(new File(ServerTest.class.getResource("/server/ServerTest/incompatible-plugin-1.0.jar").toURI()))) .build(); orchestrator.start(); @@ -117,7 +120,10 @@ public class ServerTest { public void support_install_dir_with_whitespaces() throws Exception { String dirName = "target/has space"; FileUtils.deleteDirectory(new File(dirName)); - orchestrator = Orchestrator.builderEnv().setOrchestratorProperty("orchestrator.workspaceDir", dirName).build(); + orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") + .setOrchestratorProperty("orchestrator.workspaceDir", dirName) + .build(); orchestrator.start(); Server.Status status = orchestrator.getServer().getAdminWsClient().find(new ServerQuery()).getStatus(); @@ -128,6 +134,7 @@ public class ServerTest { @Test public void should_create_in_temp_folder() throws Exception { orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") .addPlugin(ItUtils.pluginArtifact("server-plugin")) .setServerProperty("sonar.createTempFiles", "true") .build(); @@ -155,7 +162,9 @@ public class ServerTest { public void restart_forbidden_if_not_dev_mode() throws Exception { // server classloader locks Jar files on Windows if (!SystemUtils.IS_OS_WINDOWS) { - orchestrator = Orchestrator.builderEnv().build(); + orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") + .build(); orchestrator.start(); try { orchestrator.getServer().adminWsClient().systemClient().restart(); @@ -173,7 +182,10 @@ public class ServerTest { public void restart_on_dev_mode() throws Exception { // server classloader locks Jar files on Windows if (!SystemUtils.IS_OS_WINDOWS) { - orchestrator = Orchestrator.builderEnv().setServerProperty("sonar.web.dev", "true").build(); + orchestrator = Orchestrator.builderEnv() + .setSonarVersion("DEV") + .setServerProperty("sonar.web.dev", "true") + .build(); orchestrator.start(); orchestrator.getServer().adminWsClient().systemClient().restart(); diff --git a/it/it-tests/src/test/java/server/suite/ServerTestSuite.java b/it/it-tests/src/test/java/server/suite/ServerTestSuite.java index dd5897799cc..241e11ae5f9 100644 --- a/it/it-tests/src/test/java/server/suite/ServerTestSuite.java +++ b/it/it-tests/src/test/java/server/suite/ServerTestSuite.java @@ -36,6 +36,7 @@ public class ServerTestSuite { @ClassRule public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv() + .setSonarVersion("DEV") .addPlugin(ItUtils.xooPlugin()) // Used in global_property_change_extension_point |