pcu: add test TC_paging_pch_timeout
Related: SYS#4878
Change-Id: I8a8a912908f42d16dc04e2abe8ee4117f08bc672
diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index f77c4c1..ada9ae3 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -3241,6 +3241,28 @@
f_shutdown(__BFILE__, __LINE__, final := true);
}
+testcase TC_paging_pch_timeout() runs on RAW_PCU_Test_CT {
+ /* Initialize the PCU interface abstraction */
+ f_init_raw(testcasename());
+
+ /* Set T3113 to 1s to shorten the test duration */
+ f_vty_config2(PCUVTY, {"pcu"}, "timer T3113 1");
+
+ /* Reset stats and send paging PS request */
+ f_tc_paging_ps_from_sgsn(mp_gb_cfg.bvc[0].bvci);
+
+ /* Verify that counter increases when T3113 times out (MS did not start
+ * TBF to respond to paging). */
+ f_sleep(1.2);
+ var StatsDExpects expect := {
+ { name := "TTCN3.bts.0.pch.requests.timeout", mtype := "c", min := 1, max := 1 }
+ };
+ f_statsd_expect(expect);
+
+ f_vty_config2(PCUVTY, {"pcu"}, "timer T3113 default");
+ f_shutdown(__BFILE__, __LINE__, final := true);
+}
+
/* Verify osmo-pcu handles DL UNIT_DATA from SGSN with IMSI IE correctly. See OS#4729 */
testcase TC_bssgp_dl_unitdata_with_valid_imsi() runs on RAW_PCU_Test_CT {
var RlcmacDlBlock dl_block;
@@ -5968,6 +5990,9 @@
execute( TC_paging_ps_from_sgsn_sign_ptmsi() );
execute( TC_paging_ps_from_sgsn_sign() );
execute( TC_paging_ps_from_sgsn_ptp() );
+ if (mp_osmo_pcu_newer_than_0_9_0) {
+ execute( TC_paging_pch_timeout() );
+ }
execute( TC_paging_cs_multi_ms_imsi_tmsi() );
execute( TC_paging_cs_multi_ms_imsi() );
execute( TC_paging_cs_multi_ms_tmsi() );