You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Daniel Osvath (Jira)" <ji...@apache.org> on 2020/03/27 22:24:00 UTC

[jira] [Created] (KAFKA-9778) Add validateConnector functionality to the EmbeddedConnectCluster

Daniel Osvath created KAFKA-9778:
------------------------------------

             Summary: Add validateConnector functionality to the EmbeddedConnectCluster
                 Key: KAFKA-9778
                 URL: https://issues.apache.org/jira/browse/KAFKA-9778
             Project: Kafka
          Issue Type: Improvement
            Reporter: Daniel Osvath


A validate endpoint should be added to enables the integration testing of validation functionalities, including validation success and assertion of specific error messages.

This PR adds a method {{validateConnectorConfig}} to the {{EmbeddedConnectCluster}} that pings the {{/config/validate}} endpoint with the given configurations. [More about the endpoint here.|https://docs.confluent.io/current/connect/references/restapi.html#put--connector-plugins-(string-name)-config-validate]

With this addition, the validations for the connector can be tested in a similar way integration tests currently use the {{configureConnector}} method, for ex: {{connect.configureConnector(CONNECTOR_NAME, props);}}. The validation call would look like: {{ConfigInfos validateResponse = connect.validateConnectorConfig(CONNECTOR_CLASS_NAME, props);}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)