karate.log('service.monitor health confirmed at attempt #' + (i + 1));
return true;
}
} else {
consecutive = 0;
karate.log('Attempt #' + (i + 1) + ' - service.monitor resources not all healthy yet: ' + summary);
}
previousNames = names;
if (i < maxRetries - 1) {
java.lang.Thread.sleep(pollInterval);
}
}
karate.fail('service.monitor did not report all resources healthy for service ' + serviceId + ' within ' + (maxRetries * pollInterval / 1000) + 's. Last state: ' + describe(last));
}
"""
* doPoll()
@terminateService
Scenario: Terminate the Service
* karate.log('--- STEP:PATCHSERVICE TO TERMINATED ---')