diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-06-25 09:08:02 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-31 16:36:13 +0200 |
commit | b718ad397e9edc9311d960a93feb6bc3a5bbb2a7 (patch) | |
tree | b74bd61a7749334441f5f00d25446163b05c9367 /openbsc/tests | |
parent | aa93bac34b7d99319bd8341bd030ce148c585553 (diff) |
nat: Add a no number-rewrite command and call it through a VTY test
The test is just testing the invocation but does not verify that
the side effect of this call. It is good enought for now.
Diffstat (limited to 'openbsc/tests')
-rw-r--r-- | openbsc/tests/vty_test_runner.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py index 778cde04c..456573d74 100644 --- a/openbsc/tests/vty_test_runner.py +++ b/openbsc/tests/vty_test_runner.py @@ -96,8 +96,12 @@ class TestVTYNAT(TestVTYBase): def vty_app(self): return (4244, "src/osmo-bsc_nat/osmo-bsc_nat", "OsmoBSCNAT", "nat") - def testMoo(self): - pass + def testRewriteNoRewrite(self): + self.vty.enable() + res = self.vty.command("configure terminal") + res = self.vty.command("nat") + res = self.vty.command("number-rewrite rewrite.cfg") + res = self.vty.command("no number-rewrite") def add_nat_test(suite, workdir): |