pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bsc/+/38064?usp=email )


Change subject: tests/vty: Validate allocating all possible BTS
......................................................................

tests/vty: Validate allocating all possible BTS

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



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/64/38064/1

diff --git a/tests/vty_test_runner.py b/tests/vty_test_runner.py
index 50bf6a0..ac9fad3 100755
--- a/tests/vty_test_runner.py
+++ b/tests/vty_test_runner.py
@@ -174,6 +174,26 @@
         res = self.vty.command("show network")
         self.assertTrue(res.startswith('BSC is on Country Code') >= 0)

+    def testTonsOfBTS(self):
+        self.vty.enable()
+        self.assertTrue(self.vty.verify("configure terminal",['']))
+        self.assertTrue(self.vty.verify("network",['']))
+        num_of_bts = 255
+        for i in range(num_of_bts):
+            self.assertTrue(self.vty.verify("bts " + str(i),['']))
+            self.assertEqual(self.vty.node(), 'config-net-bts')
+            self.checkForEndAndExit()
+            self.assertTrue(self.vty.verify("trx 0",['']))
+            self.assertEqual(self.vty.node(), 'config-net-bts-trx')
+            self.checkForEndAndExit()
+            self.assertTrue(self.vty.verify("exit",['']))
+            self.assertEqual(self.vty.node(), 'config-net-bts')
+            self.assertTrue(self.vty.verify("exit",['']))
+            self.assertEqual(self.vty.node(), 'config-net')
+
+        self.assertTrue(self.vty.verify("bts " + str(num_of_bts+1),['% Unknown 
command.']))
+        self.assertEqual(self.vty.node(), 'config-net')
+

 def add_bsc_test(suite, workdir):
     if not os.path.isfile(os.path.join(workdir, "src/osmo-bsc/osmo-bsc")):

--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/38064?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I91603872de1287e8f69edd05a1f485e03909b3b4
Gerrit-Change-Number: 38064
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to