aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vty_test_runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vty_test_runner.py')
-rwxr-xr-xtests/vty_test_runner.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/vty_test_runner.py b/tests/vty_test_runner.py
index 73dd3996..19eaf280 100755
--- a/tests/vty_test_runner.py
+++ b/tests/vty_test_runner.py
@@ -266,6 +266,15 @@ class TestVTYSGSN(TestVTYBase):
self.assert_(res.find(" cdr interval 900") > 0)
self.assertEquals(res.find(" cdr interval 600"), -1)
+ def testVtyTimers(self):
+ self.vty.enable()
+ self.assertTrue(self.vty.verify('configure terminal', ['']))
+ self.assertEquals(self.vty.node(), 'config')
+ self.assertTrue(self.vty.verify('sgsn', ['']))
+ self.assertEquals(self.vty.node(), 'config-sgsn')
+
+ for t in [3312, 3322, 3350, 3360, 3370, 3313, 3314, 3316, 3385, 3395, 3397]:
+ self.assertTrue(self.vty.verify('timer t%d 10' % t, ['']))
def add_gbproxy_test(suite, workdir):
if not os.path.isfile(os.path.join(workdir, "src/gprs/osmo-gbproxy")):