exceptionfactory commented on code in PR #6057:
URL: https://github.com/apache/nifi/pull/6057#discussion_r877417322
##########
nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/NiFiClientUtil.java:
##########
@@ -768,6 +752,48 @@ public void waitForControllerServiceState(final String
groupId, final String des
}
}
+ public void waitForControllerServiceValidationStatus(final String
controllerServiceId, final String validationStatus) throws NiFiClientException,
IOException {
+ while (true) {
+ final ControllerServiceEntity controllerServiceEntity =
nifiClient.getControllerServicesClient().getControllerService(controllerServiceId);
+ final String currentValidationStatus =
controllerServiceEntity.getStatus().getValidationStatus();
+ if (validationStatus.contentEquals(currentValidationStatus)) {
Review Comment:
No strong reason, I was making some adjustments and ended up with this
version, but will change it `equals()` for simplicity.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]