Affects Version/s: None
Fix Version/s: None
The integration testing library for Connect could be expanded to include methods for verifying the state of connectors. Some possibilities are:
public boolean connectorIsRunning(String connector);
public boolean connectorIsFailed(String connector);
public boolean connectorIsRunningWithTasks(String connector, int numTasks);
public boolean connectorIsFailedWithTasksRunning(String connector, int numTasks);
public boolean connectorAndTasksAreFailed(String connector, int numTasks);
These could be used in conjunction with the various waitForCondition methods to easily wait for connectors to be started, failed, etc. during tests.
Functionality like this is already present in some integration tests, but is implemented on a per-test basis instead of as part of the integration testing library itself.