pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44029?usp=email ) Change subject: udm: Fix TC_result_confirmation_inform expectancies ...................................................................... udm: Fix TC_result_confirmation_inform expectancies open5gs-udmd was sending the wrong message, as reported in https://github.com/open5gs/open5gs/issues/4896 The issue has been fixed, to adapt the test to properly trigger the scenario and adapt expectancies. Change-Id: If0c7fcfb673717472345b28139e3b4f6a15ef213 --- M udm/ConnHdlr.ttcn 1 file changed, 39 insertions(+), 7 deletions(-) Approvals: pespin: Looks good to me, approved Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve diff --git a/udm/ConnHdlr.ttcn b/udm/ConnHdlr.ttcn index db16dc8..0a7ab1c 100644 --- a/udm/ConnHdlr.ttcn +++ b/udm/ConnHdlr.ttcn @@ -286,17 +286,16 @@ var template (value) AuthEvent1 auth_event; auth_event := ts_AuthEvent1(nfInstanceId := g_pars.ausf_instance_id, - success := true, + success := false, timeStamp := "2026-10-20T11:58:44.069417+00:00", /* TODO: generate the now() timestamp string */ authType := ts_AuthType1(FiveG_AKA), - servingNetworkName := g_pars.serving_network); + servingNetworkName := g_pars.serving_network, + authRemovalInd := true); http2_tx := f_n13_prepare_individual_auth_event(auth_event); f_http2_adapter_connect_send_udm(http2_tx, idx := http2_tx.conn_id); - /* FIXME: This is probably incorrect, it should send a DELETE, but it's what open5gs-udmd is sending right now... - * See https://github.com/open5gs/open5gs/issues/4896 */ - as_Nudr_DR_put_authentication_status(); + as_Nudr_DR_delete_authentication_status(); /* 3GPP TS 29.503 Table 6.3.3.6.2.1-3 */ http2_exp_rx := @@ -358,7 +357,7 @@ } } -/* 3GPP TS 29.505 5.2.2.3.1 AuthenticationSubscription (PUT) */ +/* 3GPP TS 29.505 5.2.24.3.1 Resource: AuthenticationStatus (PUT) */ function f_tr_Nudr_DR_put_authentication_status() runs on ConnHdlr return template (present) HTTP2_Msg { var template (present) HTTP2_Msg http2_msg; @@ -373,7 +372,7 @@ return http2_msg; } -/* 3GPP TS 29.505 5.2.2 Resource: AuthenticationSubscription */ +/* 3GPP TS 29.505 5.2.24.3.1 Resource: AuthenticationStatus (PUT) */ altstep as_Nudr_DR_put_authentication_status() runs on ConnHdlr { var HTTP2_Msg http2_rx; @@ -391,4 +390,37 @@ } } +/* 3GPP TS 29.505 5.2.24.3.3 Resource: AuthenticationStatus (DELETE) */ +function f_tr_Nudr_DR_delete_authentication_status() +runs on ConnHdlr return template (present) HTTP2_Msg { + var template (present) HTTP2_Msg http2_msg; + var template (present) HTTP2_header_block hb; + var template (present) HTTP2_pseudo_headers pseudo_headers; + var template HTTP2_header_list headers := *; + + pseudo_headers := tr_HTTP2_pseudo_headers_Req(method := "DELETE", + path := tr_Nudr_DR_path_authentication_status(g_pars.imsi_str)); + hb := tr_HTTP2_header_block(pseudo_headers, headers); + http2_msg := tr_HTTP2_Msg(?, ?, hb := hb, body := omit); + return http2_msg; +} + +/* 3GPP TS 29.505 5.2.24.3.3 Resource: AuthenticationStatus (DELETE) */ +altstep as_Nudr_DR_delete_authentication_status() +runs on ConnHdlr { + var HTTP2_Msg http2_rx; + [] HTTP2_CONN[HTTP2_CONN_SCP].receive(f_tr_Nudr_DR_delete_authentication_status()) -> value http2_rx { + var template (value) HTTP2_Msg http2_tx; + http2_tx := ts_HTTP2_Msg_204_No_Content(http2_rx.conn_id, + http2_rx.stream_id, + headers := { + ts_HTTP2_Hdr_content_type("application/json") + }, + body := omit); + + HTTP2_CONN[HTTP2_CONN_SCP].send(http2_tx); + setverdict(pass); + } +} + } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44029?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: If0c7fcfb673717472345b28139e3b4f6a15ef213 Gerrit-Change-Number: 44029 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: pespin <pespin@sysmocom.de>