"kafka_host": lambda value, _: (isinstance(value, str) and len(value) > 0)
if config_data.get("enable_ng_ro", True)
else True,
- "kafka_port": lambda value, _: (isinstance(value, int) and value > 0)
+ "kafka_port": lambda value, _: (isinstance(value, str) and len(value) > 0)
if config_data.get("enable_ng_ro", True)
else True,
"mongodb_connection_string": lambda value, _: (
"OSMRO_LOG_LEVEL": "INFO",
"OSMRO_MESSAGE_DRIVER": "kafka",
"OSMRO_MESSAGE_HOST": "kafka",
- "OSMRO_MESSAGE_PORT": 9090,
+ "OSMRO_MESSAGE_PORT": "9090",
"OSMRO_DATABASE_DRIVER": "mongo",
"OSMRO_DATABASE_URI": "mongodb://mongo",
"OSMRO_DATABASE_COMMONKEY": "osm",
"kafka/0",
{
"host": "kafka",
- "port": 9090,
+ "port": "9090",
},
)
}
relation_state = {
"kafka_host": "kafka",
- "kafka_port": 9090,
+ "kafka_port": "9090",
"mongodb_connection_string": "mongodb://mongo",
}
}
relation_state = {
"kafka_host": "kafka",
- "kafka_port": 9090,
+ "kafka_port": "9090",
"mongodb_connection_string": "mongodb://mongo",
}
app_name = "ro"