Change in ...osmo-sgsn[master]: tests: Check timers can be set over VTY

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Aug 14 17:59:47 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/15213


Change subject: tests: Check timers can be set over VTY
......................................................................

tests: Check timers can be set over VTY

Change-Id: I486fc2a56e235a539836894d2042c1ca6e514ab9
---
M tests/vty_test_runner.py
1 file changed, 9 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/13/15213/1

diff --git a/tests/vty_test_runner.py b/tests/vty_test_runner.py
index 73dd399..19eaf28 100755
--- a/tests/vty_test_runner.py
+++ b/tests/vty_test_runner.py
@@ -266,6 +266,15 @@
         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")):

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/15213
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I486fc2a56e235a539836894d2042c1ca6e514ab9
Gerrit-Change-Number: 15213
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190814/5ef91019/attachment.htm>


More information about the gerrit-log mailing list