Commit df6b92c0 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add TC_5GNAS_AMF_SEC_REJ_01

parent 01ffa6ad
Loading
Loading
Loading
Loading
+23 −1
Original line number Diff line number Diff line
@@ -476,12 +476,34 @@ module NG_NAS_TCFunctions {

                    // Preamble
                    f_NGAP_gnb_init();
                    f_NGAP_gnb_init();
                    f_send_NGSetupRequest_await_NGSetupRespone();
                    f_await_NasAuthorizationRequest_send_NasAuthorizationResponse();
                    f_await_NasSecurityModeCommand();
                    f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                    log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                    // Body
                    // TODO
                    // Send SecurityModeComplete
                    vt_NgNasUl_Msg := m_NG_SECURITY_MODE_REJECT(
                                                                m_GMM_GSM_Cause(
                                                                                -,
                                                                                '00100011'B // FIXME Create const NAS_CauseValue_Type tsc_EmmCause_UESecurityCapabilitiesMismatch;

                                                                ));
                    vc_sendNAS_PDU := bit2oct(encvalue(valueof(vt_NgNasUl_Msg)));
                    f_send_NGAP_PDU(
                                    m_ngap_initMsg(
                                                    m_n2_UplinkNASTransport(
                                                                            PX_AMF_UE_NGAP_ID,
                                                                            PX_RAN_UE_NGAP_ID, 
                                                                            vc_sendNAS_PDU,
                                                                            m_uPTransportLayerInformation_userLocationInformationNR(
                                                                                                                                    m_userLocationInformationNR(
                                                                                                                                                                m_nR_CGI,
                                                                                                                                                                m_tAI
                                    )))));
                    // FIXME FSCOM How to check the IUT entity sends a DOWNLINK_NAS_TRANSPORT containing to the GNB entity
                    f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                    log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");