blob: ace295cfa3773f32561281df278845fc070b99a6 [file] [log] [blame]
Harald Welte900d01a2019-08-13 13:27:51 +02001module SGSN_Tests_Iu {
2
3import from Osmocom_Types all;
4
5import from SGSN_Tests all;
6
7import from RAN_Adapter all;
8import from RAN_Emulation all;
9import from RANAP_Templates all;
10import from RANAP_PDU_Descriptions all;
11import from RANAP_IEs all;
12
13
14private function f_TC_iu_attach(charstring id) runs on BSSGP_ConnHdlr {
15 var PdpActPars apars := valueof(t_PdpActPars(mp_ggsn_ip));
16
17 /* first perform regular attach */
18 f_gmm_attach(umts_aka_challenge := true, force_gsm_sres := false, gb_idx := 3);
19 setverdict(pass);
20}
21testcase TC_iu_attach() runs on test_CT {
22 /* MS -> SGSN: Attach Request IMSI
23 * MS <- SGSN: Identity Request IMEI
24 * MS -> SGSN: Identity Response IMEI
25 * MS <- SGSN: Auth Request
26 * MS -> SGSN: Auth Response
27 * MS <- SGSN: Attach Accept
28 * MS -> SGSN: Attach Complete
29 */
30 var BSSGP_ConnHdlr vc_conn;
31 f_init();
32 f_sleep(1.0);
33 vc_conn := f_start_handler(refers(f_TC_iu_attach), testcasename(), g_gb, 1001);
34 vc_conn.done;
35 f_cleanup();
36}
37
38
39
40control {
41 execute( TC_iu_attach() );
42}
43
44
45}