Commit 772d073e authored by garciay's avatar garciay
Browse files

Add Reset and Notify TCs for both MME and HSS

parent 8a5e1134
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -773,11 +773,41 @@ module DiameterS6a_HSS_TCFunctions {
    // 5.2.2.7 Reset
    group reset {
        
        function f_TC_HSS_RES_01() runs on TestAdapter {
            
            // Local variables
            
            // Preamble
            
            // Test Body
            // Clause 'when'
            
            // Clause 'then'
            
            // Postamble
            
        } // End of TC function f_TC_HSS_RES_01
        
    } // End of group reset
    
    // 5.2.2.7 Notification
    group notification {
        
        function f_TC_HSS_NOT_01() runs on TestAdapter {
            
            // Local variables
            
            // Preamble
            
            // Test Body
            // Clause 'when'
            
            // Clause 'then'
            
            // Postamble
            
        } // End of TC function f_TC_HSS_NOT_01
        
    } // End of group notification
    
} // End of module DiameterS6a_HSS_TCFunctions 
 No newline at end of file
+30 −0
Original line number Diff line number Diff line
@@ -479,11 +479,41 @@ module DiameterS6a_MME_TCFunctions {
    // 5.2.1.7 Reset
    group reset {
        
        function f_TC_MME_RES_01() runs on TestAdapter {
            
            // Local variables
            
            // Preamble
            
            // Test Body
            // Clause 'when'
            
            // Clause 'then'
            
            // Postamble
            
        } // End of TC function f_TC_MME_RES_01
        
    } // End of group reset
    
    // 5.2.1.7 Notification
    group notification {
        
        function f_TC_MME_NOT_01() runs on TestAdapter {
            
            // Local variables
            
            // Preamble
            
            // Test Body
            // Clause 'when'
            
            // Clause 'then'
            
            // Postamble
            
        } // End of TC function f_TC_MME_NOT_01
        
    } // End of group notification
    
    group nasProtocols {
+222 −0
Original line number Diff line number Diff line
@@ -1440,11 +1440,122 @@ module DiameterS6a_TestCases {
        // 5.2.1.7 Reset
        group reset {
            
            /**
             * @desc    Verify that the IUT when receiving a RS-Request shall return RS-Answer with all mandatory AVP’s and with appropriate result code
             * <pre>
             * Pics Selection: PICS_HSS_IUT, PICS_IUT_HLR
             * Initial conditions: 
             *     with {
             *        
             *    }
             * Expected behaviour:
             *     ensure that {
             *        when {
             *            the IUT receives an RS-Request
             *                containing a Session-ID AVP
             *                containing an Auth-Session-State AVP
             *                    indicating NO_STATE_MAINTAINED
             *                containing an Origin-Host AVP
             *                containing an Origin-Realm AVP
             *                containing a Destination-Host AVP
             *                containing a Destination-Realm AVP
             *        }
             *        then {
             *            the IUT sends an RS-Answer
             *                containing a Session-ID AVP
             *                containing an Auth-Session-State AVP
             *                    indicating NO_STATE_MAINTAINED
             *                containing an Origin-Host AVP
             *                containing an Origin-Realm AVP
             *                containing a Result-Code AVP
             *                    indicating DIAMETER_SUCCESS
             *        }
             * </pre>
             * 
             * @version    0.0.65
             * @see        ETSI DTS/INT-0094-2 V0.0.65 (2013-112) TP_MME_RES_01
             */
            testcase TC_MME_RES_01() runs on ServerSyncComp system TestAdapter {
                // Local variables
                var TestAdapter v_diameterS6a_hss; 
                
                // Test control
                if (not PICS_HSS_IUT or not PICS_IUT_HLR) {
                    log("*** " & __SCOPE__ & ": ERROR: 'not PICS_HSS_IUT or not PICS_IUT_HLR' required for executing the TC. ***"); 
                    stop;
                }
                
                // Test component configuration
                f_cf_1S6aUp_MME(v_diameterS6a_hss);
                
                // Start
                v_diameterS6a_hss.start(f_TC_MME_RES_01());
                
                // synchronize PTC on 3 sychronization points
                f_serverSyncNClients(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                
                f_cf_1S6aDown_MME(v_diameterS6a_hss);
            
            } // End of testcase TC_MME_RES_01
            
        } // End of group reset
        
        // 5.2.1.7 Notification
        group notification {
            
            /**
             * @desc    Verify that the IUT shall not support Emergency services and therefore can indicate request for Notification Procedure
             * <pre>
             * Pics Selection: PICS_MME_IUT, PICS_IUT_HLR
             * Initial conditions: 
             *     with {
             *        
             *    }
             * Expected behaviour:
             *     ensure that {
             *        when {
             *            the IUT is requested to indicate a request for Notification Procedure
             *        }
             *        then {
             *            the IUT sends anNO-Request
             *                containing a Session-ID AVP
             *                containing an Auth-Session-State AVP
             *                    indicating NO_STATE_MAINTAINED
             *                containing an Origin-Host AVP
             *                containing an Origin-Realm AVP
             *                containing a Destination-Realm AVP
             *                containing a User-Name AVP
             *        }
             * </pre>
             * 
             * @version    0.0.65
             * @see        ETSI DTS/INT-0094-2 V0.0.65 (2013-112) TP_MME_NOT_01
             */
            testcase TC_MME_NOT_01() runs on ServerSyncComp system TestAdapter {
                // Local variables
                var TestAdapter v_diameterS6a_hss; 
                var TestAdapter v_diameterS6a_nas; 
                
                // Test control
                if (not PICS_MME_IUT or not PICS_IUT_HLR) {
                    log("*** " & __SCOPE__ & ": ERROR: 'not PICS_MME_IUT or not PICS_IUT_HLR' required for executing the TC. ***"); 
                    stop;
                }
                
                // Test component configuration
                f_cf_1S6aUp_MME(v_diameterS6a_hss);

                // Start
                v_diameterS6a_nas.start(f_TC_NAS_UL_Trigger());
                v_diameterS6a_hss.start(f_TC_MME_UL_01());

                // synchronize PTC on 3 sychronization points
                f_serverSyncNClients(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});

                f_cf_1S6aDown_MME(v_diameterS6a_hss);
            
            } // End of testcase TC_MME_NOT_01
            
        } // End of group notification
        
    } // End of group mmeRole
@@ -3248,11 +3359,122 @@ module DiameterS6a_TestCases {
        // 5.2.2.7 Reset
        group reset {
            
            /**
             * @desc    Verify that the IUT can successfully initiate an RS-Request including all mandatory AVP’s to indicate to all relavant MMEs and combined MME/SGSNs that IUT has restarted
             * <pre>
             * Pics Selection: PICS_HSS_IUT, PICS_IUT_HLR
             * Initial conditions: 
             *     with {
             *        
             *    }
             * Expected behaviour:
             *     ensure that {
             *        when {
             *            the IUT is requested to indicate to the MME that IUT has restarted
             *        }
             *        then {
             *            the IUT sends sends an RS-Request
             *                containing a Session-ID AVP
             *                containing an Auth-Session-State AVP
             *                    indicating NO_STATE_MAINTAINED
             *                containing an Origin-Host AVP
             *                containing an Origin-Realm AVP
             *                containing a Destination-Host AVP
             *                containing a Destination-Realm AVP
             *        }
             * </pre>
             * @remark 2 MME could be involved as test components
             * 
             * @version    0.0.65
             * @see        ETSI DTS/INT-0094-2 V0.0.65 (2013-112) TP_HSS_RES_01
             */
            testcase TC_HSS_RES_01() runs on ServerSyncComp system TestAdapter {
                // Local variables
                var TestAdapter v_diameterS6a_mme; 
                
                // Test control
                if (not PICS_HSS_IUT or not PICS_IUT_HLR) {
                    log("*** " & __SCOPE__ & ": ERROR: 'not PICS_HSS_IUT or not PICS_IUT_HLR' required for executing the TC. ***"); 
                    stop;
                }
                
                // Test component configuration
                f_cf_1S6aUp_HSS(v_diameterS6a_mme);

                // Start
                v_diameterS6a_mme.start(f_TC_HSS_RES_01());

                // synchronize PTC on 3 sychronization points
                f_serverSyncNClients(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});

                f_cf_1S6aDown_HSS(v_diameterS6a_mme);
            
            } // End of testcase TC_HSS_RES_01
            
        } // End of group reset
        
        // 5.2.2.7 Notification
        group notification {
            
            /**
             * @desc    Verify that the IUT can successfully process all mandatory AVPs in an NO-Request.received due to Notification Procedure
             * <pre>
             * Pics Selection: PICS_HSS_IUT, PICS_IUT_HLR
             * Initial conditions: 
             *     with {
             *        
             *    }
             * Expected behaviour:
             *     ensure that {
             *        when {
             *            the IUT receives an NO-Request
             *                containing a Session-ID AVP
             *                containing an Auth-Session-State AVP
             *                    indicating NO_STATE_MAINTAINED
             *                containing an Origin-Host AVP
             *                containing an Origin-Realm AVP
             *                containing a Destination-Realm AVP
             *                containing a User-Name AVP
             *                    indicating known IMSI
             *        }
             *        then {
             *            the IUT sends an NO-Answer
             *                containing a Session-ID AVP
             *                containing a Result-Code AVP
             *                    indicating DIAMETER_SUCCESS
             *                containing an Auth-Session-State AVP
             *                    indicating NO_STATE_MAINTAINED
             *                containing an Origin-Host AVP
             *                containing an Origin-Realm AVP
             *        }
             * </pre>
             * 
             * @version    0.0.65
             * @see        ETSI DTS/INT-0094-2 V0.0.65 (2013-112) TP_HSS_NOT_01
             */
            testcase TC_HSS_NOT_01() runs on ServerSyncComp system TestAdapter {
                // Local variables
                var TestAdapter v_diameterS6a_mme; 
                
                // Test control
                if (not PICS_HSS_IUT or not PICS_IUT_HLR) {
                    log("*** " & __SCOPE__ & ": ERROR: 'not PICS_HSS_IUT or not PICS_IUT_HLR' required for executing the TC. ***"); 
                    stop;
                }
                
                // Test component configuration
                f_cf_1S6aUp_HSS(v_diameterS6a_mme);
                
                // Start
                v_diameterS6a_mme.start(f_TC_HSS_NOT_01());
                
                // synchronize PTC on 3 sychronization points
                f_serverSyncNClients(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                
                f_cf_1S6aDown_HSS(v_diameterS6a_mme);
            
            } // End of testcase TC_HSS_NOT_01
            
        } // End of group notification
        
    } // End of group hssRole