Skip to content
Snippets Groups Projects
Commit cf8f69c7 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-240: Update references to apcst temporarily

parent 1d707647
No related branches found
No related tags found
1 merge request!89Resolve L2SS-240 "Integration testing"
......@@ -7,15 +7,13 @@ container will be build by the makefiles but should only be started by the
dedicated integration test script. This script will ensure that other containers
are running and are in the required state.
[comment]: <> (#TODO&#40;Corne&#41;: Change pypcc-sim name to apsct-sim name once changed!)
* Launch pypcc-sim and sdptr-sim simulators.
* Reconfigure dsconfig to use these simulators.
* Create and start the integration-test container.
## Running
**Warning running these tests will make changes to your local system!**
**Warning running these tests will make changes to your CDB database config!**
```shell
source bootstrap/etc/lofar20rc.sh
......
......@@ -15,10 +15,10 @@ from tango._tango import DevState
from integration_test import base
class TestDeviceAPSCT(base.IntegrationTestCase):
class TestDevicePCC(base.IntegrationTestCase):
def setUp(self):
super(TestDeviceAPSCT, self).setUp()
super(TestDevicePCC, self).setUp()
def tearDown(self):
"""Turn device Off in teardown to prevent blocking tests"""
......@@ -28,35 +28,30 @@ class TestDeviceAPSCT(base.IntegrationTestCase):
d.Off()
except Exception as e:
"""Failing to turn Off devices should not raise errors here"""
print("Failed to turn device off in teardown %s" % e)
print(f"Failed to turn device off in teardown {e}")
def test_device_proxy_apsct(self):
def test_device_proxy_pcc(self):
"""Test if we can successfully create a DeviceProxy and fetch state"""
#TODO(Corne): Change name to APSCT once ready
d = DeviceProxy("LTS/PCC/1")
self.assertEqual(DevState.OFF, d.state())
def test_device_apsct_initialize(self):
def test_device_pcc_initialize(self):
"""Test if we can transition to standby"""
# TODO(Corne): Change name to APSCT once ready
d = DeviceProxy("LTS/PCC/1")
d.initialise()
time.sleep(1)
self.assertEqual(DevState.STANDBY, d.state())
def test_device_apsct_on(self):
def test_device_pcc_on(self):
"""Test if we can transition to on"""
# TODO(Corne): Change name to APSCT once ready
d = DeviceProxy("LTS/PCC/1")
d.initialise()
time.sleep(1)
d.on()
......
......@@ -29,7 +29,7 @@ class TestDeviceSDP(base.IntegrationTestCase):
d.Off()
except Exception as e:
"""Failing to turn Off devices should not raise errors here"""
print("Failed to turn device off in teardown %s" % e)
print(f"Failed to turn device off in teardown {e}")
def test_device_proxy_sdp(self):
"""Test if we can successfully create a DeviceProxy and fetch state"""
......@@ -44,7 +44,6 @@ class TestDeviceSDP(base.IntegrationTestCase):
d = DeviceProxy("LTS/SDP/1")
d.initialise()
time.sleep(1)
self.assertEqual(DevState.STANDBY, d.state())
......@@ -54,7 +53,6 @@ class TestDeviceSDP(base.IntegrationTestCase):
d = DeviceProxy("LTS/SDP/1")
d.initialise()
time.sleep(1)
d.on()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment