Change in osmo-ttcn3-hacks[master]: sgsn: introduce f_routing_area_update()

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
Tue Aug 14 13:26:48 UTC 2018


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

Change subject: sgsn: introduce f_routing_area_update()
......................................................................

sgsn: introduce f_routing_area_update()

Will be used by future RAU tests

Change-Id: I4064e013f73319f24bb893a9047c8b9eb7d6aac2
---
M sgsn/SGSN_Tests.ttcn
1 file changed, 21 insertions(+), 14 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index 3616a62..336f38e 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -809,20 +809,8 @@
 	/* first perform regular attach */
 	f_TC_attach(id);
 
-	/* then send RAU */
-	BSSGP[0].send(ts_GMM_RAU_REQ(f_mi_get_lv(), GPRS_UPD_T_RA, g_pars.ra, false, omit, omit));
-	alt {
-	[] BSSGP[0].receive(tr_BD_L3_MT(tr_GMM_RAU_ACCEPT)) -> value bd {
-		f_process_rau_accept(bd.l3_mt.msgs.gprs_mm.routingAreaUpdateAccept);
-		BSSGP[0].send(ts_GMM_RAU_COMPL);
-		setverdict(pass);
-		}
-	[] BSSGP[0].receive(tr_BD_L3_MT(tr_GMM_RAU_REJECT)) {
-		setverdict(fail, "Unexpected RAU Reject");
-		mtc.stop;
-		}
-	[] BSSGP[0].receive { repeat; }
-	}
+	f_routing_area_update(g_pars.ra);
+
 }
 testcase TC_attach_rau() runs on test_CT {
 	var BSSGP_ConnHdlr vc_conn;
@@ -1816,6 +1804,25 @@
 	vc_conn.done;
 }
 
+private function f_routing_area_update(RoutingAreaIdentificationV ra, integer bssgp := 0) runs on BSSGP_ConnHdlr {
+	var BssgpDecoded bd;
+
+	/* then send RAU */
+	BSSGP[bssgp].send(ts_GMM_RAU_REQ(f_mi_get_lv(), GPRS_UPD_T_RA, g_pars.ra, false, omit, omit));
+	alt {
+	[] BSSGP[bssgp].receive(tr_BD_L3_MT(tr_GMM_RAU_ACCEPT)) -> value bd {
+		f_process_rau_accept(bd.l3_mt.msgs.gprs_mm.routingAreaUpdateAccept);
+		BSSGP[bssgp].send(ts_GMM_RAU_COMPL);
+		setverdict(pass);
+		}
+	[] BSSGP[bssgp].receive(tr_BD_L3_MT(tr_GMM_RAU_REJECT)) {
+		setverdict(fail, "Unexpected RAU Reject");
+		mtc.stop;
+		}
+	[] BSSGP[bssgp].receive { repeat; }
+	}
+}
+
 control {
 	execute( TC_attach() );
 	execute( TC_attach_mnc3() );

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4064e013f73319f24bb893a9047c8b9eb7d6aac2
Gerrit-Change-Number: 10379
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180814/3c472a7b/attachment.htm>


More information about the gerrit-log mailing list