diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py b/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py index c63a78363d343be702a2f2cd5addcf253ae1a82e..132a0f7ef8d738b2a11131ac28bfbd9bc324e2ec 100644 --- a/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py +++ b/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py @@ -81,13 +81,13 @@ class TestArchiver(BaseIntegrationTestCase): self.assertEqual(datetime,type(item.data_time)) # column datetime self.assertEqual(int,type(item.value)) # column value - """ + # Remove attribute at the end of the test self.archiver.remove_attribute_from_archiver(attr_fullname) time.sleep(3) # Test if the attribute has been correctly removed self.assertFalse(self.archiver.is_attribute_archived(attribute_fqdn(attr_fullname))) - """ + recv_proxy.off() def test_archive_array_attribute(self): @@ -103,11 +103,11 @@ class TestArchiver(BaseIntegrationTestCase): sdp_proxy.on() self.assertEqual(DevState.ON, sdp_proxy.state()) - """ + # Safety operation that prevents event subscriber to go in Fault state self.archiver.remove_attributes_in_error() time.sleep(3) - """ + polling_period=1000 archive_event_period=3000 attr_fullname = 'stat/sdp/1/fpga_temp_r' # double @@ -128,13 +128,13 @@ class TestArchiver(BaseIntegrationTestCase): self.assertEqual(int,type(item.x)) # column index self.assertEqual(float,type(item.value)) # column value - """ + # Remove attribute at the end of the test self.archiver.remove_attribute_from_archiver(attr_fullname) time.sleep(3) # Test if the attribute has been correctly removed self.assertFalse(self.archiver.is_attribute_archived(attribute_fqdn(attr_fullname))) - """ + sdp_proxy.off() def test_archive_image_boolean_attribute(self): @@ -150,11 +150,11 @@ class TestArchiver(BaseIntegrationTestCase): recv_proxy.on() self.assertEqual(DevState.ON, recv_proxy.state()) - """ + # Safety operation that prevents event subscriber to go in Fault state self.archiver.remove_attributes_in_error() time.sleep(3) - """ + polling_period=1000 archive_event_period=5000 attr_fullname = 'stat/recv/1/ant_mask_rw' # boolean 3x32 @@ -177,13 +177,13 @@ class TestArchiver(BaseIntegrationTestCase): self.assertEqual(int,type(item.value)) # column value (bool stored as int) self.assertLessEqual(item.value,1) # column value (must be 0 or 1) - """ + # Remove attribute at the end of the test self.archiver.remove_attribute_from_archiver(attr_fullname) time.sleep(3) # Test if the attribute has been correctly removed self.assertFalse(self.archiver.is_attribute_archived(attribute_fqdn(attr_fullname))) - """ + recv_proxy.off() def test_get_maximum_device_load(self):