gbproxy: Use g_parse.sgsn_idx for paging
The ConnHdlr test stores the sgsn_idx in g_pars. Use that in the paging tests to the correct SGSN pages the MS. This is required for the paging reject test to pass. Change-Id: I34cfc047b36cd6c139a78a7f171a9a99cc974a79 Related: OS#4951
This commit is contained in:
parent
193e1a091a
commit
4332044c95
|
@ -1621,7 +1621,7 @@ private function f_send_paging_ps_rej(boolean use_sig := true, integer pcu_idx :
|
||||||
private function f_TC_paging_ps_sig_bss(charstring id) runs on BSSGP_ConnHdlr
|
private function f_TC_paging_ps_sig_bss(charstring id) runs on BSSGP_ConnHdlr
|
||||||
{
|
{
|
||||||
/* we expect the paging to arrive on all three NSE */
|
/* we expect the paging to arrive on all three NSE */
|
||||||
f_send_paging_ps_exp_multi(ts_BssgpP4BssArea, 0, {0, 1, 2});
|
f_send_paging_ps_exp_multi(ts_BssgpP4BssArea, g_pars.sgsn_idx, {0, 1, 2});
|
||||||
}
|
}
|
||||||
testcase TC_paging_ps_sig_bss() runs on test_CT {
|
testcase TC_paging_ps_sig_bss() runs on test_CT {
|
||||||
f_init();
|
f_init();
|
||||||
|
@ -1633,12 +1633,12 @@ testcase TC_paging_ps_sig_bss() runs on test_CT {
|
||||||
private function f_TC_paging_ps_sig_lac(charstring id) runs on BSSGP_ConnHdlr
|
private function f_TC_paging_ps_sig_lac(charstring id) runs on BSSGP_ConnHdlr
|
||||||
{
|
{
|
||||||
/* The first LAC (13135) is shared by all three NSEs */
|
/* The first LAC (13135) is shared by all three NSEs */
|
||||||
f_send_paging_ps_exp_multi(ts_BssgpP4LAC(pcu_bvc_cfg[0].cell_id.ra_id.lai), 0, {0, 1, 2});
|
f_send_paging_ps_exp_multi(ts_BssgpP4LAC(pcu_bvc_cfg[0].cell_id.ra_id.lai), g_pars.sgsn_idx, {0, 1, 2});
|
||||||
/* Reset state */
|
/* Reset state */
|
||||||
g_roi := {};
|
g_roi := {};
|
||||||
/* Make LAC (13300) available on pcu index 2 */
|
/* Make LAC (13300) available on pcu index 2 */
|
||||||
f_connect_to_pcu_bvc(port_idx := 2, nse_idx := 2, bvc_idx := 1);
|
f_connect_to_pcu_bvc(port_idx := 2, nse_idx := 2, bvc_idx := 1);
|
||||||
f_send_paging_ps_exp_multi(ts_BssgpP4LAC(pcu_bvc_cfg[2].cell_id.ra_id.lai), 0, {2});
|
f_send_paging_ps_exp_multi(ts_BssgpP4LAC(pcu_bvc_cfg[2].cell_id.ra_id.lai), g_pars.sgsn_idx, {2});
|
||||||
}
|
}
|
||||||
testcase TC_paging_ps_sig_lac() runs on test_CT {
|
testcase TC_paging_ps_sig_lac() runs on test_CT {
|
||||||
f_init();
|
f_init();
|
||||||
|
@ -1665,14 +1665,14 @@ testcase TC_paging_ps_sig_lac_unknown() runs on test_CT {
|
||||||
private function f_TC_paging_ps_sig_rac(charstring id) runs on BSSGP_ConnHdlr
|
private function f_TC_paging_ps_sig_rac(charstring id) runs on BSSGP_ConnHdlr
|
||||||
{
|
{
|
||||||
/* Only PCU index 0 has a matching BVC with the RA ID */
|
/* Only PCU index 0 has a matching BVC with the RA ID */
|
||||||
f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[0].cell_id.ra_id), 0, {0});
|
f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[0].cell_id.ra_id), g_pars.sgsn_idx, {0});
|
||||||
g_roi := {};
|
g_roi := {};
|
||||||
/* PCU index 1 and 2 have a matching BVC with the RA ID */
|
/* PCU index 1 and 2 have a matching BVC with the RA ID */
|
||||||
f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[2].cell_id.ra_id), 0, {1, 2});
|
f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[2].cell_id.ra_id), g_pars.sgsn_idx, {1, 2});
|
||||||
g_roi := {};
|
g_roi := {};
|
||||||
/* PCU index 2 has two matching BVCs with the RA ID */
|
/* PCU index 2 has two matching BVCs with the RA ID */
|
||||||
f_connect_to_pcu_bvc(port_idx := 2, nse_idx := 2, bvc_idx := 1);
|
f_connect_to_pcu_bvc(port_idx := 2, nse_idx := 2, bvc_idx := 1);
|
||||||
f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[2].cell_id.ra_id), 0, {2});
|
f_send_paging_ps_exp_multi(ts_BssgpP4RAC(pcu_bvc_cfg[2].cell_id.ra_id), g_pars.sgsn_idx, {2});
|
||||||
}
|
}
|
||||||
testcase TC_paging_ps_sig_rac() runs on test_CT {
|
testcase TC_paging_ps_sig_rac() runs on test_CT {
|
||||||
f_init();
|
f_init();
|
||||||
|
@ -1701,7 +1701,7 @@ testcase TC_paging_ps_sig_rac_unknown() runs on test_CT {
|
||||||
/* PS-PAGING on SIG-BVC for BVCI (one cell) */
|
/* PS-PAGING on SIG-BVC for BVCI (one cell) */
|
||||||
private function f_TC_paging_ps_sig_bvci(charstring id) runs on BSSGP_ConnHdlr
|
private function f_TC_paging_ps_sig_bvci(charstring id) runs on BSSGP_ConnHdlr
|
||||||
{
|
{
|
||||||
f_send_paging_ps_exp_multi(ts_BssgpP4Bvci(pcu_bvc_cfg[0].bvci), 0, {0});
|
f_send_paging_ps_exp_multi(ts_BssgpP4Bvci(pcu_bvc_cfg[0].bvci), g_pars.sgsn_idx, {0});
|
||||||
}
|
}
|
||||||
testcase TC_paging_ps_sig_bvci() runs on test_CT {
|
testcase TC_paging_ps_sig_bvci() runs on test_CT {
|
||||||
f_init();
|
f_init();
|
||||||
|
@ -1720,7 +1720,7 @@ testcase TC_paging_ps_sig_bvci_imsi() runs on test_CT {
|
||||||
private function f_TC_paging_ps_reject_sig_bvci(charstring id) runs on BSSGP_ConnHdlr
|
private function f_TC_paging_ps_reject_sig_bvci(charstring id) runs on BSSGP_ConnHdlr
|
||||||
{
|
{
|
||||||
/* first send the PS-PAGING from SGSN -> PCU */
|
/* first send the PS-PAGING from SGSN -> PCU */
|
||||||
f_send_paging_ps_exp_multi(ts_BssgpP4Bvci(pcu_bvc_cfg[0].bvci), 0, {0});
|
f_send_paging_ps_exp_multi(ts_BssgpP4Bvci(pcu_bvc_cfg[0].bvci), g_pars.sgsn_idx, {0});
|
||||||
/* then simulate the PS-PAGING-REJECT from the PCU */
|
/* then simulate the PS-PAGING-REJECT from the PCU */
|
||||||
f_send_paging_ps_rej(use_sig:=true);
|
f_send_paging_ps_rej(use_sig:=true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue