lynxis lazus has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39260?usp=email )
Change subject: SGSN: remove TC_attach_no_imei_response
......................................................................
SGSN: remove TC_attach_no_imei_response
The SGSN doesn't request the IMEI via Identity Response anymore.
This information is requested via Authentication/Ciphering Req/Resp.
Change-Id: I42dc927513fb54b0fd2d07dda4cf8d4646b9f351
---
M sgsn/SGSN_Tests.ttcn
M sgsn/expected-results.xml
2 files changed, 0 insertions(+), 48 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/60/39260/1
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index 43da288..794d23f 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -1687,52 +1687,6 @@
f_cleanup();
}
-/* Attempt an attach, but loose the Identification Request (IMEI) */
-private function f_TC_attach_no_imei_response(charstring id) runs on BSSGP_ConnHdlr {
- var integer count_req := 0;
- var MobileL3_CommonIE_Types.MobileIdentityLV mi;
-
- f_send_l3(ts_GMM_ATTACH_REQ(f_mi_get_lv(), f_random_RAI(), true, false, omit, omit));
-
- alt {
- [] BSSGP[0].receive(tr_GMM_ATTACH_REJECT(?)) {
- /* break */
- }
- [] BSSGP[0].receive(tr_GMM_ID_REQ('001'B)) {
- mi := valueof(ts_MI_IMSI_LV(g_pars.imsi));
- f_send_l3(ts_GMM_ID_RESP(mi));
- repeat;
- }
- [] BSSGP[0].receive(tr_GMM_ID_REQ('010'B)) {
- /* ignore ID REQ IMEI */
- count_req := count_req + 1;
- repeat;
- }
- }
- if (count_req != 5) {
- setverdict(fail, "Did not received GMM ID Request Type IMEI 5 times!");
- mtc.stop;
- }
- setverdict(pass);
-}
-
-testcase TC_attach_no_imei_response() runs on test_CT {
- /* MS -> SGSN: Attach Request IMSI
- * MS <- SGSN: Identity Request IMSI (optional)
- * MS -> SGSN: Identity Response IMSI (optional)
- * MS <- SGSN: Identity Request IMEI
- * MS -x SGSN: no response
- * MS <- SGSN: re-send: Identity Request IMEI 4x
- * MS <- SGSN: Attach Reject
- */
- var BSSGP_ConnHdlr vc_conn;
- f_init();
- f_sleep(1.0);
- vc_conn := f_start_handler(refers(f_TC_attach_no_imei_response), testcasename(), g_gb,
32, 60.0);
- vc_conn.done;
- f_cleanup();
-}
-
/* Attempt an attach, but loose the Identification Request (IMSI) */
private function f_TC_attach_no_imsi_response(charstring id) runs on BSSGP_ConnHdlr {
var integer count_req := 0;
@@ -3483,7 +3437,6 @@
execute( TC_attach_combined() );
execute( TC_attach_accept_all() );
execute( TC_attach_closed() );
- execute( TC_attach_no_imei_response() );
execute( TC_attach_no_imsi_response() );
execute( TC_attach_closed_add_vty(), 20.0 );
execute( TC_attach_check_subscriber_list(), 20.0 );
diff --git a/sgsn/expected-results.xml b/sgsn/expected-results.xml
index bdd0f29..f901f6d 100644
--- a/sgsn/expected-results.xml
+++ b/sgsn/expected-results.xml
@@ -23,7 +23,6 @@
<testcase classname='SGSN_Tests' name='TC_attach_combined'
time='MASKED'/>
<testcase classname='SGSN_Tests' name='TC_attach_accept_all'
time='MASKED'/>
<testcase classname='SGSN_Tests' name='TC_attach_closed'
time='MASKED'/>
- <testcase classname='SGSN_Tests' name='TC_attach_no_imei_response'
time='MASKED'/>
<testcase classname='SGSN_Tests' name='TC_attach_no_imsi_response'
time='MASKED'/>
<testcase classname='SGSN_Tests' name='TC_attach_closed_add_vty'
time='MASKED'/>
<testcase classname='SGSN_Tests'
name='TC_attach_check_subscriber_list' time='MASKED'/>
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39260?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I42dc927513fb54b0fd2d07dda4cf8d4646b9f351
Gerrit-Change-Number: 39260
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>