Skip to content
Snippets Groups Projects
Commit 5efdac61 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-846: add extra property check in integration test

parent bc259901
No related branches found
No related tags found
1 merge request!374Resolve L2SS-846: add disable_hardware to devices
......@@ -46,17 +46,17 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase):
return sdp_proxy
def test_alarm(self):
self.setup_recv_proxy()
self.setup_sdp_proxy()
self.proxy.off()
self.proxy.initialise()
self.proxy.on()
# Exclude other devices which raise a TimeoutError, since they wait for the attribute *_translator_busy_R to become False
# (set instead to True in this test environment)
self.proxy.put_property({"Shutdown_Device_List": ["STAT/SDP/1"]})
devices = [DeviceProxy("STAT/SDP/1")]
self.proxy.off()
self.proxy.initialise()
self.proxy.on()
self.setup_recv_proxy()
self.setup_sdp_proxy()
# make sure none of the devices are in the OFF or FAULT state. Any other state is fine
for dev in devices:
if dev.state() == DevState.OFF:
......@@ -65,6 +65,8 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase):
dev.off()
dev.warm_boot()
self.assertEqual(self.proxy.get_property('Shutdown_Device_List')['Shutdown_Device_List'][0], ["STAT/SDP/1"])
# Here we trigger our own change event by just using an RW attribute
self.recv_proxy.HBAT_LED_on_RW = [[False] * 32] * 96
time.sleep(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment