aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-03 15:50:41 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-09 22:49:37 +0100
commit4ba4b225a6992fe7250e5e31c7980649a285646f (patch)
tree3ab46509ac5bb5d4680a46fa0fcff77a9fe70af4 /it
parent82a3b919083f95998fa7cc274c1dd0f10ddcb470 (diff)
downloadsonarqube-4ba4b225a6992fe7250e5e31c7980649a285646f.tar.gz
sonarqube-4ba4b225a6992fe7250e5e31c7980649a285646f.zip
Remove useless db truncates in some ITs
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/java/it/serverSystem/ServerSystemTest.java8
-rw-r--r--it/it-tests/src/test/java/it/user/FavoritesWsTest.java1
-rw-r--r--it/it-tests/src/test/java/it/user/MyAccountPageTest.java1
3 files changed, 1 insertions, 9 deletions
diff --git a/it/it-tests/src/test/java/it/serverSystem/ServerSystemTest.java b/it/it-tests/src/test/java/it/serverSystem/ServerSystemTest.java
index 3242a1ece0d..6e4ae6eadae 100644
--- a/it/it-tests/src/test/java/it/serverSystem/ServerSystemTest.java
+++ b/it/it-tests/src/test/java/it/serverSystem/ServerSystemTest.java
@@ -29,7 +29,6 @@ import okhttp3.Response;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.json.simple.JSONValue;
-import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import org.sonarqube.ws.MediaTypes;
@@ -54,16 +53,11 @@ public class ServerSystemTest {
@ClassRule
public static final Orchestrator orchestrator = Category4Suite.ORCHESTRATOR;
- @Before
- public void cleanDatabase() {
- orchestrator.resetData();
- }
-
@Test
public void get_sonarqube_version() {
Map<String, Object> json = callStatus();
- String version = (String)json.get("version");
+ String version = (String) json.get("version");
if (!startsWithAny(version, new String[] {"6."})) {
fail("Bad version: " + version);
}
diff --git a/it/it-tests/src/test/java/it/user/FavoritesWsTest.java b/it/it-tests/src/test/java/it/user/FavoritesWsTest.java
index adbc0454535..f161e53372d 100644
--- a/it/it-tests/src/test/java/it/user/FavoritesWsTest.java
+++ b/it/it-tests/src/test/java/it/user/FavoritesWsTest.java
@@ -45,7 +45,6 @@ public class FavoritesWsTest {
@Before
public void inspectProject() {
- orchestrator.resetData();
orchestrator.executeBuild(SonarScanner.create(projectDir("shared/xoo-sample")));
adminClient = newAdminWsClient(orchestrator);
}
diff --git a/it/it-tests/src/test/java/it/user/MyAccountPageTest.java b/it/it-tests/src/test/java/it/user/MyAccountPageTest.java
index 32b870a5a6a..5faccd0e466 100644
--- a/it/it-tests/src/test/java/it/user/MyAccountPageTest.java
+++ b/it/it-tests/src/test/java/it/user/MyAccountPageTest.java
@@ -47,7 +47,6 @@ public class MyAccountPageTest {
@BeforeClass
public static void setUp() {
- orchestrator.resetData();
adminWsClient = newAdminWsClient(orchestrator);
}