Commit 82b51634 authored by garciay's avatar garciay
Browse files

Implemented test case function f_TC_HSS_UL_02()

parent bf13eab6
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ module DiameterS6a_HSS_TCFunctions {
    import from DiameterS6a_Steps {
        function 
            f_preamble_HSS, f_postamble_HSS, 
            f_awaiting_ULR; 
            f_triggerUlrMessage; 
        altstep hss_default
    };
    import from DiameterS6a_TestSystem {
@@ -55,7 +55,7 @@ module DiameterS6a_HSS_TCFunctions {
            
            // Test Body
            // Clause 'when': the IUT receives a UL-Request
            f_awaiting_ULR(
            f_triggerUlrMessage(
                md_ULR_TCs( 
                    vc_sessionId,                                   // containing a Session-ID AVP
                    md_ulrBodyAvps_TC_01(
@@ -118,7 +118,7 @@ module DiameterS6a_HSS_TCFunctions {
            
            // Test Body
            // Clause 'when': the IUT receives a UL-Request
            f_awaiting_ULR(
            f_triggerUlrMessage(
                md_ULR_TCs( 
                    vc_sessionId,                                                // containing a Session-ID AVP
                    md_ulrBodyAvps_TC_02(
@@ -134,7 +134,13 @@ module DiameterS6a_HSS_TCFunctions {
                        m_active_APN_AVP_ul_02(                                  // containing an Active-APN AVP
                             m_context_Identifier_AVP(PX_CONTEXT_ID),            //     containing a Context-Identifier AVP
                             m_service_Selection_AVP(PX_SERVICE_SEL),            //     containing Service-Selection AVP
                             m_mip6_Agent_Info_AVP(),                            //     FIXME containing MIP6-Agent-Info AVP
                             m_mip6_Agent_Info_AVP(                              //     containing MIP6-Agent-Info AVP
                                 m_mip_Home_Agent_Address_AVP(PX_MIP6_AGENT_IP_ADDRESS),
                                 m_mip_Home_Agent_Host_AVP(
                                    m_destinationRealm(PX_MIP6_AGENT_DEST_REALM),
                                    m_destinationHost(PX_MIP6_AGENT_DEST_HOST)
                                )
                             ),
                             m_visited_Network_Identifier_AVP(PX_VISITED_NTW_ID) //     containing Visited-Network-Identifier AVP
                        )
                    ) // End of md_ulrBodyAvps_TC_01
+24 −3
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@ module DiameterS6a_PIXITS {
    
    // LibDiameter
    import from LibDiameter_TypesAndValues {
        type RAT_Type,  Diameter_Identity, UTF8String
        type 
            IpAddress, RAT_Type, Diameter_Identity, UTF8String
    };
    
    // DiameterS6a
@@ -57,13 +58,33 @@ module DiameterS6a_PIXITS {
         * @desc The Destination-Host identifying the endpoint to which the Diameter messages are destined
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.7/8 
         */
        modulepar Diameter_Identity PX_DESTINATION_HOST := "destination.etsi.org";
        modulepar Diameter_Identity PX_DESTINATION_HOST := "destination.host.etsi.org";
        
        /**
         * @desc The Destination-Realm identifying the Realm of the destination of any Diameter messages
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.7/9 
         */
        modulepar Diameter_Identity PX_DESTINATION_REALM := "myalupcrf.etsi.org";
        modulepar Diameter_Identity PX_DESTINATION_REALM := "destination.realm.etsi.org";
        
        /**
         * @desc TODO
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.7/9 
         */
        modulepar IpAddress PX_MIP6_AGENT_IP_ADDRESS := {ipv4 := {192, 168, 50, 1} };
        
        /**
         * @desc TODO
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.7/9 
         */
        modulepar Diameter_Identity PX_MIP6_AGENT_DEST_REALM := "mipv6.agent.etsi.org";
        
        /**
         * @desc TODO
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.7/9 
         */
        modulepar Diameter_Identity PX_MIP6_AGENT_DEST_HOST := "mipv6.host.etsi.org";
        
        
        
        
    } // End of group ipSettings
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@
    
    group SendMessage {
        
        function f_awaiting_ULR ( template (value) ULR_MSG p_ulrMSG ) 
        function f_triggerUlrMessage ( template (value) ULR_MSG p_ulrMSG ) 
        runs on TestAdapter {
            MME_S6a.send(
                DIAMETER_S6a_MME_Initiated_Message: { s6a_ULR_MSG := p_ulrMSG } 
+57 −8
Original line number Diff line number Diff line
@@ -15,14 +15,15 @@ module DiameterS6a_Templates {

    // LibCommon
    import from LibCommon_BasicTypesAndValues {
        type UInt32
        type UInt8, UInt16, UInt32
    };
    
    // LibDiameter
    import from LibDiameter_TypesAndValues  {
        type        Command_Flags, Diameter_Identity, UTF8String, RAT_Type_AVP, Destination_Host_AVP,
                    Destination_Realm_AVP, Origin_Host_AVP, Origin_Realm_AVP, Session_Id_AVP,
                    Auth_Session_State_AVP, User_Name_AVP, RAT_Type, Result_Code_AVP;
                    Auth_Session_State_AVP, User_Name_AVP, RAT_Type, Result_Code_AVP,
                    IpAddress;
        const       c_versionId, c_vendId3gpp, c_destination_Host_AVP_Code, c_destination_Realm_AVP_Code,
                    c_origin_Host_AVP_Code, c_origin_Realm_AVP_Code, c_session_Id_AVP_Code, c_rAT_Type_AVP_Code
    };
@@ -195,7 +196,6 @@ module DiameterS6a_Templates {
                aVP_Type                        := omit
            } // End of tempate m_active_APN_AVP_dummy
            
            
            /**
             * @desc APN for the selected and dynamically allocated PDN GW
             */
@@ -206,6 +206,7 @@ module DiameterS6a_Templates {
            
            /**
             * @desc Identity of the selected and dynamically allocated PDN GW for an APN
             * @see RFC5778-DiameterMobileIPv6
             */
            template (value) MIP6_Agent_Info_AVP m_mip6_Agent_Info_AVP_dummy := {
                aVP_Header                  := m_aVP_HeaderVid_Mbit1 ( 486, 4, c_vendId3gpp ), // FIXME Confirm AVP code and create the constant
@@ -216,6 +217,28 @@ module DiameterS6a_Templates {
                aVP_Type                    := omit
            } // End of tempate m_mip6_Agent_Info_AVP_dummy
            
            /**
             * @desc HA IP address
             *       Default: localhost
             * @see RFC4004
             */
            template (value) MIP_Home_Agent_Address_AVP m_mip_Home_Agent_Address_AVP_dummy := {
                aVP_Header  := m_aVP_HeaderVid_Mbit1 ( 334, 4, c_vendId3gpp ), // FIXME Confirm AVP code and create the constant
                aVP_Data := { 
                	ipv4 := { 127, 0, 0,1 } 
                } // End of 'aVP_Data' field
            } // End of tempate m_mip_Home_Agent_Address_AVP_dummy
            
            /**
             * @desc HA FQDN
             */
            template (value) MIP_Home_Agent_Host_AVP m_mip_Home_Agent_Host_AVP_dummy := {
                 aVP_Header         := m_aVP_HeaderVid_Mbit1 ( 348, 4, c_vendId3gpp ), // FIXME Confirm AVP code and create the constant
                destination_Realm   := m_destinationRealm_dummy,
                destination_Host    := m_destinationHost_dummy,
                aVP_Type            := omit
            } // End of tempate m_mip_Home_Agent_Host_AVP_dummy
            
            /**
             * @desc Identity of the network where the PDN-GW was allocated, in the case of dynamic PDN-GW assignment
             */
@@ -1075,7 +1098,7 @@ module DiameterS6a_Templates {
                
                /**
                 * @desc Identifies the per subscriber"s default APN configuration
                 * @param p_aVP_Data    TODO
                 * @param p_aVP_Data    Per subscriber"s default APN configuration
                 */
                template (value) Context_Identifier_AVP m_context_Identifier_AVP( in UInt32 p_aVP_Data )
                modifies m_context_Identifier_AVP_dummy := {
@@ -1084,28 +1107,54 @@ module DiameterS6a_Templates {
                
                /**
                 * @desc APN for the selected and dynamically allocated PDN GW
                 * @param p_aVP_Data    TODO
                 * @param p_aVP_Data    The APN value
                 */
                template (value) Service_Selection_AVP m_service_Selection_AVP( in charstring p_aVP_Data )
                modifies m_service_Selection_AVP_dummy := {
                    aVP_Data := p_aVP_Data
                } // End of template m_service_Selection_AVP
                
                /**
                 * @desc HA IP address
                 * @param  TODO
                 * @see RFC4004
                 */
                template (value) MIP_Home_Agent_Address_AVP m_mip_Home_Agent_Address_AVP( in IpAddress p_ipAddress ) 
                modifies m_mip_Home_Agent_Address_AVP_dummy := {
                    aVP_Data := p_ipAddress
                } // End of tempate m_mip_Home_Agent_Address_AVP
                
                /**
                 * @desc HA FQDN
                 * @param  TODO
                 */
                template (value) MIP_Home_Agent_Host_AVP m_mip_Home_Agent_Host_AVP(
                                                                                   in template (value) Destination_Realm_AVP p_destinationRealm, 
                                                                                   in template (value) Destination_Host_AVP p_destinationHost) 
                modifies m_mip_Home_Agent_Host_AVP_dummy := {
                    destination_Realm   := p_destinationRealm,
                    destination_Host    := p_destinationHost
                } // End of tempate m_mip_Home_Agent_Host_AVP
                
                /**
                 * @desc Identity of the selected and dynamically allocated PDN GW for an APN
                 */
                template (value) MIP6_Agent_Info_AVP m_mip6_Agent_Info_AVP(
                                                                           in template (value) MIP_Home_Agent_Address_AVP p_mip_Home_Agent_Address1,
                                                                           in template (value) MIP_Home_Agent_Host_AVP p_mip_Home_Agent_Host
                ) modifies m_mip6_Agent_Info_AVP_dummy := {
                }
                    mip_Home_Agent_Address1 := p_mip_Home_Agent_Address1,
                    mip_Home_Agent_Host     := p_mip_Home_Agent_Host
                } // End of template m_mip6_Agent_Info_AVP
                
                /**
                 * @desc Identity of the network where the PDN-GW was allocated, in the case of dynamic PDN-GW assignment
                 * @param p_aVP_Data    TODO
                 * @param p_aVP_Data    Identity value
                 */
                template (value) Visited_Network_Identifier_AVP m_visited_Network_Identifier_AVP( in octetstring p_aVP_Data )
                modifies m_visited_Network_Identifier_AVP_dummy := {
                    aVP_Data := p_aVP_Data
                }
                } // End of template m_visited_Network_Identifier_AVP