Change in osmo-msc[master]: add test_nodes.vty transcript test

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Dec 5 19:35:14 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/12127 )

Change subject: add test_nodes.vty transcript test
......................................................................

add test_nodes.vty transcript test

It needs to work whether SMPP,Iu are enable or disabled, hence a bit more
wildcarding than one might expect.

Change-Id: I3a8c50d8d555b6b948d97d6412e17594ee439de0
---
M tests/Makefile.am
A tests/test_nodes.vty
2 files changed, 107 insertions(+), 1 deletion(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved
  Stefan Sperling: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/tests/Makefile.am b/tests/Makefile.am
index a6a4011..dc5194c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -34,6 +34,7 @@
 	vty_test_runner.py \
 	ctrl_test_runner.py \
 	smpp_test_runner.py \
+	test_nodes.vty \
 	$(NULL)
 
 TESTSUITE = $(srcdir)/testsuite
@@ -66,7 +67,11 @@
 # pass -u to vty_script_runner.py by doing:
 #   make vty-transcript-test U=-u
 vty-transcript-test:
-	echo "No vty-transcript-test exists yet"
+	osmo_verify_transcript_vty.py -v \
+		-n OsmoMSC -p 4254 \
+		-r "$(top_builddir)/src/osmo-msc/osmo-msc -c $(top_srcdir)/doc/examples/osmo-msc/osmo-msc.cfg" \
+		$(U) $(srcdir)/*.vty
+	rm -f $(builddir)/sms.db
 
 # don't run multiple tests concurrently so that the ports don't conflict
 vty-test:
diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty
new file mode 100644
index 0000000..e03ed00
--- /dev/null
+++ b/tests/test_nodes.vty
@@ -0,0 +1,101 @@
+OsmoMSC> enable
+OsmoMSC# configure terminal
+OsmoMSC(config)# list
+...
+  network
+  msc
+  mncc-int
+  hlr
+...
+
+OsmoMSC(config)# network
+OsmoMSC(config-net)# list
+...
+  network country code <1-999>
+  mobile network code <0-999>
+  short name NAME
+  long name NAME
+  encryption a5 <0-3> [<0-3>] [<0-3>] [<0-3>]
+  authentication (optional|required)
+  rrlp mode (none|ms-based|ms-preferred|ass-preferred)
+  mm info (0|1)
+  timezone <-19-19> (0|15|30|45)
+  timezone <-19-19> (0|15|30|45) <0-2>
+  no timezone
+  periodic location update <6-1530>
+  no periodic location update
+
+OsmoMSC(config-net)# exit
+OsmoMSC(config)# msc
+OsmoMSC(config-msc)# list
+...
+  assign-tmsi
+  mncc-guard-timeout <0-255>
+  no assign-tmsi
+  auth-tuple-max-reuse-count <-1-2147483647>
+  auth-tuple-reuse-on-error (0|1)
+  cs7-instance-a <0-15>
+  cs7-instance-iu <0-15>
+  paging response-timer (default|<1-65535>)
+  emergency-call route-to-msisdn MSISDN
+  mgw local-ip A.B.C.D
+  mgw local-port <0-65535>
+  mgw remote-ip A.B.C.D
+  mgw remote-port <0-65535>
+  mgw endpoint-range <1-65534> <1-65534>
+  mgw bts-base <0-65534>
+...
+
+OsmoMSC(config-msc)# exit
+OsmoMSC(config)# mncc-int
+OsmoMSC(config-mncc-int)# list
+...
+  default-codec tch-f (fr|efr|amr)
+  default-codec tch-h (hr|amr)
+
+OsmoMSC(config-mncc-int)# exit
+OsmoMSC(config)# hlr
+OsmoMSC(config-hlr)# list
+...
+  remote-ip A.B.C.D
+  remote-port <1-65535>
+
+OsmoMSC(config-hlr)# exit
+OsmoMSC(config)# exit
+OsmoMSC# configure terminal
+OsmoMSC(config)# network
+OsmoMSC(config-net)# end
+OsmoMSC# disable
+OsmoMSC> enable
+
+OsmoMSC# ! Punching some '...' holes because of optional SMPP, Iu
+OsmoMSC# show running-config
+...
+network
+ network country code 001
+ mobile network code 01
+ short name OsmoMSC
+ long name OsmoMSC
+ encryption a5 0
+ authentication optional
+ rrlp mode none
+ mm info 1
+ periodic location update 30
+msc
+ mncc-guard-timeout 180
+ assign-tmsi
+ cs7-instance-a 0
+...
+ auth-tuple-max-reuse-count 3
+ auth-tuple-reuse-on-error 1
+ mgw local-port 2728
+ mgw remote-ip 10.23.24.1
+ mgw remote-port 2427
+mncc-int
+ default-codec tch-f fr
+ default-codec tch-h hr
+...
+hlr
+ remote-ip 127.0.0.1
+ remote-port 4222
+end

-- 
To view, visit https://gerrit.osmocom.org/12127
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3a8c50d8d555b6b948d97d6412e17594ee439de0
Gerrit-Change-Number: 12127
Gerrit-PatchSet: 6
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Stefan Sperling <stsp at stsp.name>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181205/52426b52/attachment.htm>


More information about the gerrit-log mailing list