bug4811: fixed replication user data assembly; first successful test with replication of central security service

This commit is contained in:
Axel Uhl
2020-11-04 22:36:47 +01:00
parent 032bd995d9
commit 1524744641
2 changed files with 2 additions and 2 deletions
@@ -102,7 +102,7 @@ public class TestProcedures {
assertTrue(process.isReady(optionalTimeout));
final String envSh = process.getEnvSh(optionalTimeout);
assertFalse(envSh.isEmpty());
assertTrue(envSh.contains("SERVER_NAME="+serverName));
assertTrue("Couldn't find SERVER_NAME=\""+serverName+"\" in env.sh:\n"+envSh, envSh.contains("SERVER_NAME=\""+serverName+"\""));
assertEquals(14888, process.getTelnetPortToOSGiConsole(optionalTimeout));
} finally {
landscape.terminate(host);
@@ -33,7 +33,7 @@ public interface OutboundReplicationConfiguration extends UserDataProvider {
default Map<ProcessConfigurationVariable, String> getUserData() {
final Map<ProcessConfigurationVariable, String> result = new HashMap<>();
if (getOutboundReplicationExchangeName() != null) {
result.put(ProcessConfigurationVariable.REPLICATION_HOST, getOutboundReplicationExchangeName());
result.put(ProcessConfigurationVariable.REPLICATION_CHANNEL, getOutboundReplicationExchangeName());
}
if (getOutboundRabbitMQEndpoint() != null) {
result.put(ProcessConfigurationVariable.REPLICATION_PORT, Integer.toString(getOutboundRabbitMQEndpoint().getPort()));