From ca4151984c37fa24a97f15aaee43b6d105a43fb3 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 10 Feb 2015 21:55:37 +0100 Subject: ctrl: Add a command to check how many bts are configured This can be used to query how many bts are configured to check if all of them are locked or not. --- openbsc/tests/ctrl_test_runner.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsc/tests/ctrl_test_runner.py') diff --git a/openbsc/tests/ctrl_test_runner.py b/openbsc/tests/ctrl_test_runner.py index 502da7657..160333d19 100644 --- a/openbsc/tests/ctrl_test_runner.py +++ b/openbsc/tests/ctrl_test_runner.py @@ -453,6 +453,12 @@ class TestCtrlNITB(TestCtrlBase): def ctrl_app(self): return (4249, "./src/osmo-nitb/osmo-nitb", "OsmoBSC", "nitb") + def testNumberOfBTS(self): + r = self.do_get('number-of-bts') + self.assertEquals(r['mtype'], 'GET_REPLY') + self.assertEquals(r['var'], 'number-of-bts') + self.assertEquals(r['value'], '1') + def testSubscriberAddRemove(self): r = self.do_set('subscriber-modify-v1', '2620345,445566') self.assertEquals(r['mtype'], 'SET_REPLY') -- cgit v1.2.3