summaryrefslogtreecommitdiffstats
path: root/sgsn
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-07-31 04:20:11 +0200
committerAlexander Couzens <lynxis@fe80.eu>2018-09-04 18:24:52 +0200
commitbe837bdd69b7b0c57114ba270fcabd961a66064d (patch)
tree7cc8f3bef6a788fa98e9e4117b2aadcc4b225708 /sgsn
parent90fe6a2bf79b4a9d9b2c30cb7f1c1602690d8ec1 (diff)
sgsn: introduce TC_attach_rau_a_b
MS <-> SGSN: Successful Attach MS -> SGSN: Routing Area _a_ Update Request MS <- SGSN: Routing Area _a_ Update Accept MS -> SGSN: Routing Area _b_ Update Request MS <- SGSN: Routing Area _b_ Update Accept MS -> SGSN: Detach (PowerOff) Change-Id: Ie636778628c216e315bd6f5bc11e0e5bd9c218a5
Diffstat (limited to 'sgsn')
-rw-r--r--sgsn/SGSN_Tests.ttcn34
1 files changed, 34 insertions, 0 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index 497e45f..edc19bc 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -1899,6 +1899,39 @@ testcase TC_attach_rau_a_a() runs on test_CT {
vc_conn.done;
}
+private function f_TC_attach_rau_a_b(charstring id) runs on BSSGP_ConnHdlr {
+ var BssgpDecoded bd;
+
+ f_TC_attach(id);
+
+ log("attach complete sending rau");
+ f_routing_area_update(g_pars.ra, 0);
+
+ log("rau complete unregistering");
+ f_bssgp_client_unregister(g_pars.imsi);
+ f_bssgp_client_register(g_pars.imsi, g_pars.tlli, g_pars.bssgp_cell_id[1], BSSGP_PROC[1]);
+
+ log("sending second RAU via different RA");
+ f_routing_area_update(f_cellid_to_RAI(g_pars.bssgp_cell_id[1]), 1);
+
+ f_detach_mo(c_GMM_DTT_MO_GPRS, true, true, 1);
+}
+
+testcase TC_attach_rau_a_b() runs on test_CT {
+ /* MS <-> SGSN: Successful Attach
+ * MS -> SGSN: Routing Area _a_ Update Request
+ * MS <- SGSN: Routing Area _a_ Update Accept
+ * MS -> SGSN: Routing Area _b_ Update Request
+ * MS <- SGSN: Routing Area _b_ Update Accept
+ * MS -> SGSN: Detach (PowerOff)
+ */
+ var BSSGP_ConnHdlr vc_conn;
+ f_init();
+ f_sleep(1.0);
+ vc_conn := f_start_handler(refers(f_TC_attach_rau_a_b), testcasename(), g_gb, 38);
+ vc_conn.done;
+}
+
control {
execute( TC_attach() );
execute( TC_attach_mnc3() );
@@ -1925,6 +1958,7 @@ control {
execute( TC_rau_unknown() );
execute( TC_attach_rau() );
execute( TC_attach_rau_a_a() );
+ execute( TC_attach_rau_a_b() );
execute( TC_detach_unknown_nopoweroff() );
execute( TC_detach_unknown_poweroff() );
execute( TC_detach_nopoweroff() );