Commit 8b93f585 authored by Yann Garcia's avatar Yann Garcia
Browse files

Validating TC_NGAP_AMF_PDU_01

parent be38e9f0
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ LibNGAP_Pixits.PX_SST := '01'O
LibNGAP_Pixits.PX_SD               := '000009'O
LibNGAP_Pixits.PX_PAGING_DRX       := v128

LibNGAP_Pixits.PX_PDU_SESSION_ID   := 1

Lib_NG_NAS_Pixits.PX_CHECK_SECURITY                  := false
Lib_NG_NAS_Pixits.PX_SUPI_FORMAT                     := '0000'B # IMSI format
Lib_NG_NAS_Pixits.PX_TYPE_OF_ID                      := '001'B # SUCI type
@@ -39,7 +41,7 @@ Lib_NG_NAS_Pixits.PX_PLMN := '99f907'O;
Lib_NG_NAS_Pixits.PX_BEARER_ID                       := '00001'B

Parameters.px_IMSI_Def                               := '393939373030303030303030303031'H # 999700000000001
Parameters.px_IMEISV_Def                             := '4573806121856151f1'H
Parameters.px_IMEISV_Def                             := '73806121856151f1'H
NAS_5GC_Parameters.px_NAS_5GC_XRES_Length            := 8 # In ETSI TS 135 206 V16.0.0 (2020-08) Table Table 5. f2 output, RES length is 8 octets (64 bits)

[LOGGING]
@@ -48,9 +50,9 @@ NAS_5GC_Parameters.px_NAS_5GC_XRES_Length := 8 # In ETSI TS 135 206 V

LogFile := "../logs/AtsNGAP/%e.%h-%r.%s"
FileMask := LOG_ALL | USER | DEBUG | MATCHING
ConsoleMask := LOG_ALL | USER | DEBUG | MATCHING
#ConsoleMask := LOG_ALL | USER | DEBUG | MATCHING
#FileMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | PORTEVENT | TESTCASE
#ConsoleMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | PORTEVENT | TESTCASE
ConsoleMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | PORTEVENT | TESTCASE
LogSourceInfo := Stack
LogEntityName:= Yes
LogEventTypes:= Yes
@@ -91,7 +93,7 @@ system.NGAP_AMF.params := "NGAP/SCTP(server=127.0.0.5,port=38412,debug=1)"
#AtsImsIot_TestControl.control

