From: Stas Vilchik Date: Fri, 2 Oct 2015 10:06:38 +0000 (+0200) Subject: fix bulk deletion ITs X-Git-Tag: 5.2-RC1~109 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=042fb29537e9a561613d1f84d78294ff2d4fe496;p=sonarqube.git fix bulk deletion ITs --- diff --git a/it/it-tests/src/test/java/administration/suite/administration/BulkDeletionTest.java b/it/it-tests/src/test/java/administration/suite/administration/BulkDeletionTest.java index 4ee932e5d67..739ca839477 100644 --- a/it/it-tests/src/test/java/administration/suite/administration/BulkDeletionTest.java +++ b/it/it-tests/src/test/java/administration/suite/administration/BulkDeletionTest.java @@ -56,21 +56,6 @@ public class BulkDeletionTest { new SeleneseTest(selenese).runOn(orchestrator); } - /** - * SONAR-4560 - */ - @Test - public void should_support_two_letters_long_project_name() throws Exception { - executeBuild("xo", "xo"); - - Selenese selenese = Selenese.builder() - .setHtmlTestsInClasspath("bulk-delete-projects-with-short-name", - "/administration/suite/BulkDeletionTest/project-bulk-deletion/display-two-letters-long-project.html", - "/administration/suite/BulkDeletionTest/project-bulk-deletion/filter-two-letters-long-project.html" - ).build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - private void executeBuild(String projectKey, String projectName) { orchestrator.executeBuild( SonarRunner.create(projectDir("shared/xoo-sample")) diff --git a/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/bulk-delete-filter-projects.html b/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/bulk-delete-filter-projects.html index 8ff4b7089c2..1991870c69d 100644 --- a/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/bulk-delete-filter-projects.html +++ b/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/bulk-delete-filter-projects.html @@ -9,66 +9,66 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
open/sonar/sessions/logout
open/sonar/sessions/login
typeloginadmin
typepasswordadmin
clickAndWaitcommit
open/sonar/bulk_deletion
assertTextcontent*Bar-Sonar-Plugin*Foo-Application*Sample-Project*
typeid=resource_filters
clickAndWaitid=filter_resources
assertTextcontent*Bar-Sonar-Plugin*Sample-Project*
assertTextcontent*cameleon-3*cameleon-1*
assertTextNotPresentcontent*Foo-Application*
open/sonar/sessions/logout
open/sonar/sessions/login
typeloginadmin
typepasswordadmin
clickAndWaitcommit
open/sonar/projects
waitForTextcontent*Bar-Sonar-Plugin*Foo-Application*Sample-Project*
typecss=.search-box-inputs
clickcss=.search-box-submit
waitForTextcontent*Bar-Sonar-Plugin*Sample-Project*
waitForTextcontent*cameleon-3*cameleon-1*
assertTextNotPresentcontent*Foo-Application*
diff --git a/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/display-two-letters-long-project.html b/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/display-two-letters-long-project.html deleted file mode 100644 index 3f0095f07b9..00000000000 --- a/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/display-two-letters-long-project.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - display-two-letters-long-project - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
open/sonar/sessions/logout
open/sonar/sessions/login
typeloginadmin
typepasswordadmin
clickAndWaitcommit
open/sonar/bulk_deletion
assertTextresources-to-delete*xo*xo*
- - diff --git a/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/filter-two-letters-long-project.html b/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/filter-two-letters-long-project.html deleted file mode 100644 index 17e6732e271..00000000000 --- a/it/it-tests/src/test/resources/administration/suite/BulkDeletionTest/project-bulk-deletion/filter-two-letters-long-project.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - filter-two-letters-long-project - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
open/sonar/sessions/logout
open/sonar/sessions/login
typeloginadmin
typepasswordadmin
clickAndWaitcommit
open/sonar/bulk_deletion
typeid=resource_filterxo
clickAndWaitid=filter_resources
assertTextresources-to-delete*xo*xo*
- -