summaryrefslogtreecommitdiffstats
path: root/openbsc/tests/ctrl_test_runner.py
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-11-21 10:20:29 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-11-21 10:24:18 +0100
commitb1461152e6945a747ef2d65ee5908cc5d59acbbd (patch)
tree6ea553fdd8e794384315e18778b07387b0bdcd69 /openbsc/tests/ctrl_test_runner.py
parentb1edf7b64f6c05932c83b4d31b1127f2a833601e (diff)
bsc: Allow to apply configuration for an individual BTS
This will drop a specific IP based BTS. It will lead to a re-connect of the BTS and the new settings will be applied then. Fixes: SYS#737
Diffstat (limited to 'openbsc/tests/ctrl_test_runner.py')
-rw-r--r--openbsc/tests/ctrl_test_runner.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/tests/ctrl_test_runner.py b/openbsc/tests/ctrl_test_runner.py
index aae9df5cc..f32d1f841 100644
--- a/openbsc/tests/ctrl_test_runner.py
+++ b/openbsc/tests/ctrl_test_runner.py
@@ -411,6 +411,15 @@ class TestCtrlNITB(TestCtrlBase):
self.assertEquals(r['var'], 'subscriber-list-active-v1')
self.assertEquals(r['value'], None)
+ def testApplyConfiguration(self):
+ r = self.do_get('bts.0.apply-configuration')
+ self.assertEquals(r['mtype'], 'ERROR')
+ self.assertEquals(r['error'], 'Write only attribute')
+
+ r = self.do_set('bts.0.apply-configuration', '1')
+ self.assertEquals(r['mtype'], 'SET_REPLY')
+ self.assertEquals(r['value'], 'Tried to drop the BTS')
+
class TestCtrlNAT(TestCtrlBase):
def ctrl_command(self):