# Verify that the IUT can send a  PDU SESSION RESOURCE SETUP REQUEST with at least one PDU session resource list to established PDU session.
#NGAP_TestCases.TC_NGAP_AMF_PDU_01
NGAP_TestCases.TC_NGAP_AMF_PDU_01
# Verify that the IUT can send a  PDU_SESSION_RESOURCE_RELEASE_COMMAND to release PDU session.
#NGAP_TestCases.TC_NGAP_AMF_PDU_02
# Verify that the IUT can send a  PDU_SESSION_RESOURCE_MODIFY_REQUEST to modify PDU session.
@@ -104,7 +106,7 @@ system.NGAP_AMF.params := "NGAP/SCTP(server=127.0.0.5,port=38412,debug=1)"
# Verify the IUT correctly sets the UE Context after Authentication and Security procedure has been executed
#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
+3 −32
Original line number Diff line number Diff line
@@ -37,35 +37,6 @@ module NGAP_TCFunctions {
    import from NGAP_Steps all;
    import from NGAP_Pixits all;

    group TC_function_template{

        /**
         * @desc Testcase function for TC_NGAP_gNB_or_aMF_functionName_01
         */
        function f_TC_NGAP_gNB_or_aMF_functionName_01() runs on gNBNGAPComponent {
            // Local variables

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

            // Body
            //f_send_NGAP_PDU(m_ngap_initMsg(/*initiating msgtemplate*/));
            //f_recv_NGAP_PDU(?);

            f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
            log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

            // Postamble
            f_postamble_NGAP_gNB();
            f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
            log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

        } // End of function f_TC_NGAP_gNB_or_aMF_functionName_01

    } // End of group TC_function_template

    group gNB_Role{
        //8.2
        group PDU_Session_Management_Procedures{
@@ -4063,15 +4034,15 @@ module NGAP_TCFunctions {
                                            // f_send_registration_request();
                  f_NGAP_amf_UE_Authentication(); // f_await_authentication_request_send_authentication_response();
                  f_NGAP_amf_UE_SecurityMode(); // f_await_security_mode_command_send_security_mode_complete();
                  f_NGAP_amf_RegistrationComplete(); // f_send_registration_complete
                  f_NGAP_amf_UE_InitialContextSetup(); // f_await_initial_context_setup_request_send_initial_context_setup_resonse
                  f_NGAP_amf_RegistrationComplete(); // f_send_registration_complete

                  f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                  log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                  // Body
                  //action("Trigger PDU session resource SETUP!");
                  f_NGAP_amf_UE_PDU_SessionEstablishmentRequest(); // f_send_session_establishment_request
                  f_send_session_establishment_request();

                  f_recv_NGAP_PDU(
                                  mw_ngap_initMsg(
@@ -4117,8 +4088,8 @@ module NGAP_TCFunctions {
                                            // f_send_registration_request();
                  f_NGAP_amf_UE_Authentication(); // f_await_authentication_request_send_authentication_response();
                  f_NGAP_amf_UE_SecurityMode(); // f_await_security_mode_command_send_security_mode_complete();
                  f_NGAP_amf_RegistrationComplete(); // f_send_registration_complete
                  f_NGAP_amf_UE_InitialContextSetup(); // f_await_initial_context_setup_request_send_initial_context_setup_resonse
                  f_NGAP_amf_RegistrationComplete(); // f_send_registration_complete
                  f_NGAP_amf_UE_PDU_SessionEstablishmentRequest(); // f_send_session_establishment_request_await_session_establishment_response
                  f_NGAP_amf_UE_PDU_SessionResourceSetup(); // f_await_pdu_session_resource_setup_request_send_session_resource_setup_response

+6 −6
Original line number Diff line number Diff line
@@ -1439,12 +1439,12 @@ module LibNGAP_Templates {
                                                                                                    id := id_SecurityKey,
                                                                                                 criticality := reject,
                                                                                                 value_ := { SecurityKey := p_nextHopNH }
                                                                                             }/*,
                                                                                             },
                                                                                             {
                                                                                                     id := id_MaskedIMEISV,
                                                                                                  criticality := ignore,
                                                                                                  value_ := { MaskedIMEISV := p_maskedIMEISV }
                                                                                             }*/,
                                                                                             },
                                                                                             {
                                                                                                     id := id_NAS_PDU,
                                                                                                  criticality := ignore,
@@ -6927,7 +6927,7 @@ module LibNGAP_Templates {
                         */
                        template (value) InitiatingMessage m_n2_ErrorIndication := {
                            procedureCode := id_ErrorIndication,
                            criticality   := reject,
                            criticality   := ignore,
                            value_        := {
                                              ErrorIndication := {
                                                                  protocolIEs := { }
@@ -6944,7 +6944,7 @@ module LibNGAP_Templates {
                                                                                    in template (value) Cause p_cause
                                                                                    ) := {
                            procedureCode := id_ErrorIndication,
                            criticality   := reject,
                            criticality   := ignore,
                            value_        := {
                                              ErrorIndication := {
                                                                  protocolIEs := {
@@ -6977,7 +6977,7 @@ module LibNGAP_Templates {
                         */
                        template (present) InitiatingMessage mw_n2_ErrorIndication := {
                            procedureCode := id_ErrorIndication,
                            criticality   := reject,
                            criticality   := ignore,
                            value_        := {
                                              ErrorIndication := {
                                                                  protocolIEs := { }
@@ -6994,7 +6994,7 @@ module LibNGAP_Templates {
                                                                                       template (present) Cause p_cause := ?
                                                                                       ) := {
                            procedureCode := id_ErrorIndication,
                            criticality   := reject,
                            criticality   := ignore,
                            value_        := {
                                              ErrorIndication := {
                                                                  protocolIEs := {
+127 −79

File changed.

Preview size limit exceeded, changes collapsed.

+23 −0
Original line number Diff line number Diff line
@@ -157,6 +157,29 @@ module LibNGAP_Steps {
            f_NGAPPDU_Set(p_PDU);
            log("f_send_NGAP_PDU: vc_sendNGAP_PDU: ", vc_sendNGAP_PDU);
            N2_gNBaMF_P.send(p_PDU);
            tc_noac.start(3.0);
             alt {
                [] N2_gNBaMF_P.check(
                                     receive(
                                             mw_ngap_initMsg(
                                                             mw_n2_ErrorIndication_ids(
                                                                                       vc_AMF_UE_ID,
                                                                                       vc_RAN_UE_ID
                                             )))) {
                    // Let's the test case proceed with the error indication, but log it as inconclusive
                    setverdict(inconc,"*** " & __SCOPE__ & ": INCONC: Error indication received. ***");
                }
                [] N2_gNBaMF_P.check(
                                     receive(
                                             mw_ngap_initMsg
                                             )) {
                    tc_noac.stop;
                }
                [] tc_noac.timeout {
                    // No message received, let's consider the message was accepted and proceed with the test case execution
                    log("f_send_NGAP_PDU: Message accepted");
                }
            }
        } // End of function f_send_NGAPPDU

        /**
Loading