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

L2SS-240: Test to get state from DeviceProxy

parent 1ded82cc
Branches
Tags
1 merge request!89Resolve L2SS-240 "Integration testing"
# Integration tests # Integration tests
**Warning running these tests will make changes to your local system** **Warning running these tests will make changes to your local system**
\ No newline at end of file
## Approach
A special docker container is build to perform the integration tests. This
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.
* Launch pypcc-sim and sdptr-sim simulators.
* Reconfigure dsconfig to use these simulators.
* Create and start the integration-test container.
## Limitations
Our makefile will always launch the new container upon creation, resulting in
the integration tests actually being run twice.
\ No newline at end of file
...@@ -19,4 +19,6 @@ class TestDevice(base.IntegrationTestCase): ...@@ -19,4 +19,6 @@ class TestDevice(base.IntegrationTestCase):
def test_device(self): def test_device(self):
d = DeviceProxy("LTS/SDP/1") d = DeviceProxy("LTS/SDP/1")
\ No newline at end of file
self.assertEqual("ON", d.state())
...@@ -19,6 +19,7 @@ commands = stestr run {posargs} ...@@ -19,6 +19,7 @@ commands = stestr run {posargs}
[testenv:integration] [testenv:integration]
; Warning running integration tests will make changes to your docker system! ; Warning running integration tests will make changes to your docker system!
; These tests should only be run by the integration-test docker container.
passenv = TANGO_HOST passenv = TANGO_HOST
setenv = TESTS_DIR=./integration_test setenv = TESTS_DIR=./integration_test
commands = commands =
......
...@@ -27,4 +27,3 @@ services: ...@@ -27,4 +27,3 @@ services:
- --strict - --strict
- -- - --
- tox -e integration - tox -e integration
restart: on-failure
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment