Commit 6a3548a0 authored by garciay's avatar garciay
Browse files

TC development in progress for ULx

parent 452ee724
Loading
Loading
Loading
Loading
+302 −31

File changed.

Preview size limit exceeded, changes collapsed.

+13 −2
Original line number Diff line number Diff line
/**
 *    @author     STF 466
 *  @version    $Id: $
 *  @version    $Id$
 *  @desc       This module provides the PIXIT used for the IMS-DIAMETER S6a tests..
 */

@@ -126,6 +126,13 @@ module DiameterS6a_PIXITS {
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         */
        modulepar UTF8String PX_INVALID_USR_NAME := "unknown";
        
        /**
         * @desc A user name with no APN configure
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         */
        modulepar UTF8String PX_NO_APN_USR_NAME := "userNoAPN";
        
        /**
         * @desc The user name
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
@@ -187,6 +194,10 @@ module DiameterS6a_PIXITS {
        
        modulepar Oct3 PX_VISITED_PLMN_ID := '000000'O;
        
        modulepar Oct3 PX_OTHER_VISITED_PLMN_ID := '000001'O;
        
        modulepar Oct3 PX_NOT_ALLOWED_VISITED_PLMN_ID := 'ffffff'O;
        
        modulepar Cancellation_Type_Code PX_CANCELLATION_TYPE := MME_UPDATE_PROCEDURE_E;
        
    } //end group DiameterCommonS6aData
+2 −2
Original line number Diff line number Diff line
/**
 *  @author     STF 466
 *  @version    $Id: $
 *  @version    $Id$
 *  @desc       This module provides ATS specific steps used by the test cases
 *              for IMS-DIAMETER S6a tests.
 */
@@ -77,7 +77,7 @@
         */
        altstep a_hss_default() runs on TestAdapter {
            [] MME_S6a.receive(
                mw_mmeUpdateLocationRequest(
                mw_mmeUpdateLocationAnswer(
                    mw_S6a_ULA_dummy
            )) { // Received an unexpected UL-Answer message, process it as an error
                log("*** a_hss_default: ERROR: Received an unexpected UL-Answer message, process it as an error ***");
+126 −18
Original line number Diff line number Diff line
/**
 *  @author   STF 466
 *  @version  $Id: $
 *  @version  $Id$
 *  @desc     This module defines S6a Diameter Templates for message, header, and
 *            structured types. <br>
 *            Note that any changes made to the definitions in this module
@@ -17,6 +17,9 @@ module DiameterS6a_Templates {
    import from LibCommon_BasicTypesAndValues {
        type UInt8, UInt16, UInt32
    };
    import from LibCommon_DataStrings {
        type Oct3
    };
    
    // LibDiameter
    import from LibDiameter_TypesAndValues  {
@@ -274,7 +277,7 @@ module DiameterS6a_Templates {
                        c_vendId3gpp 
                    ),
                    aVP_Data := p_avpData
                }
                } // End of template mw_resultCode
                
                template (present) Experimental_Result_AVP mw_experimentalResult(template (present) Experimental_Result_Code_AVP p_experimental_Result_Code) := {
                    aVP_Header := m_aVP_HeaderVid_Mbit1 ( 
@@ -284,7 +287,7 @@ module DiameterS6a_Templates {
                    ),
                    vendor_Id := ?,
                    experimental_Result_Code := p_experimental_Result_Code
                }
                } // End of template mw_experimentalResult
    
                template (present) Experimental_Result_Code_AVP mw_experimentalResultCode(template (present) Experimental_Result_Type p_avpData) := {
                    aVP_Header := m_aVP_HeaderVid_Mbit1 ( 
@@ -293,7 +296,18 @@ module DiameterS6a_Templates {
                        c_vendId3gpp 
                    ),
                    aVP_Data := p_avpData
                }
                } // End of template mw_experimentalResultCode
                
                template (present) Error_Diagnostic_AVP mw_errorDiagnostic(
                                                                           in template (present) Error_Diagnostic_Code_Type p_error_Diagnostic_Code
                ) := {
                    aVP_Header := m_aVP_HeaderVid_Mbit1 ( 
                        c_error_Diagnostic_AVP_Code, 
                        4, 
                        c_vendId3gpp 
                    ),
                    error_Diagnostic_Code := p_error_Diagnostic_Code
                } // End of template 
                
            } // End of group awaitingTemplatesForAVPs
            
@@ -1161,6 +1175,15 @@ module DiameterS6a_Templates {
                    aVP_Data := p_aVP_Data
                } // End of template m_visited_Network_Identifier_AVP
                
                template (value) Visited_PLMN_Id_AVP md_visitedPLMNId(
                                                                      in template (value) Oct3 p_aVP_Data
                ) modifies m_visitedPLMNId_dummy := {
                aVP_Header  := m_aVP_HeaderVid_Mbit1 ( c_visited_PLMN_Id_AVP_Code, 4, c_vendId3gpp ),
                aVP_Data := p_aVP_Data
            } // End of template m_visitedPLMNId_dummy

                
                
            } // End of group S6aBasic_request_templates_send

            group S6basic_request_templates_receive {
@@ -1177,9 +1200,9 @@ module DiameterS6a_Templates {
                 * @desc Main receive template for MME_S6a port
                 * @param p_s6a_CCA_MSG UL-Answer receive template message
                 */
                template (present) DIAMETER_MSG mw_mmeUpdateLocationRequest(in template (present) ULA_MSG p_cCA_MSG) := {
                    cCA_MSG := p_cCA_MSG
                } // End of tempate m_mmeUpdateLocationRequest
                template (present) DIAMETER_MSG mw_mmeUpdateLocationAnswer(in template (present) ULA_MSG p_uLA_MSG) := {
                    uLA_MSG := p_uLA_MSG
                } // End of tempate mw_mmeUpdateLocationAnswer
                
            } // End of group S6basic_request_templates_receive

@@ -1266,7 +1289,7 @@ module DiameterS6a_Templates {
                        rat_Type            := p_rat_Type,
                        ulr_Flags           := p_ulr_Flags,
                        visited_PLMN_Id     := p_visited_PLMN_Id
                    } // // End of tempate md_ulrBodyAvps_TC_01
                    } // End of tempate md_ulrBodyAvps_TC_01
                    
                } // End of group t_TC_HSS_UL_01
                
@@ -1310,7 +1333,7 @@ module DiameterS6a_Templates {
                        visited_PLMN_Id     := p_visited_PLMN_Id,
                        homogeneous_Support := p_homogeneous_Support,
                        active_APN          := p_active_APN
                    } // // End of tempate md_ulrBodyAvps_TC_02
                    } // End of tempate md_ulrBodyAvps_TC_02
                    
                } // End of group t_TC_HSS_UL_02
                
