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/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21171 )
Change subject: gbproxy: Add test for DL-UNITDATA
......................................................................
gbproxy: Add test for DL-UNITDATA
Change-Id: I96d57cef29dd5e724e66767cc23320a5468a3ea3
---
M gbproxy/GBProxy_Tests.ttcn
1 file changed, 38 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/71/21171/1
diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index 4b20177..ecaca54 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -596,10 +596,48 @@
f_cleanup();
}
+/* send uplink-unitdata of a variety of different sizes; expect it to show up on SGSN */
+private function f_TC_dl_unitdata(charstring id) runs on BSSGP_ConnHdlr {
+ var integer i;
+
+ for (i := 0; i < 1024; i := i+1) {
+ var octetstring payload := f_rnd_octstring(i);
+ var template (value) PDU_BSSGP pdu_tx :=
+ ts_BSSGP_DL_UD(g_pars.tlli, payload, omit, ts_BSSGP_IMSI(g_pars.imsi));
+ /* we cannot use pdu_tx as there are some subtle differences in the length field :/ */
+ var template (present) PDU_BSSGP pdu_rx :=
+ tr_BSSGP_DL_UD(g_pars.tlli, payload, tr_BSSGP_IMSI(g_pars.imsi));
+
+ SGSN[0].send(pdu_tx);
+ alt {
+ [] PCU[0].receive(pdu_rx);
+ /* FIXME: Those should be handled before the ConnHdlr is started */
+ [] PCU[0].receive(BssgpStatusIndication:{*,?,BVC_S_UNBLOCKED}) { repeat; }
+ [] PCU[0].receive {
+ setverdict(fail, "PCU Received unexpected");
+ mtc.stop;
+ }
+ }
+ }
+ setverdict(pass);
+}
+
+testcase TC_dl_unitdata() runs on test_CT
+{
+ var BSSGP_ConnHdlr vc_conn;
+ f_init();
+
+ vc_conn := f_start_handler(refers(f_TC_dl_unitdata), testcasename(), g_pcu, g_sgsn, 2);
+ vc_conn.done;
+ /* TODO: start multiple handlers (UEs) on various cells on same and other NSEs */
+
+ f_cleanup();
+}
control {
execute( TC_BVC_bringup() );
execute( TC_ul_unitdata() );
+ execute( TC_dl_unitdata() );
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21171
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I96d57cef29dd5e724e66767cc23320a5468a3ea3
Gerrit-Change-Number: 21171
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201115/da79557e/attachment.htm>