// start "startup leader", which creates and populates datastores
Orchestrator orchestrator = Orchestrator.builderEnv()
.setServerProperty("sonar.cluster.enabled", "true")
- .setServerProperty("sonar.cluster.startupLeader", "true")
+ .setServerProperty("sonar.cluster.web.startupLeader", "true")
.setServerProperty("sonar.log.level", "TRACE")
.addPlugin(ItUtils.xooPlugin())
.build();
assertThat(newWsClient(orchestrator).rules().search(new SearchWsRequest()).getTotal()).isGreaterThan(0);
FileUtils.write(orchestrator.getServer().getLogs(), "", false);
- updateSonarPropertiesFile(orchestrator, ImmutableMap.of("sonar.cluster.startupLeader", "false"));
+ updateSonarPropertiesFile(orchestrator, ImmutableMap.of("sonar.cluster.web.startupLeader", "false"));
orchestrator.restartServer();
expectLog(orchestrator, "Cluster enabled (startup follower)");
web = Orchestrator.builderEnv()
.setServerProperty("sonar.cluster.enabled", "true")
- .setServerProperty("sonar.cluster.startupLeader", "true")
+ .setServerProperty("sonar.cluster.web.startupLeader", "true")
.setServerProperty("sonar.cluster.search.disabled", "true")
.setServerProperty("sonar.cluster.search.hosts", "localhost:" + esWatcher.port)
// no need for compute engine in this test. Disable it for faster test.
@Test
public void node_is_startup_leader_in_cluster() {
settings.setProperty("sonar.cluster.enabled", "true");
- settings.setProperty("sonar.cluster.startupLeader", "true");
+ settings.setProperty("sonar.cluster.web.startupLeader", "true");
ClusterImpl underTest = new ClusterImpl(settings);
@Test
public void node_is_startup_follower_in_cluster() {
settings.setProperty("sonar.cluster.enabled", "true");
- settings.setProperty("sonar.cluster.startupLeader", "false");
+ settings.setProperty("sonar.cluster.web.startupLeader", "false");
ClusterImpl underTest = new ClusterImpl(settings);