Commit 3c170914 authored by juvancic's avatar juvancic
Browse files

added interfaceManagement TPs amf 01-04

parent 58ed1cf2
Loading
Loading
Loading
Loading
+451 −1
Original line number Original line Diff line number Diff line
@@ -1120,6 +1120,39 @@ module NGAP_TCFunctions {
            } // End of group NG_Reset
            } // End of group NG_Reset
            //8.7.5
            //8.7.5
            group Error_Indication{
            group Error_Indication{
              
                /**
                * @desc Testcase function for TC_NGAP_gNB_IMP_06
                */
                function f_TC_NGAP_GNB_IMP_06() runs on aMFNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_amf_init();
                   //f_NGAP_amf_UE_Register();

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

                   // Body
                   action("Trigger ERROR INDICATION!");
                   
                   f_recv_NGAP_PDU(
                     mw_ngap_initMsg(
                       mw_n2_ErrorIndication
                     )
                   );

                   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_IMP_06

            } // End of group Error_Indication
            } // End of group Error_Indication
            //8.7.6
            //8.7.6
            group AMF_Status_Indication{
            group AMF_Status_Indication{
@@ -1994,6 +2027,423 @@ module NGAP_TCFunctions {
        group Interface_Management_Procedures{
        group Interface_Management_Procedures{
            //8.7.1
            //8.7.1
            group NG_Setup{
            group NG_Setup{
              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_01
               */
               function f_TC_NGAP_AMF_IMP_01() runs on gNBNGAPComponent {
                   // Local variables

                        /*//  type    record  SupportedTAItem {
                        template (omit) SupportedTAItem m_ie_supportedTAItem(in template (value) TAC p_tAC,
                                                                            in template (value) BroadcastPLMNList p_broadcastPLMNList,
                                                                            in template (omit) SupportedTAItem.iE_Extensions p_iE_Extensions := omit
                                                                            ) := {
                                    tAC               := p_tAC,
                                    broadcastPLMNList := p_broadcastPLMNList,
                                    iE_Extensions     := p_iE_Extensions
                                } // End of template m_ie_supportedTAItem
                        //  type    octetstring TAC length  (3);
                        template (value) TAC m_ie_tAC(in template (value) TAC p_val) := p_val;
                        //  type    record  length  (1  ..  NGAP_Constants.maxnoofSliceItems)   of  SliceSupportItem    SliceSupportList;
                        template (value) SliceSupportList m_ie_sliceSupportList(in template (value) SliceSupportList p_list) := p_list;

                        //  type    record  SliceSupportItem    {
                        template (omit) SliceSupportItem m_ie_sliceSupportItem(
                                                                                      in template (value) S_NSSAI p_S_NSSAI,
                                                                                      in template (omit) SliceSupportItem.iE_Extensions p_iE_Extensions := omit
                                                                                      ) := {  
                                    s_NSSAI        := p_S_NSSAI,
                                    iE_Extensions  :=p_iE_Extensions
                                } // End of template m_ie_sliceSupportItem
                        //  type    record  S_NSSAI {
                        template (omit) S_NSSAI m_ie_sNSSAI(
                                                                    in template (value) SST p_sST,
                                                                    in template (value) SD p_sD,
                                                                    in template (omit) S_NSSAI.iE_Extensions p_iE_Extensions := omit
                                                                    ) := {
                                    sST           := p_sST,//'00'O,
                                    sD            := p_sD,//'000000'O,
                                    iE_Extensions := p_iE_Extensions
                                } // End of template m_ie_sNSSAI
                        //  type    octetstring SST length  (1);
                        template (value) SST m_ie_sST(in SST p_val := '00'O) := p_val;
                        //  type    octetstring SD  length  (3);
                        template (value) SD m_ie_sD(in SD p_val := '000000'O) := p_val;
                        */

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

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

                   // Body
                  //  f_send_NGAP_PDU(
                  //    m_ngap_initMsg(
                  //       m_n2_NGSetupRequest(
                  //         m_globalRANNodeID_globalGNB_ID(
                  //           m_ie_globalGnbId(
                  //           PX_PLMN_IDENTITY,
                  //           '0000000000000000000000'B,//in template (value) bitstring p_gnbId,
                  //           -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit
                  //           )
                  //         ),
                  //         {
                  //           m_ie_supportedTAItem(
                  //               m_ie_tAC('000000'O),
                  //               m_ie_broadcastPLMNList(
                  //                   {
                  //                       m_ie_broadcastPLMNItem(
                  //                           m_ie_pLMNIdentity('00f110'O),
                  //                           m_ie_sliceSupportList(
                  //                               {
                  //                                   m_ie_sliceSupportItem(
                  //                                       m_ie_sNSSAI(
                  //                                           m_ie_sST('00'O),
                  //                                           m_ie_sD('000000'O)
                  //                                       )
                  //                                   )
                  //                               }
                  //                           )

                  //                       )
                  //                   }
                  //               )
                  //           )
                  //         },
                  //         PX_PAGING_DRX
                  //       ) 
                  //    )
                  //  );

                    f_recv_NGAP_PDU(
                      mw_ngap_succMsg(
                        mw_n2_NGSetupResponse(
                          ?,
                          {
                            mw_servedGUAMIItem(
                              mw_gUAMI(
                                ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                                ?,//template (present) AMFRegionID p_aMFRegionID := ?,
                                ?,//template (present) AMFSetID p_aMFSetID := ?,
                                ?,//template (present) AMFPointer p_aMFPointer := ?,
                                *//template GUAMI.iE_Extensions p_iE_Extensions := *
                              ),//template (present) GUAMI p_gUAMI := ?,
                              *,//template AMFName p_backupAMFName := *,
                              *//template ServedGUAMIItem.iE_Extensions p_iE_Extensions := *
                            )
                          },//template (present) ServedGUAMIList p_servedGUAMIList := ?,
                          ?,//template (present) RelativeAMFCapacity p_relativeAmfCap:= ?,
                          {
                            mw_pLMNSupportItem(
                              ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                              {
                                mw_sliceSupportItem(
                                  mw_s_NSSAI(
                                    ?,//template (present) SST p_sST := ?,
                                    *,//template SD p_sD := *,
                                    *//template S_NSSAI.iE_Extensions p_iE_Extensions := *
                                  ),//template (present) S_NSSAI p_s_NSSAI := ?,
                                  ?//template SliceSupportItem.iE_Extensions p_iE_Extensions := *
                                )
                              },//template (present) SliceSupportList p_sliceSupportList := ?,
                              *//template PLMNSupportItem.iE_Extensions p_iE_Extensions := *
                            )
                          }//template (present) PLMNSupportList p_plmnSuppList := ?
                        ) 
                      )
                    );

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

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

                } // End of function f_TC_NGAP_AMF_IMP_01

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_02
               */
               function f_TC_NGAP_AMF_IMP_02() runs on gNBNGAPComponent {
                   // Local variables
  
                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

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

                   // Body
                  //  f_send_NGAP_PDU(
                  //    m_ngap_initMsg(
                  //       m_n2_NGSetupRequest(
                  //         m_globalRANNodeID_globalGNB_ID(
                  //           m_ie_globalGnbId(
                  //           PX_PLMN_IDENTITY,
                  //           '0000000000000000000000'B,//in template (value) bitstring p_gnbId,
                  //           -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit
                  //           )
                  //         ),
                  //         {
                  //           m_ie_supportedTAItem(
                  //               m_ie_tAC('000000'O),
                  //               m_ie_broadcastPLMNList(
                  //                   {
                  //                       m_ie_broadcastPLMNItem(
                  //                           m_ie_pLMNIdentity('00f110'O),
                  //                           m_ie_sliceSupportList(
                  //                               {
                  //                                   m_ie_sliceSupportItem(
                  //                                       m_ie_sNSSAI(
                  //                                           m_ie_sST('00'O),
                  //                                           m_ie_sD('000000'O)
                  //                                       )
                  //                                   )
                  //                               }
                  //                           )

                  //                       )
                  //                   }
                  //               )
                  //           )
                  //         },
                  //         PX_PAGING_DRX
                  //       ) 
                  //    )
                  //  );

                    f_recv_NGAP_PDU(
                      mw_ngap_unsuccMsg(
                        mw_n2_NGSetupFailure(
                          ?//template (present) Cause p_cause := ?
                        )
                      )
                    );

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

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

                } // End of function f_TC_NGAP_AMF_IMP_02

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_03
               */
               function f_TC_NGAP_AMF_IMP_03() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

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

                   // Body
                  //  f_send_NGAP_PDU(
                  //    m_ngap_initMsg(
                  //       m_n2_NGSetupRequest(
                  //         m_globalRANNodeID_globalGNB_ID(
                  //           m_ie_globalGnbId(
                  //           PX_PLMN_IDENTITY,
                  //           '0000000000000000000000'B,//in template (value) bitstring p_gnbId,
                  //           -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit
                  //           )
                  //         ),
                  //         {
                  //           m_ie_supportedTAItem(
                  //               m_ie_tAC('000000'O),
                  //               m_ie_broadcastPLMNList(
                  //                   {
                  //                       m_ie_broadcastPLMNItem(
                  //                           m_ie_pLMNIdentity('00f110'O),
                  //                           m_ie_sliceSupportList(
                  //                               {
                  //                                   m_ie_sliceSupportItem(
                  //                                       m_ie_sNSSAI(
                  //                                           m_ie_sST('00'O),
                  //                                           m_ie_sD('000000'O)
                  //                                       )
                  //                                   )
                  //                               }
                  //                           )

                  //                       )
                  //                   }
                  //               )
                  //           )
                  //         },
                  //         PX_PAGING_DRX,
                  //         FIXME:UERetention_Information template  m_uERetentionInformation(in UERetentionInformation p_value := ues_retained)
                  //       ) 
                  //    )
                  //  );

                    f_recv_NGAP_PDU(
                      mw_ngap_succMsg(
                        mw_n2_NGSetupResponse(
                          ?,
                          {
                            mw_servedGUAMIItem(
                              mw_gUAMI(
                                ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                                ?,//template (present) AMFRegionID p_aMFRegionID := ?,
                                ?,//template (present) AMFSetID p_aMFSetID := ?,
                                ?,//template (present) AMFPointer p_aMFPointer := ?,
                                *//template GUAMI.iE_Extensions p_iE_Extensions := *
                              ),//template (present) GUAMI p_gUAMI := ?,
                              *,//template AMFName p_backupAMFName := *,
                              *//template ServedGUAMIItem.iE_Extensions p_iE_Extensions := *
                            )
                          },//template (present) ServedGUAMIList p_servedGUAMIList := ?,
                          ?,//template (present) RelativeAMFCapacity p_relativeAmfCap:= ?,
                          {
                            mw_pLMNSupportItem(
                              ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                              {
                                mw_sliceSupportItem(
                                  mw_s_NSSAI(
                                    ?,//template (present) SST p_sST := ?,
                                    *,//template SD p_sD := *,
                                    *//template S_NSSAI.iE_Extensions p_iE_Extensions := *
                                  ),//template (present) S_NSSAI p_s_NSSAI := ?,
                                  ?//template SliceSupportItem.iE_Extensions p_iE_Extensions := *
                                )
                              },//template (present) SliceSupportList p_sliceSupportList := ?,
                              *//template PLMNSupportItem.iE_Extensions p_iE_Extensions := *
                            )
                          }//template (present) PLMNSupportList p_plmnSuppList := ?
                          //FIXME:UERetention_Information template  mw_uERetentionInformation(template (present) UERetentionInformation p_value := ues_retained)
                        ) 
                      )
                    );

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

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

                } // End of function f_TC_NGAP_AMF_IMP_03

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_04
               */
               function f_TC_NGAP_AMF_IMP_04() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

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

                   // Body
                  //  f_send_NGAP_PDU(
                  //    m_ngap_initMsg(
                  //       m_n2_NGSetupRequest(
                  //         m_globalRANNodeID_globalGNB_ID(
                  //           m_ie_globalGnbId(
                  //           PX_PLMN_IDENTITY,
                  //           '0000000000000000000000'B,//in template (value) bitstring p_gnbId,
                  //           -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit
                  //           )
                  //         ),
                  //         {
                  //           m_ie_supportedTAItem(
                  //               m_ie_tAC('000000'O),
                  //               m_ie_broadcastPLMNList(
                  //                   {
                  //                       m_ie_broadcastPLMNItem(
                  //                           m_ie_pLMNIdentity('00f110'O),
                  //                           m_ie_sliceSupportList(
                  //                               {
                  //                                   m_ie_sliceSupportItem(
                  //                                       m_ie_sNSSAI(
                  //                                           m_ie_sST('00'O),
                  //                                           m_ie_sD('000000'O)
                  //                                       )
                  //                                   )
                  //                               }
                  //                           )

                  //                       )
                  //                   }
                  //               )
                  //           )
                  //         },
                  //         PX_PAGING_DRX,
                  //         FIXME:NB_IoT_Default_Paging_DRX,
	                //       	 FIXME:Extended_RAN_Node_Name containing  RAN_Node_Name_Visible;;; m_extended_RANNodeName...
                  //       ) 
                  //    )
                  //  );

                    f_recv_NGAP_PDU(
                      mw_ngap_succMsg(
                        mw_n2_NGSetupResponse(
                          ?,
                          {
                            mw_servedGUAMIItem(
                              mw_gUAMI(
                                ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                                ?,//template (present) AMFRegionID p_aMFRegionID := ?,
                                ?,//template (present) AMFSetID p_aMFSetID := ?,
                                ?,//template (present) AMFPointer p_aMFPointer := ?,
                                *//template GUAMI.iE_Extensions p_iE_Extensions := *
                              ),//template (present) GUAMI p_gUAMI := ?,
                              *,//template AMFName p_backupAMFName := *,
                              *//template ServedGUAMIItem.iE_Extensions p_iE_Extensions := *
                            )
                          },//template (present) ServedGUAMIList p_servedGUAMIList := ?,
                          ?,//template (present) RelativeAMFCapacity p_relativeAmfCap:= ?,
                          {
                            mw_pLMNSupportItem(
                              ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                              {
                                mw_sliceSupportItem(
                                  mw_s_NSSAI(
                                    ?,//template (present) SST p_sST := ?,
                                    *,//template SD p_sD := *,
                                    *//template S_NSSAI.iE_Extensions p_iE_Extensions := *
                                  ),//template (present) S_NSSAI p_s_NSSAI := ?,
                                  ?//template SliceSupportItem.iE_Extensions p_iE_Extensions := *
                                )
                              },//template (present) SliceSupportList p_sliceSupportList := ?,
                              *//template PLMNSupportItem.iE_Extensions p_iE_Extensions := *
                            )
                          }//template (present) PLMNSupportList p_plmnSuppList := ?
                          //       	 FIXME:Extended_RAN_Node_Name containing  RAN_Node_Name_Visible;;; mw_extended_RANNodeName...
                        ) 
                      )
                    );

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

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

                } // End of function f_TC_NGAP_AMF_IMP_04  

            } // End of group NG_Setup
            } // End of group NG_Setup
            //8.7.2
            //8.7.2
            group RAN_Configuration_Update{
            group RAN_Configuration_Update{
+137 −0

File changed.

Preview size limit exceeded, changes collapsed.