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
Review at https://gerrit.osmocom.org/6552
sgsn: Integrate VTY access into SGSN_Tests
Change-Id: I661963368a285ab9358d7f4845b42dc70c35a553
---
M sgsn/SGSN_Tests.default
M sgsn/SGSN_Tests.ttcn
2 files changed, 15 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/52/6552/1
diff --git a/sgsn/SGSN_Tests.default b/sgsn/SGSN_Tests.default
index 6d8822b..256c9c9 100644
--- a/sgsn/SGSN_Tests.default
+++ b/sgsn/SGSN_Tests.default
@@ -4,7 +4,7 @@
[TESTPORT_PARAMETERS]
*.SGSNVTY.CTRL_MODE := "client"
*.SGSNVTY.CTRL_HOSTNAME := "127.0.0.1"
-*.SGSNVTY.CTRL_PORTNUM := "4254"
+*.SGSNVTY.CTRL_PORTNUM := "4245"
*.SGSNVTY.CTRL_LOGIN_SKIPPED := "yes"
*.SGSNVTY.CTRL_DETECT_SERVER_DISCONNECTED := "yes"
*.SGSNVTY.CTRL_READMODE := "buffered"
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index ce7ed96..3a71fe9 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -18,6 +18,9 @@
import from GSUP_Types all;
import from IPA_Emulation all;
+import from TELNETasp_PortType all;
+import from Osmocom_VTY_Functions all;
+
modulepar {
/* IP/port on which we run our internal GSUP/HLR emulation */
charstring mp_hlr_ip := "127.0.0.1";
@@ -37,6 +40,8 @@
var IPA_Emulation_CT vc_GSUP_IPA;
/* only to get events from IPA underneath GSUP */
port IPA_CTRL_PT GSUP_IPA_EVENT;
+
+ port TELNETasp_PT SGSNVTY;
var boolean g_initialized := false;
};
@@ -111,6 +116,14 @@
}
}
+private function f_init_vty() runs on test_CT {
+ map(self:SGSNVTY, system:SGSNVTY);
+ f_vty_set_prompts(SGSNVTY);
+ f_vty_transceive(SGSNVTY, "enable");
+ f_vty_config(SGSNVTY, "sgsn", "auth-policy remote");
+}
+
+
function f_init() runs on test_CT {
if (g_initialized == true) {
return;
@@ -132,6 +145,7 @@
f_init_gb(g_gb[0]);
f_init_gsup("SGSN_Test");
+ f_init_vty();
}
type function void_fn(charstring id) runs on BSSGP_ConnHdlr;
--
To view, visit https://gerrit.osmocom.org/6552
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I661963368a285ab9358d7f4845b42dc70c35a553
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>