neels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/32990 )
Change subject: add separate cfg file only for VTY tests ......................................................................
add separate cfg file only for VTY tests
Instead of doc/examples/osmo-hnbgw.cfg, use a separate location tests/osmo-hnbgw-vty-test.cfg for VTY transcript tests, and add a bunch of SCCP address book entries that upcoming VTY tests will use.
Declaring address book entries within transcript tests is possible, but cluttered with node 'exit' and VTY prompts -- these addresses are much easier to read and maintain in form of a cfg file.
First user of these address book entries will be cnpool.vty in I5479eded786ec26062d49403a8be12967f113cdb
Related: SYS#6412 Change-Id: Idcdf0e8660e8180fbe02282bc94e623ff89e848a --- M tests/Makefile.am A tests/osmo-hnbgw-vty-test.cfg 2 files changed, 63 insertions(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve pespin: Looks good to me, approved
diff --git a/tests/Makefile.am b/tests/Makefile.am index 0225d7e..58d6592 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -24,6 +24,7 @@ testsuite.at \ $(srcdir)/package.m4 \ $(TESTSUITE) \ + osmo-hnbgw-vty-test.cfg \ osmo-hnbgw.vty \ $(NULL)
@@ -53,7 +54,7 @@ osmo_verify_transcript_vty.py -v \ -n OsmoHNBGW -p 4261 \ -r "$(top_builddir)/src/osmo-hnbgw/osmo-hnbgw \ - -c $(top_srcdir)/doc/examples/osmo-hnbgw/osmo-hnbgw.cfg" \ + -c $(srcdir)/osmo-hnbgw-vty-test.cfg" \ $(U) $(srcdir)/$(VTY_TEST)
check-local: atconfig $(TESTSUITE) diff --git a/tests/osmo-hnbgw-vty-test.cfg b/tests/osmo-hnbgw-vty-test.cfg new file mode 100644 index 0000000..6f9c0b6 --- /dev/null +++ b/tests/osmo-hnbgw-vty-test.cfg @@ -0,0 +1,40 @@ +log stderr + logging filter all 1 + logging color 1 + logging print level 1 + logging print category 1 + logging print category-hex 0 + logging print file basename last + logging print extended-timestamp 1 + logging level set-all notice + +# Define some cs7 address book entries to play with +cs7 instance 0 + sccp-address addr-msc0 + point-code 0.1.0 + sccp-address addr-msc2 + point-code 0.1.2 + sccp-address addr-sgsn3 + point-code 0.2.3 + sccp-address addr-sgsn4 + point-code 0.2.4 + +cs7 instance 1 + sccp-address addr-sgsn0 + point-code 1.2.0 + sccp-address addr-sgsn2 + point-code 1.2.2 + sccp-address addr-msc3 + point-code 1.1.3 + sccp-address addr-msc4 + point-code 1.1.4 + +hnbgw + iuh + local-ip 0.0.0.0 + hnbap-allow-tmsi 1 + mgw 0 + remote-ip 127.0.0.1 + local-port 2729 + remote-port 2427 + reset-endpoint rtpbridge/*