}\r
\r
// schedule lucene engine\r
- logger.info("Lucene executor is scheduled to process indexed branches every 2 minutes.");\r
- scheduledExecutor.scheduleAtFixedRate(luceneExecutor, 1, 2, TimeUnit.MINUTES);\r
+ boolean luceneIndexing = settings.getBoolean(Keys.web.allowLuceneIndexing, true);\r
+ logger.info("Lucene indexing is " + (luceneIndexing ? "" : "not") + " activated");\r
+ \r
+ if (luceneIndexing) {\r
+ scheduledExecutor.scheduleAtFixedRate(luceneExecutor, 1, 2, TimeUnit.MINUTES);\r
+ logger.info("Lucene executor is scheduled to process indexed branches every 2 minutes."); \r
+ }\r
+\r
\r
// schedule gc engine\r
if (gcExecutor.isReady()) {\r
*
*/
@RunWith(Suite.class)
-@Suite.SuiteClasses({ UI_MultiAdminSupportTest.class })
+@Suite.SuiteClasses({ UI_MultiAdminSupportTest.class, UI_MultiAdminSupportTest.class })
public class TestUISuite {
}
.changeAuthorizationControl(RepoEditView.AUTHCONTROL_RWALL));
// with a second admin
- editView.addRepoAdministrator("admin");
+ editView.addOwner("admin");
Assert.assertTrue(editView.save());
// user is automatically forwarded to repo list view
Assert.assertTrue(view.isEmptyRepo(TEST_MULTI_ADMIN_SUPPORT_REPO_PATH));
return false;
}
- private void changeRepoAdministrators(String action,
+ private void changeOwners(String action,
String affectedSelection, String username) {
String xpath = "//select[@name=\"" + affectedSelection
+ "\"]/option[@value = \"" + username + "\" ]";
button.click();
}
- public void removeRepoAdministrator(String username) {
- changeRepoAdministrators("remove", "repoAdministrators:selection",
+ public void removeOwner(String username) {
+ changeOwners("remove", "owners:selection",
username);
}
- public void addRepoAdministrator(String username) {
- changeRepoAdministrators("add", "repoAdministrators:choices", username);
+ public void addOwner(String username) {
+ changeOwners("add", "owners:choices", username);
}
public WebElement getAccessRestrictionSelection() {