summaryrefslogtreecommitdiffstats
path: root/sgsn/SGSN_Tests.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'sgsn/SGSN_Tests.ttcn')
-rw-r--r--sgsn/SGSN_Tests.ttcn14
1 files changed, 14 insertions, 0 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index c147b84..3abff8c 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -18,6 +18,9 @@ import from GSUP_Emulation all;
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";
@@ -38,6 +41,8 @@ type component test_CT {
/* 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_gsup(charstring id) runs on test_CT {
}
}
+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 @@ function f_init() runs on test_CT {
f_init_gb(g_gb[0]);
f_init_gsup("SGSN_Test");
+ f_init_vty();
}
type function void_fn(charstring id) runs on BSSGP_ConnHdlr;