host-condition: implement property read

This is the implementation of the new PDI interface for checking if the
host is running.

Tested:
- Verified when host was not running that expected response was
  provided:
  busctl get-property xyz.openbmc_project.Control.Host /xyz/openbmc_project/control/host0 xyz.openbmc_project.Condition.HostFirmware CurrentFirmwareCondition
  s "xyz.openbmc_project.Condition.HostFirmware.FirmwareCondition.Off"

- Verified when host was running, that expected response was provided:
  busctl get-property xyz.openbmc_project.Control.Host /xyz/openbmc_project/control/host0 xyz.openbmc_project.Condition.HostFirmware CurrentFirmwareCondition
  s "xyz.openbmc_project.Condition.HostFirmware.FirmwareCondition.Running"

- Verified that if hostAckCallback is not called within allotted time
  that hostAckTimer expires and successfully sets the hostCondition

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I07bc3b3eac4fdfde2a8a1798c2a29f5f2a34a832
1 file changed