pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43298?usp=email )
Change subject: hnbgw: Send correct recovery timestamp in PFCP Assoc Setup Resp ......................................................................
hnbgw: Send correct recovery timestamp in PFCP Assoc Setup Resp
Change-Id: If57d58edbb4f4da529c6c189a84c25b153ac3326 --- M hnbgw/HNBGW_Tests.ttcn 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: osmith: Looks good to me, approved Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve
diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn index fc33521..f43a738 100644 --- a/hnbgw/HNBGW_Tests.ttcn +++ b/hnbgw/HNBGW_Tests.ttcn @@ -263,6 +263,7 @@ private function f_pfcp_wait_assoc_setup_req(boolean fail_timeout := true, boolean fail_rx_others := true, float wait_timeout := 16.0) runs on PFCP_ConnHdlr { var PDU_PFCP m; timer T := wait_timeout; + var integer rts := f_PFCPEM_get_recovery_timestamp(); /* ask PFCPEM to route all PDUs to us */ f_PFCPEM_subscribe_bcast();
@@ -270,7 +271,7 @@ alt { [] PFCP.receive(tr_PFCP_Assoc_Setup_Req()) -> value m { PFCP.send(ts_PFCP_Assoc_Setup_Resp(m.sequence_number, ts_PFCP_Node_ID_fqdn(mp_pfcp_upf_node_id), - ts_PFCP_Cause(REQUEST_ACCEPTED), 1234)); + ts_PFCP_Cause(REQUEST_ACCEPTED), rts)); setverdict(pass); } [fail_rx_others] PFCP.receive(PDU_PFCP:?) -> value m { @@ -328,7 +329,7 @@ [not rx_assoc_setup_req] PFCP.receive(tr_PFCP_Assoc_Setup_Req()) -> value m { rx_assoc_setup_req := true; PFCP.send(ts_PFCP_Assoc_Setup_Resp(m.sequence_number, ts_PFCP_Node_ID_fqdn(mp_pfcp_upf_node_id), - ts_PFCP_Cause(REQUEST_ACCEPTED), 1234)); + ts_PFCP_Cause(REQUEST_ACCEPTED), rts)); if (not rx_hb_resp) { repeat; }