@@ -1331,10 +1354,63 @@ module DiameterS6a_Templates {
                        destination_Realm   := valueof(m_destinationRealm(PX_DESTINATION_REALM)),
                        destination_Host    := valueof(m_destinationHost(PX_DESTINATION_HOST)), 
                        user_Name           := p_user_Name
                    } // // End of tempate md_ulrBodyAvps_TC_03
                    } // End of tempate md_ulrBodyAvps_TC_03
                    
                } // End of group t_TC_HSS_UL_03
                
                /**
                 * @desc Send templates for TC_HSS_UL_04
                 */
                group t_TC_HSS_UL_04 {
                    
                    /**
                     * @desc Send template for ULR message body 
                     * @param p_user_Name           User-Name
                     */
                    template (value) ULR_Body_AVP md_ulrBodyAvps_TC_04(
                                                                       in template (value) User_Name_AVP p_user_Name
                    ) := 
                        md_ulrBodyAvps_TC_03(p_user_Name); // End of tempate md_ulrBodyAvps_TC_04
                    
                } // End of group t_TC_HSS_UL_04
                
                /**
                 * @desc Send templates for TC_HSS_UL_04
                 */
                group t_TC_HSS_UL_05 {
                    
                    /**
                     * @desc Send template for ULR message body 
                     * @param p_user_Name           User-Name
                     */
                    template (value) ULR_Body_AVP md_ulrBodyAvps_TC_05(
                                                                       in template (value) User_Name_AVP p_user_Name
                    ) := 
                        md_ulrBodyAvps_TC_03(p_user_Name); // End of tempate md_ulrBodyAvps_TC_05
                    
                } // End of group t_TC_HSS_UL_05
                
                /**
                 * @desc Send templates for TC_HSS_UL_04
                 */
                group t_TC_HSS_UL_06 {
                    
                    /**
                     * @desc Send template for ULR message body 
                     * @param p_rat_Type           RAT type
                     */
                    template (value) ULR_Body_AVP md_ulrBodyAvps_TC_06(
                                                                       in template (value) RAT_Type_AVP p_rat_Type
                    ) modifies m_S6a_ULR_Body_dummy := {
                        origin_Host         := valueof(m_originHost(PX_ORIGIN_HOST)),
                        origin_Realm        := valueof(m_originRealm(PX_ORIGIN_REALM)),
                        destination_Realm   := valueof(m_destinationRealm(PX_DESTINATION_REALM)),
                        destination_Host    := valueof(m_destinationHost(PX_DESTINATION_HOST)), 
                        rat_Type            := p_rat_Type
                    } // End of template md_ulrBodyAvps_TC_06
                    
                } // End of group t_TC_HSS_UL_06
                
            } // End of group S6aModified_request_templates_send

            group S6aModified_request_templates_receive {
@@ -1479,12 +1555,8 @@ module DiameterS6a_Templates {
                group t_TC_HSS_UL_03 {
                    
                    /**
                     * @desc Receive template for ULA message body
                     * @param p_resultCode          Indicates whether a particular request was completed successfully or an error occurred
                     * @param p_auth_Session_State  Specifies if the state is maintained for a particular session
                     * @param p_originHost          Identifies the endpoint that originated the Diameter message
                     * @param p_originRealm         Realm of the originator
                     * @param p_ula_Flags           ULA Bit mask
                     * @desc Receive template for ULA message body with specific Expected Experimantal Result AVP
                     * @param p_experimental_Result Expected Experimantal Result Code value
                     */
                    template (present) ULA_Body_AVP mdw_ulaBodyAvps_TC_03( 
                                                                          in template (present) Experimental_Result_AVP p_experimental_Result
@@ -1494,6 +1566,42 @@ module DiameterS6a_Templates {
                    
                } // End of group t_TC_HSS_UL_03
                
                /**
                 * @desc Receive templates for TC_HSS_UL_04
                 */
                group t_TC_HSS_UL_04 {
                    
                    /**
                     * @desc Receive template for ULA message body with specific Expected Experimantal Result AVP
                     * @param p_experimental_Result Expected Experimantal Result Code value
                     */
                    template (present) ULA_Body_AVP mdw_ulaBodyAvps_TC_04( 
                                                                          in template (present) Experimental_Result_AVP p_experimental_Result
                    ) := 
                        mdw_ulaBodyAvps_TC_03(p_experimental_Result); // End of template mdw_ulrBodyAvps_TC_04
                    
                } // End of group t_TC_HSS_UL_04
                
                
                /**
                 * @desc Receive templates for TC_HSS_UL_05
                 */
                group t_TC_HSS_UL_05 {
                    
                    /**
                     * @desc Receive template for ULA message body with specific Expected Experimantal Result and Error Diagnostic AVPs
                     * @param p_experimental_Result Expected Experimantal Result Code value
                     * @param p_error_Diagnostic    Expected error diagnostic value
                     */
                    template (present) ULA_Body_AVP mdw_ulaBodyAvps_TC_05( 
                                                                          in template (present) Experimental_Result_AVP p_experimental_Result, 
                                                                          in template (present) Error_Diagnostic_AVP p_error_Diagnostic
                    ) modifies mdw_ulaBodyAvps_TC_04 := {
                        error_Diagnostic := p_error_Diagnostic
                    } // End of template mdw_ulrBodyAvps_TC_05
                    
                } // End of group t_TC_HSS_UL_05
                
            } // End of group S6aModified_answer_templates_receive
            
        } // End of group S6aModified_templates