diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-09-05 08:31:07 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-09-05 09:59:34 +0200 |
commit | b2608c0b91eed4489ccd7a35c25b90d1eebe7615 (patch) | |
tree | cbec81517ec5b5a77dd45b242eaa7412657e28c5 /tests | |
parent | 01aadce427df99146be5cb53717ce0ff425eec44 (diff) | |
download | sonarqube-b2608c0b91eed4489ccd7a35c25b90d1eebe7615.tar.gz sonarqube-b2608c0b91eed4489ccd7a35c25b90d1eebe7615.zip |
Add missing Tester#disableOrganizations in Category 1 ITs
Diffstat (limited to 'tests')
3 files changed, 12 insertions, 19 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/measure/ProjectMeasuresPageTest.java b/tests/src/test/java/org/sonarqube/tests/measure/ProjectMeasuresPageTest.java index 158bada7d37..f2466a2b3d7 100644 --- a/tests/src/test/java/org/sonarqube/tests/measure/ProjectMeasuresPageTest.java +++ b/tests/src/test/java/org/sonarqube/tests/measure/ProjectMeasuresPageTest.java @@ -22,25 +22,20 @@ package org.sonarqube.tests.measure; import com.sonar.orchestrator.Orchestrator; import com.sonar.orchestrator.build.SonarScanner; import org.junit.Before; -import org.junit.Ignore; +import org.junit.ClassRule; import org.junit.Rule; +import org.junit.Test; +import org.sonarqube.pageobjects.Navigation; import org.sonarqube.pageobjects.measures.MeasureContent; import org.sonarqube.pageobjects.measures.MeasuresPage; import org.sonarqube.tests.Category1Suite; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.junit.Test; -import org.sonarqube.pageobjects.Navigation; import org.sonarqube.tests.Tester; -import static com.codeborne.selenide.Condition.exist; import static com.codeborne.selenide.Condition.visible; import static com.codeborne.selenide.Selenide.$; -import static com.codeborne.selenide.Selenide.$$; import static com.codeborne.selenide.WebDriverRunner.url; import static org.assertj.core.api.Assertions.assertThat; import static util.ItUtils.projectDir; -import static util.selenium.Selenese.runSelenese; public class ProjectMeasuresPageTest { @@ -48,7 +43,7 @@ public class ProjectMeasuresPageTest { public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR; @Rule - public Tester tester = new Tester(orchestrator); + public Tester tester = new Tester(orchestrator).disableOrganizations(); private static String projectKey = "project-measures-page-test-project"; diff --git a/tests/src/test/java/org/sonarqube/tests/projectAdministration/ProjectAdministrationTest.java b/tests/src/test/java/org/sonarqube/tests/projectAdministration/ProjectAdministrationTest.java index 8e1a210c12c..3a4d1aad047 100644 --- a/tests/src/test/java/org/sonarqube/tests/projectAdministration/ProjectAdministrationTest.java +++ b/tests/src/test/java/org/sonarqube/tests/projectAdministration/ProjectAdministrationTest.java @@ -21,9 +21,6 @@ package org.sonarqube.tests.projectAdministration; import com.sonar.orchestrator.Orchestrator; import com.sonar.orchestrator.build.SonarScanner; -import org.openqa.selenium.By; -import org.sonarqube.pageobjects.ProjectsManagementPage; -import org.sonarqube.tests.Category1Suite; import java.io.UnsupportedEncodingException; import java.sql.SQLException; import java.util.Calendar; @@ -37,11 +34,14 @@ import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; +import org.openqa.selenium.By; import org.sonar.wsclient.SonarClient; import org.sonar.wsclient.base.HttpException; import org.sonar.wsclient.user.UserParameters; import org.sonarqube.pageobjects.Navigation; +import org.sonarqube.pageobjects.ProjectsManagementPage; import org.sonarqube.pageobjects.settings.SettingsPage; +import org.sonarqube.tests.Category1Suite; import org.sonarqube.tests.Tester; import org.sonarqube.ws.WsPermissions; import org.sonarqube.ws.client.permission.AddUserToTemplateWsRequest; @@ -68,7 +68,7 @@ public class ProjectAdministrationTest { public ExpectedException expectedException = ExpectedException.none(); @Rule - public Tester tester = new Tester(orchestrator); + public Tester tester = new Tester(orchestrator).disableOrganizations(); private Navigation nav = Navigation.create(orchestrator); diff --git a/tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java b/tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java index 59fd4cbe738..3a0c3f9374a 100644 --- a/tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java +++ b/tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java @@ -23,9 +23,6 @@ import com.codeborne.selenide.Condition; import com.codeborne.selenide.SelenideElement; import com.sonar.orchestrator.Orchestrator; import com.sonar.orchestrator.build.SonarScanner; -import org.junit.Rule; -import org.openqa.selenium.By; -import org.sonarqube.tests.Category1Suite; import java.util.Date; import javax.annotation.Nullable; import org.apache.commons.lang.time.DateFormatUtils; @@ -33,7 +30,9 @@ import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.ClassRule; +import org.junit.Rule; import org.junit.Test; +import org.openqa.selenium.By; import org.sonar.wsclient.qualitygate.NewCondition; import org.sonar.wsclient.qualitygate.QualityGate; import org.sonar.wsclient.qualitygate.QualityGateClient; @@ -41,9 +40,8 @@ import org.sonar.wsclient.qualitygate.QualityGateCondition; import org.sonar.wsclient.qualitygate.UpdateCondition; import org.sonarqube.pageobjects.Navigation; import org.sonarqube.pageobjects.ProjectActivityPage; +import org.sonarqube.tests.Category1Suite; import org.sonarqube.tests.Tester; -import org.sonarqube.ws.Organizations; -import org.sonarqube.ws.WsUsers; import static com.codeborne.selenide.Selenide.$; import static org.apache.commons.lang.time.DateUtils.addDays; @@ -59,7 +57,7 @@ public class QualityGateUiTest { public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR; @Rule - public Tester tester = new Tester(orchestrator); + public Tester tester = new Tester(orchestrator).disableOrganizations(); private static long DEFAULT_QUALITY_GATE; |