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
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 @@
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 @@
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() );