use of org.apache.beam.io.debezium.DebeziumIO.ConnectorConfiguration in project beam by apache.
the class DebeziumIOTest method testSourceConnectorUsernamePassword.
@Test
public void testSourceConnectorUsernamePassword() {
String username = "debezium";
String password = "dbz";
ConnectorConfiguration configuration = MYSQL_CONNECTOR_CONFIGURATION.withUsername(username).withPassword(password);
Map<String, String> configurationMap = configuration.getConfigurationMap();
Configuration debeziumConf = Configuration.from(configurationMap);
Map<String, ConfigValue> validConfig = debeziumConf.validate(MySqlConnectorConfig.ALL_FIELDS);
for (ConfigValue configValue : validConfig.values()) {
assertTrue(configValue.errorMessages().isEmpty());
}
}
Aggregations