grid.promise: add support for promise without test or anomaly
Support for promise test-less or anomaly-less allow to disable either the test phase or the anomaly phase. by default, test and anomaly are enabled, `__is_tested = True` and `__is_anomaly_detected = True`. Test will run when buildout is processing the computer partition, and anomaly when the partition is processed. Call `self.setTestLess()` in `__init__.py` of the promise will disable Test and set `__is_tested = False`. Call `self.setAnomalyLess()` will rather disable Anomaly and set `__is_anomaly_detected = False`. def __init__(self, config): GenericPromise.__init__(self, config) # Skip test check on this promise self.setTestLess() If the promise is test less, then slapgrid will not run the promise while processing the partition which mean that the promise will not report error, only Anomaly will be checked. Samething, if promise is anomaly less, only test will run when slapgrid is processing the partition. /reviewed-on !93
Showing
Please register or sign in to comment