aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-27 09:21:09 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-27 10:21:04 +0200
commit648b9bfb472fcf1563be51df5f4d3f48a380760d (patch)
tree91aaff15c26f5e0591bf2de10c1465310601855e /it
parent7a4e71586a11644181f593aed3b23692ba887cdc (diff)
downloadsonarqube-648b9bfb472fcf1563be51df5f4d3f48a380760d.tar.gz
sonarqube-648b9bfb472fcf1563be51df5f4d3f48a380760d.zip
Upgrade to Orchestrator 3.11
Fixes some FP with download of plugins
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/java/it/analysis/IssuesModeTest.java3
-rw-r--r--it/it-tests/src/test/java/it/duplication/CrossProjectDuplicationsTest.java6
-rw-r--r--it/it-tests/src/test/java/it/duplication/DuplicationsTest.java8
3 files changed, 8 insertions, 9 deletions
diff --git a/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java b/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java
index 9f6e3c0e2b3..5817eed3030 100644
--- a/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java
+++ b/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java
@@ -48,7 +48,6 @@ import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.junit.Before;
import org.junit.ClassRule;
-import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@@ -379,7 +378,7 @@ public class IssuesModeTest {
private void runConcurrentIssues(final String workDirPath) throws Exception {
// Install sonar-runner in advance to avoid concurrent unzip issues
FileSystem fileSystem = orchestrator.getConfiguration().fileSystem();
- new SonarScannerInstaller(fileSystem).install(Version.create(SonarScanner.DEFAULT_RUNNER_VERSION), fileSystem.workspace());
+ new SonarScannerInstaller(fileSystem).install(Version.create(SonarScanner.DEFAULT_SCANNER_VERSION), fileSystem.workspace(), true);
final int nThreads = 3;
ExecutorService executorService = Executors.newFixedThreadPool(nThreads);
List<Callable<BuildResult>> tasks = new ArrayList<>();
diff --git a/it/it-tests/src/test/java/it/duplication/CrossProjectDuplicationsTest.java b/it/it-tests/src/test/java/it/duplication/CrossProjectDuplicationsTest.java
index 393726736be..29c666d0433 100644
--- a/it/it-tests/src/test/java/it/duplication/CrossProjectDuplicationsTest.java
+++ b/it/it-tests/src/test/java/it/duplication/CrossProjectDuplicationsTest.java
@@ -19,13 +19,13 @@
*/
package it.duplication;
+import com.google.common.collect.ObjectArrays;
import com.sonar.orchestrator.Orchestrator;
import com.sonar.orchestrator.locator.FileLocation;
import com.sonar.orchestrator.selenium.Selenese;
import it.Category4Suite;
import java.util.List;
import org.apache.commons.io.IOUtils;
-import org.apache.commons.lang3.ArrayUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
@@ -151,13 +151,13 @@ public class CrossProjectDuplicationsTest {
private static void executeAnalysis(String projectKey, String path, String... additionalProperties) {
runProjectAnalysis(orchestrator, path,
- ArrayUtils.addAll(
+ ObjectArrays.concat(
new String[] {
"sonar.cpd.cross_project", "true",
"sonar.projectKey", projectKey,
"sonar.projectName", projectKey
},
- additionalProperties));
+ additionalProperties, String.class));
}
private static int getMeasure(String projectKey, String metricKey) {
diff --git a/it/it-tests/src/test/java/it/duplication/DuplicationsTest.java b/it/it-tests/src/test/java/it/duplication/DuplicationsTest.java
index 688cffd5d90..44d7c42ca96 100644
--- a/it/it-tests/src/test/java/it/duplication/DuplicationsTest.java
+++ b/it/it-tests/src/test/java/it/duplication/DuplicationsTest.java
@@ -19,13 +19,13 @@
*/
package it.duplication;
+import com.google.common.collect.ObjectArrays;
import com.sonar.orchestrator.Orchestrator;
import com.sonar.orchestrator.locator.FileLocation;
import com.sonar.orchestrator.selenium.Selenese;
import it.Category4Suite;
import java.util.List;
import org.apache.commons.io.IOUtils;
-import org.apache.commons.lang3.ArrayUtils;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
@@ -140,7 +140,7 @@ public class DuplicationsTest {
Selenese.builder().setHtmlTestsInClasspath("duplications_widget",
// SONAR-4347
"/duplication/DuplicationsTest/duplications_widget.html").build())
- .runOn(orchestrator);
+ .runOn(orchestrator);
}
private static Resource getComponent(String key) {
@@ -163,12 +163,12 @@ public class DuplicationsTest {
orchestrator.getServer().associateProjectToQualityProfile(projectKey, "xoo", "xoo-duplication-profile");
runProjectAnalysis(orchestrator, "duplications/file-duplications",
- ArrayUtils.addAll(
+ ObjectArrays.concat(
new String[] {
"sonar.projectKey", projectKey,
"sonar.projectName", projectKey
},
- additionalProperties));
+ additionalProperties, String.class));
}
private static void verifyWsResultOnDuplicateFile(String fileKey, String ws, String expectedFilePath) throws Exception {