CheckStatus
The CheckStatus class defines the possible statuses for a check result. It is used to represent the final outcome of a policy check execution.
Usage
from lunar_policy import CheckStatusAvailable Status Values
PASS
CheckStatus.PASSThe check resulted in pass status. It passed successfully, so all assertions within the check were satisfied.
FAIL
CheckStatus.FAILThe check resulted in fail status. It failed, so one or more assertions within the check were not satisfied.
PENDING
CheckStatus.PENDINGThe check resulted in pending status. It could not be completed due to data not being available. This occurs when required data is not yet available in the component JSON, typically because a code or cron collector has not finished running yet, or because the CI is still running (and a CI collector hasn't triggered yet).
ERROR
CheckStatus.ERRORThe check resulted in error status. It encountered an error during execution. This indicates an unexpected error occurred during the check execution, such as a runtime exception.
Last updated