aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-tests
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-01-19 09:29:40 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-01-24 18:36:48 +0100
commit919955b34e8c92cd2572a42d276db4445e982c6c (patch)
treea60a0652fa2be3be53180d65ecc5a3bf4dd29759 /it/it-tests
parentdf07474a15ceb5767167ec75fe1c3e538756417e (diff)
downloadsonarqube-919955b34e8c92cd2572a42d276db4445e982c6c.tar.gz
sonarqube-919955b34e8c92cd2572a42d276db4445e982c6c.zip
SONAR-6506 Delete internal WS api/updatecenter/installed_plugins
Diffstat (limited to 'it/it-tests')
-rw-r--r--it/it-tests/src/test/java/it/updateCenter/UpdateCenterTest.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/it/it-tests/src/test/java/it/updateCenter/UpdateCenterTest.java b/it/it-tests/src/test/java/it/updateCenter/UpdateCenterTest.java
index a2f1c80cf5a..849ff01fcb6 100644
--- a/it/it-tests/src/test/java/it/updateCenter/UpdateCenterTest.java
+++ b/it/it-tests/src/test/java/it/updateCenter/UpdateCenterTest.java
@@ -20,20 +20,12 @@
package it.updateCenter;
import com.sonar.orchestrator.Orchestrator;
-import java.util.List;
-import org.apache.commons.lang.StringUtils;
import org.junit.After;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
-import org.sonar.wsclient.Host;
-import org.sonar.wsclient.Sonar;
-import org.sonar.wsclient.connectors.HttpClient4Connector;
-import org.sonar.wsclient.services.Plugin;
-import org.sonar.wsclient.services.UpdateCenterQuery;
import util.user.UserRule;
-import static org.assertj.core.api.Assertions.assertThat;
import static util.ItUtils.pluginArtifact;
import static util.selenium.Selenese.runSelenese;
@@ -42,7 +34,6 @@ import static util.selenium.Selenese.runSelenese;
*/
public class UpdateCenterTest {
-
@ClassRule
public static final Orchestrator orchestrator = Orchestrator.builderEnv()
.setServerProperty("sonar.updatecenter.url", UpdateCenterTest.class.getResource("/updateCenter/UpdateCenterTest/update-center.properties").toString())
@@ -57,33 +48,8 @@ public class UpdateCenterTest {
}
@Test
- public void web_service_installed_plugins_requires_root_and_returns_installed_plugins() {
- userRule.createUser("new_root", "bar");
- userRule.setRoot("new_root");
-
- Sonar newRootSonarWsClient = new Sonar(new HttpClient4Connector(new Host(orchestrator.getServer().getUrl(), "new_root", "bar")));
- List < Plugin > plugins = newRootSonarWsClient.findAll(UpdateCenterQuery.createForInstalledPlugins());
- assertThat(plugins.size()).isGreaterThan(0);
-
- Plugin installedPlugin = findPlugin(plugins, "fake");
-
- assertThat(installedPlugin).isNotNull();
- assertThat(installedPlugin.getName()).isEqualTo("Plugins :: Fake");
- assertThat(installedPlugin.getVersion()).isEqualTo("1.0-SNAPSHOT");
- }
-
- @Test
public void test_console() {
runSelenese(orchestrator, "/updateCenter/installed-plugins.html");
}
- private Plugin findPlugin(List<Plugin> plugins, String pluginKey) {
- for (Plugin plugin : plugins) {
- if (StringUtils.equals(pluginKey, plugin.getKey())) {
- return plugin;
- }
- }
- return null;
- }
-
}