diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-04-11 13:02:36 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2022-04-11 16:50:41 +0000 |
commit | 5b0327b20af9da895bff3035837de4da5c4da9bd (patch) | |
tree | 515586d63a720c3aeb4dd61947ea726f85de7bec | |
parent | bb5f45fb582f6deb1f0233c1dc078bdd4c1cbbf2 (diff) |
pgw: Don't expect Gx messages during delete of unknwon session
Same approach as implemented for GGSN_Tests in
10ec96e24b7d7fc8dd4fe6e023cc06514f53c66e.
Change-Id: I7ad1fcae612a562d6643f9f01db3a4e7941f3666
-rw-r--r-- | pgw/PGW_Tests.ttcn | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pgw/PGW_Tests.ttcn b/pgw/PGW_Tests.ttcn index 2b744188..775b904a 100644 --- a/pgw/PGW_Tests.ttcn +++ b/pgw/PGW_Tests.ttcn @@ -378,7 +378,8 @@ private function f_create_session() runs on PGW_Session_CT { /* delete the session from the PGW */ private function f_delete_session(template (omit) OCT1 tx_cause := omit, template (present) OCT4 exp_teid, - template (present) OCT1 exp_cause) runs on PGW_Session_CT { + template (present) OCT1 exp_cause, + boolean expect_diameter := true) runs on PGW_Session_CT { var template (value) FullyQualifiedTEID fteid_c_ie fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPC, g_teic, 0, f_inet_addr(mp_local_hostname_c), omit); @@ -388,7 +389,7 @@ private function f_delete_session(template (omit) OCT1 tx_cause := omit, teid_list := {}, bearer_id := 1); GTP2.send(g2c); - if (DIAMETER_PROC.checkstate("Connected")) { + if (DIAMETER_PROC.checkstate("Connected") and expect_diameter) { as_DIA_CCR(TERMINATION_REQUEST); } alt { @@ -564,7 +565,7 @@ testcase TC_createSession_deleteSession() runs on PGW_Test_CT { private function f_TC_deleteSession_unknown() runs on PGW_Session_CT { g_teic := f_gtp2_allocate_teid(); g_teic_remote := f_rnd_octstring(4); - f_delete_session(omit, '00000000'O, '40'O /* Context Unknown */); + f_delete_session(omit, '00000000'O, '40'O /* Context Unknown */, false); setverdict(pass); } testcase TC_deleteSession_unknown() runs on PGW_Test_CT { |