diff options
Diffstat (limited to 'openbsc/tests/ctrl_test_runner.py')
-rw-r--r-- | openbsc/tests/ctrl_test_runner.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/tests/ctrl_test_runner.py b/openbsc/tests/ctrl_test_runner.py index 9e56457ca..21850e348 100644 --- a/openbsc/tests/ctrl_test_runner.py +++ b/openbsc/tests/ctrl_test_runner.py @@ -561,6 +561,18 @@ class TestCtrlNAT(TestCtrlBase): self.assertEquals(r['var'], 'net') self.assertEquals(r['value'], None) + def testAccessListManagement(self): + r = self.do_set("net.0.add.allow.access-list.404", "abc") + self.assertEquals(r['mtype'], 'ERROR') + + r = self.do_set("net.0.add.allow.access-list.bla", "^234$") + self.assertEquals(r['mtype'], 'SET_REPLY') + self.assertEquals(r['var'], 'net.0.add.allow.access-list.bla') + self.assertEquals(r['value'], 'IMSI allow added to access list') + + # TODO.. find a way to actually see if this rule has been + # added. e.g. by implementing a get for the list. + class TestCtrlSGSN(TestCtrlBase): def ctrl_command(self): return ["./src/gprs/osmo-sgsn", "-c", |