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

Finalyze TC_NGAP_AMF_CMP_02

parent 85d00631
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -102,9 +102,9 @@ system.NGAP_AMF.params := "NGAP/SCTP(server=127.0.0.5,port=38412,debug=1)"
#NGAP_TestCases.TC_NGAP_AMF_PDU_05

# Verify the IUT correctly sets the UE Context after Authentication and Security procedure has been executed
NGAP_TestCases.TC_NGAP_AMF_CMP_01
#NGAP_TestCases.TC_NGAP_AMF_CMP_01
# Verify that the IUT can send a UE CONTEXT RELEASE COMMAND that contains both the AMF_UE_NGAP_ID IE and the RAN_UE_NGAP_ID IE or only AMF_UE_NGAP_ID
#NGAP_TestCases.TC_NGAP_AMF_CMP_02
NGAP_TestCases.TC_NGAP_AMF_CMP_02
# Verify that the IUT sends a UE CONTEXT RELEASE COMMAND after UE_CONTEXT_RELEASE_REQUEST to release the UE-associated logic NG-connection due to NG-RAN node generated reasons
#NGAP_TestCases.TC_NGAP_AMF_CMP_03
# Verify that the IUT can send a UE CONTEXT MODIFICATION REQUEST containing mandatory IEs
+12 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_amf_UE_ContextRealease() runs on aMFNGAPComponent {
        function f_NGAP_amf_UE_ContextRealease_ContextRealeaseComplete() runs on aMFNGAPComponent {
            if (PICS_OFFLINE_MODE) {
                f_await_ue_context_release_command_await_ue_context_release_complete();
            } else {
@@ -321,6 +321,17 @@ module NGAP_Steps {
            }
        } // End of function f_await_ue_context_release_command_send_ue_context_release_complete

        /**
         * @desc
         */
        function f_NGAP_amf_UE_ContextRealeaseRequest() runs on aMFNGAPComponent {
            if (PICS_OFFLINE_MODE) {
                f_await_ue_context_release_request();
            } else {
                f_send_ue_context_release_request();
            }
        } // End of function f_NGAP_amf_UE_ContextRealeaseRequest

        /**
         * @desc
         */
+5 −1
Original line number Diff line number Diff line
@@ -4455,7 +4455,7 @@ module NGAP_TCFunctions {
                  // Postamble
                  // Send error response to release the UE context
                  f_NGAP_amf_UE_PDU_InitialContextSetupFailure();
                  f_NGAP_amf_UE_ContextRealease();
                  f_NGAP_amf_UE_ContextRealease_ContextRealeaseComplete();
                  f_postamble_NGAP_AMF();
                  f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                  log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
@@ -4490,6 +4490,8 @@ module NGAP_TCFunctions {

                  // Body
                  action("Trigger a UE context release command!");
                  f_sleep(1.0); // Sleep for a while to make sure the previous procedure is completed
                  f_NGAP_amf_UE_ContextRealeaseRequest(); // f_send_ue_context_release_request

                  f_recv_NGAP_PDU(
                                  mw_ngap_initMsg(
@@ -4533,6 +4535,8 @@ module NGAP_TCFunctions {

                  // Body
                  action("Trigger a UE context release command!");
                  f_sleep(1.0); // Sleep for a while to make sure the previous procedure is completed
                  f_NGAP_amf_UE_ContextRealeaseRequest(); // f_send_ue_context_release_request

                  f_recv_NGAP_PDU(
                                  mw_ngap_initMsg(
+37 −11
Original line number Diff line number Diff line
@@ -715,7 +715,7 @@ module LibNGAP_Functions {
                        m_ngap_succMsg(
                                       m_n2_InitialContextSetupResponse_noPDUSessionResourceSetupListSURes(
                                                                                                           PX_AMF_UE_NGAP_ID,
                                                                                                           PX_RAN_UE_NGAP_ID
                                                                                                           vc_RAN_UE_ID
                        )));
    }

@@ -878,7 +878,7 @@ module LibNGAP_Functions {
                        mw_ngap_initMsg(
                                        mw_n2_DownlinkNASTransport(
                                                                   vc_AMF_UE_ID,
                                                                   PX_RAN_UE_NGAP_ID,
                                                                   vc_RAN_UE_ID,
                                                                   ? // SecurityModeCommand
                        )));
        f_NASPDU_Get(vc_recvNGAP_PDU);
@@ -922,7 +922,7 @@ module LibNGAP_Functions {
        //                 m_ngap_initMsg(
        //                                 m_n2_UplinkNASTransport(
        //                                                         PX_AMF_UE_NGAP_ID,
        //                                                         PX_RAN_UE_NGAP_ID,
        //                                                         vc_RAN_UE_ID,
        //                                                         vc_sendNAS_PDU,
        //                                                         m_uPTransportLayerInformation_userLocationInformationNR(
        //                                                                                                                 m_userLocationInformationNR(
@@ -940,7 +940,7 @@ module LibNGAP_Functions {
                        mw_ngap_initMsg(
                                        mw_n2_DownlinkNASTransport(
                                                                   vc_AMF_UE_ID,
                                                                   PX_RAN_UE_NGAP_ID,
                                                                   vc_RAN_UE_ID,
                                                                   ? // SecurityModeCommand
                        )));
        f_NASPDU_Get(vc_recvNGAP_PDU);
@@ -1004,7 +1004,7 @@ module LibNGAP_Functions {
                        mw_ngap_initMsg(
                                        mw_n2_PDUSessionResourceSetupRequest(
                                                                            vc_AMF_UE_ID,
                                                                            PX_RAN_UE_NGAP_ID,
                                                                            vc_RAN_UE_ID,
                                                                            {
                                                                                mw_pDUSessionResourceSetupItemSUReq(
                                                                                PX_PDU_SESSION_ID,
@@ -1092,7 +1092,7 @@ module LibNGAP_Functions {
    //                     mw_ngap_initMsg(
    //                                     mw_n2_PDUSessionResourceSetupRequest(
    //                                                                         vc_AMF_UE_ID,
    //                                                                         PX_RAN_UE_NGAP_ID,
    //                                                                         vc_RAN_UE_ID,
    //                                                                         {
    //                                                                             mw_pDUSessionResourceSetupItemSUReq(
    //                                                                             PX_PDU_SESSION_ID,
@@ -1172,7 +1172,7 @@ module LibNGAP_Functions {
                        mw_ngap_succMsg(
                                        mw_n2_UEContextReleaseComplete_noPDUSessionResourceSetupListSURes(
                                                                                                          vc_AMF_UE_ID,
                                                                                                          PX_RAN_UE_NGAP_ID
                                                                                                          vc_RAN_UE_ID
                        )));
    }

@@ -1190,7 +1190,33 @@ module LibNGAP_Functions {
                        m_ngap_succMsg(
                                       m_n2_UEContextReleaseComplete_noPDUSessionResourceSetupListSURes(
                                                                                                        vc_AMF_UE_ID,
                                                                                                        PX_RAN_UE_NGAP_ID
                                                                                                        vc_RAN_UE_ID
                        )));
    }

    function f_await_ue_context_release_request() runs on NGNASComponent {
        log(">>> f_await_ue_context_release_request");

        // Await UEContextReleaseRequest
        f_recv_NGAP_PDU(
                        mw_ngap_initMsg(
                                        mw_n2_UEContextReleaseRequest(
                                                                      vc_AMF_UE_ID,
                                                                      vc_RAN_UE_ID,
                                                                      m_cause_radioNetwork(unspecified)
                        )));
    }

    function f_send_ue_context_release_request() runs on NGNASComponent {
        log(">>> f_send_ue_context_release_request");

        // Send UEContextReleaseRequest
        f_send_NGAP_PDU(
                        m_ngap_initMsg(
                                       m_n2_UEContextReleaseRequest(
                                                                    vc_AMF_UE_ID,
                                                                    vc_RAN_UE_ID,
                                                                    m_cause_radioNetwork(unspecified)
                        )));
    }

@@ -1202,7 +1228,7 @@ module LibNGAP_Functions {
                        mw_ngap_succMsg(
                                        mw_n2_UEContextReleaseComplete_noPDUSessionResourceSetupListSURes(
                                                                                                          vc_AMF_UE_ID,
                                                                                                          PX_RAN_UE_NGAP_ID
                                                                                                          vc_RAN_UE_ID
                        )));
    }

@@ -1214,7 +1240,7 @@ module LibNGAP_Functions {
                        m_ngap_succMsg(
                                       m_n2_UEContextReleaseComplete_noPDUSessionResourceSetupListSURes(
                                                                                                        vc_AMF_UE_ID,
                                                                                                        PX_RAN_UE_NGAP_ID
                                                                                                        vc_RAN_UE_ID
                        )));
    }

@@ -1236,7 +1262,7 @@ module LibNGAP_Functions {
                        mw_ngap_succMsg(
                                        mw_n2_UEContextReleaseComplete(
                                                                       vc_AMF_UE_ID,
                                                                       PX_RAN_UE_NGAP_ID
                                                                       vc_RAN_UE_ID
                        )));
    }