Commit 98f7960d authored by garciay's avatar garciay
Browse files

Reorganise templates

Add comments
parent aab1d4be
Loading
Loading
Loading
Loading
+116 −117

File changed.

Preview size limit exceeded, changes collapsed.

+14 −12
Original line number Diff line number Diff line
@@ -217,7 +217,7 @@ module DiameterS6a_MME_TCFunctions {
                        mdw_ULA_TCs( 
                            ?,
                            mdw_hssUlaBodyAvps_TC_04( // TODO To be refined
                                mdw_subscriptionData_aPN_Configuration_Profile(
                                mdw_subscriptionData_operator_Determined_Barring(
                                    ?, 
                                    ?
                ))))) { // Expected UL-Answer message 
@@ -279,7 +279,8 @@ module DiameterS6a_MME_TCFunctions {
            log("*** " & __SCOPE__ & ": INFO: Preamblue done. ***");
            
            // Test Body
            // Clause 'when': FIXME How to trigger 'the IUT sends a UL-Request'
            // Clause 'when': the IUT sends a UL-Request
            action("the IUT sends a UL-Reques");
            
            // Clause 'then'
            tc_ac.start;
@@ -354,7 +355,8 @@ module DiameterS6a_MME_TCFunctions {
            log("*** " & __SCOPE__ & ": INFO: Preamblue done. ***");
            
            // Test Body
            // Clause 'when': FIXME How to trigger 'the IUT sends a UL-Request'
            // Clause 'when': the IUT sends a UL-Request
            action("the IUT sends a UL-Reques");
            
            // Clause 'then'
            tc_ac.start;
@@ -621,7 +623,7 @@ module DiameterS6a_MME_TCFunctions {
                                vc_originRealm,                         // containing an Origin-Realm AVP
                                ?,                                      // containing an Destination_Realm_AVP
                                ?,                                      // containing an User_Name_AVP
                                mdw_pURFlags(bit2int('01'B))            // containing an PUR_Flags_AVP
                                mdw_pUERFlags(bit2int('01'B))           // containing an PUR_Flags_AVP
                                )))) {                                
                    f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
                    log("*** " & __SCOPE__ & ": PASS: Expected was received. ***");
@@ -656,7 +658,7 @@ module DiameterS6a_MME_TCFunctions {
                                vc_originRealm,                         // containing an Origin-Realm AVP
                                ?,                                      // containing an Destination_Realm_AVP
                                ?,                                      // containing an User_Name_AVP
                                mdw_pURFlags(bit2int('11'B))            // containing an PUR_Flags_AVP
                                mdw_pUERFlags(bit2int('11'B))           // containing an PUR_Flags_AVP
                                )))) {                                
                    f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
                    log("*** " & __SCOPE__ & ": PASS: Expected was received. ***");
@@ -708,7 +710,7 @@ module DiameterS6a_MME_TCFunctions {
                                vc_originRealm,                                // containing an Origin-Realm AVP
                                ?,                                             // containing an Destination_Realm_AVP
                                ?,                                              // containing an User_Name_AVP
                                mdw_pURFlags((bit2int('01'B),bit2int('10'B)))            // containing an PUR_Flags_AVP
                                mdw_pUERFlags((bit2int('01'B),bit2int('10'B)))  // containing an PUR_Flags_AVP
                                )))) {                                
                    f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
                    log("*** " & __SCOPE__ & ": PASS: Expected was received. ***");
+2 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ module DiameterS6a_PICS {
         * @desc Does MME act as the IUT? 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.2/1 
         */
        modulepar boolean PICS_MME_IUT := false; // FIXME Use one exclusive PIXIT for (PICS_MME_IUT/PICS_HSS_IUT/) - Use unumerated
        modulepar boolean PICS_MME_IUT := false;
        
        /**
         * @desc Set to false to trigger NAS-Protocol using the mobile phone
@@ -214,6 +214,7 @@ module DiameterS6a_PICS {
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.5/7.1 
         */
        modulepar boolean PICS_IUT_FAULT_INC_PROCEDURE := false; 
        
        /**
         * @desc Does the IUT support notification procedures?
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.5/8 
+67 −35
Original line number Diff line number Diff line
@@ -87,9 +87,6 @@ module DiameterS6a_PIXITS {
         */
        modulepar Diameter_Identity PX_MIP6_AGENT_DEST_HOST := "mipv6.host.etsi.org";
        
        
        
        
    } // End of group ipSettings
    
    /**
@@ -117,80 +114,97 @@ module DiameterS6a_PIXITS {
        
        /**
         * @desc The user name
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/1 
         */
        modulepar UTF8String PX_USR_NAME := "userName";
        
        /**
         * @desc An invalid user name
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/2 
         */
        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 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/3 
         */
        modulepar UTF8String PX_NO_APN_USR_NAME := "userNoAPN";
        
        /**
         * @desc A user name with no APN configure
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/4 
         */
        modulepar UTF8String PX_NO_EPSGPRS_USR_NAME := "userNoEpsGprs";
        
        /**
         * @desc Stored MME identity and stored SGSN identity
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/5 
         */
        modulepar UTF8String PX_STORED_MME_SGSN := "storedMmeStoredSgsn";
        
        /**
         * @desc Stored MME identity and not stored SGSN identity
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/6 
         */
        modulepar UTF8String PX_STORED_MME_NOT_SGSN := "storedMmeNotStoredSgsn";
        
        /**
         * @desc Stored MME identity and not stored SGSN identity
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/7 
         */
        modulepar UTF8String PX_STORED_SGSN_NOT_MME := "storedSgsnNotStoredMme";
        
        /**
         * @desc The user name
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/8 
         */
        modulepar UInt32 PX_CONTEXT_ID := 1;
        
        /**
         * @desc The user name
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/9 
         */
        modulepar charstring PX_SERVICE_SEL := "serviceSel";
        
        /**
         * @desc The user name
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @desc A visited network identifier
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/10 
         */
        modulepar octetstring PX_VISITED_NTW_ID := 'CAFEDECA'O;
        
        /**
         * @desc A visited PLMN identifier
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/11 
         */
        modulepar Oct3 PX_VISITED_PLMN_ID := '000000'O;
        
        /**
         * @desc Other visited PLMN identifier
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/12 
         */
        modulepar Oct3 PX_NEW_VISITED_PLMN_ID := '000001'O;
        
        /**
         * @desc Not allowed visited PLMN identifier
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/13 
         */
        modulepar Oct3 PX_NOT_ALLOWED_VISITED_PLMN_ID := 'ffffff'O;
        
        /**
         * @desc Indicates the type of cancellation
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/14 
         */
        modulepar Cancellation_Type_Code PX_CANCELLATION_TYPE := MME_UPDATE_PROCEDURE_E;
        
        /**
         * @desc The SGSN number
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.x/x 
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/15 
         */
        modulepar octetstring PX_SGSN_NUMBER := 'DEADBEEF'O;
        
        /**
         * @desc Contains the concatenation of RAND and AUTS.
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/16 
         * @see  ETSI TS 129 272 V10.8.0 (2013-07) Clause 7.3.15 Re-Synchronization-Info
         */
        modulepar octetstring PX_ReSYNCHRONISATION_INFO := 'CAFEDECA'O;
@@ -206,125 +220,143 @@ module DiameterS6a_PIXITS {
        /**
         * @desc Radio access technology for the IP-RAT-Type AVP in CCR messages 
         *       Available values: WLAN, VIRTUAL, UTRAN, GERAN, GAN, HSPA_EVOLUTION, EUTRAN, CDMA2000, HRPD, UMB, EHRPD
         *  @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) TODO
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/17
         */
        modulepar RAT_Type PX_RAT_TYPE := GERAN_E;
        
        /**
         * @desc Default ULR-Flags: all flags unset
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/18
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_DSR_FLAGS := 0;
        
        /**
         * @desc Default ULR-Flags: all flags unset
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/19
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULR_FLAGS := 0;
        
        /**
         * @desc ULR-Flags AVP with Single-Registration-Indication bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/20
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULR_FLAGS_S6a_SINGLE_REG := 1; // Bit0
        
        /**
         * @desc ULR-Flags AVP with S6a-indicator bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/21
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULR_FLAGS_S6a_IND_SET := 2; // Bit1
        
        /**
         * @desc ULR-Flags AVP with Skip-Subscriber-Data bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/22
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULR_FLAGS_S6a_SKIP_SUBSCRIBER_DATA := 4; // Bit2
        
        /**
         * @desc ULR-Flags AVP with GPRS-Subscription-Data-Indicator bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/23
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULR_FLAGS_S6a_GPRS_SUBSCRIPTION_DATA := 8; // Bit3
        
        /**
         * @desc ULR-Flags AVP with Node-Type-Indicator bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/24
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULR_FLAGS_S6a_GPRS_NODE_TYPE_IND := 16; // Bit4
        
        /**
         * @desc ULR-Flags AVP with Initial-Attach-Indicator bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/25
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULR_FLAGS_S6a_INITIAL_ATTACH := 32; // Bit5
        
        /**
         * @desc Default ULA-Flags AVP: all flags unset
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/26
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULA_FLAGS := 0;
        
        /**
         * @desc ULR-Flags AVP with S6a-indicator bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/27
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.7/1: ULR-Flags
         */
        modulepar UInt32 PX_ULA_FLAGS_SEP_IND_SET := 1;
        
        /**
         * @desc PUR-Flags AVP with Freeze M-TMSI bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/28
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.149/1: PUR-Flags
         */
        modulepar UInt32 PX_PUR_UE_IN_MME := 1; // Bit0
        modulepar UInt32 PX_PUER_UE_IN_MME := 1; // Bit0
        
        /**
         * @desc PUR-Flags AVP with Freeze P-TMSI bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/29
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.149/1: PUR-Flags
         */
        modulepar UInt32 PX_PUR_UE_IN_SGSN := 2; // Bit1
        modulepar UInt32 PX_PUER_UE_IN_SGSN := 2; // Bit1
        
        /**
         * @desc PUR-Flags AVP with Freeze M-TMSI bit set
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.149/1: PUR-Flags
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/30
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.149/1: PUER-Flags
         */
        modulepar UInt32 PX_PUR_FREEZE_M_TMSI := 1; // Bit0
        modulepar UInt32 PX_PUER_FREEZE_M_TMSI := 1; // Bit0
        
        /**
         * @desc PUR-Flags AVP with Freeze P-TMSI bit set
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.149/1: PUR-Flags
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/31
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.149/1: PUER-Flags
         */
        modulepar UInt32 PX_PUR_FREEZE_P_TMSI := 2; // Bit1
        modulepar UInt32 PX_PUER_FREEZE_P_TMSI := 2; // Bit1
        
        /**
         * @desc PUR-Flags AVP with T-ADS Data Request bit set
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.48/1: PUA-Flags
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/32
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.103/1: IDR-Flags
         */
        modulepar UInt32 PX_IDR_T_ADS_DATA_REQUEST := 2; // Bit1
        
        /**
         * @desc PUR-Flags AVP with EPS User State Request bit set
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.48/1: PUA-Flags
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/33
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.103/1: IDR-Flags
         */
        modulepar UInt32 PX_IDR_EPS_USER_STATE_REQUEST := 4; // Bit2
        
        /**
         * @desc PUR-Flags AVP with EPS Location Information Request bit set
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.48/1: PUA-Flags
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/34
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.103/1: IDR-Flags
         */
        modulepar UInt32 PX_IDR_EPS_LOCATIONINFO_REQUEST := 8; // Bit3
        
        /**
         * @desc PUR-Flags AVP with Current Location Request bit set
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.48/1: PUA-Flags
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/35
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.103/1: IDR-Flags
         */
        modulepar UInt32 PX_IDR_CURRENT_LOCATION_REQUEST := 16; // Bit4
        
        /**
         * @desc DSR-Flags AVP with Freeze P-TMSI bit set
         * @see  ETSI DTS/INT-094-1 V0.0.3 (2013-11) A.10/36
         * @see ETSI TS 129 272 V10.8.0 (2013-07) Table 7.3.25/1: DSR-Flags
         */
        modulepar UInt32 PX_DSR_COMPLETE_APN_CONF_PROFILE_WITHDRAWAL := 2; // Bit1
        
        
        
        
        
        
    } //end group DiameterCommonS6aData
    
} // End of module DiameterS6a_PIXITS
+22 −4
Original line number Diff line number Diff line
@@ -106,10 +106,16 @@
        
        group mmeRole {
            
            /**
             * @desc Preamble for NAS protocol triggerring
             */
            function f_preamble_NAS() runs on TestAdapter {
//                activate( nas_default( ) );
            }
            
            /**
             * @desc Preamble for MME IUT role
             */
            function f_preamble_MME() runs on TestAdapter {
                // Initialilize the component's variables' 
                f_DiameterS6a_init();
@@ -124,6 +130,9 @@
        
        group hssRole {
            
            /**
             * @desc Preamble for HSS IUT role
             */
            function f_preamble_HSS() runs on TestAdapter {
                // Initialilize the component's variables' 
                f_DiameterS6a_init();
@@ -142,24 +151,33 @@
        
        group mmeRole {
            
            /**
             * @desc Postamble for NAS protocol triggerring
             */
            function f_postamble_NAS() runs on TestAdapter {
                // Unmap NAS-Protocol port
                // Deactivate defaults
            }
            
            /**
             * @desc Postamble for MME IUT role
             */
            function f_postamble_MME() runs on TestAdapter {
                // Deactivate defaults
                deactivate;
            } // End of function f_preamble_MME
            } // End of function f_postamble_MME
        
        } // End of group mmeRole
        
        group hssRole {
            
            /**
             * @desc Postamble for HSS IUT role
             */
            function f_postamble_HSS() runs on TestAdapter {
                // Deactivate defaults
                deactivate;
            } // End of function f_preamble_HSS
            } // End of function f_postamble_HSS
        
        } // End of group hssRole
        
@@ -190,12 +208,12 @@
         * @param p_purMSG
         * @verdict Unchanged
         */
        function f_triggerPurMessage ( template (value) PUER_MSG p_purMSG ) 
        function f_triggerPuerMessage ( template (value) PUER_MSG p_purMSG ) 
        runs on TestAdapter {
            MME_S6a.send(
                DIAMETER_MSG : { pUER_MSG := p_purMSG } 
            );
        } // End of function f_triggerPurMessage
        } // End of function f_triggerPuerMessage
        
        /**
         * @desc Function used to trigger a CL-Request message
Loading