aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/vty_test_runner.py
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-09-02 13:17:17 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-02 20:25:51 +0200
commit4c9dff5d8ecf99cdf3f354e3df38bed4cdc2be9c (patch)
tree5e7cb086f29b16f832e97ea39407e8645138ba51 /openbsc/tests/vty_test_runner.py
parent0ae92a950a321835c6693e381e131df38febab2a (diff)
vty: Rename 'mgcp-through-msc-ipa' command to 'use-msc-ipa-for-mgcp'
Currently the 'mgcp' command fails in the 'config-nat' node, because it get confused with 'mgcp-through-msc-ipa' which is executed instead because of the prefix based command selection. Thus the latter command is renamed by this patch to avoid the common prefix. The workaround in the test suite is removed.
Diffstat (limited to 'openbsc/tests/vty_test_runner.py')
-rw-r--r--openbsc/tests/vty_test_runner.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 5af59a9c3..15a73ce7e 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -264,13 +264,13 @@ class TestVTYNAT(TestVTYGenericBSC):
self.vty.command('mgcp')
self.vty.command('nat')
self.assertEquals(self.vty.node(), 'config-nat')
- self.vty.command('line vty')
- self.assertEquals(self.vty.node(), 'config-line')
+ self.vty.command('mgcp')
+ self.assertEquals(self.vty.node(), 'config-mgcp')
self.vty.command('nat')
self.assertEquals(self.vty.node(), 'config-nat')
self.vty.command('bsc 0')
- self.vty.command('line vty')
- self.assertEquals(self.vty.node(), 'config-line')
+ self.vty.command('mgcp')
+ self.assertEquals(self.vty.node(), 'config-mgcp')
def testRewriteNoRewrite(self):
self.vty.enable()