Commit bf2e6148 authored by ulrichst's avatar ulrichst
Browse files

merge SN into Develop (templates and TestCases)

parents 3e31d554 d65d120f
Loading
Loading
Loading
Loading
+23 −1
Original line number Diff line number Diff line
@@ -1002,6 +1002,20 @@ module DiameterShDh_Templates {
                    origin_Realm                   := p_originRealm
                } // End of template md_snaBodyAvps 

                template (omit) SNA_Body_AVP md_snaBodyAvps_redirect(
                                                            in template (value) Result_Code_AVP              p_resultCode,
                                                            in template (value) Origin_Host_AVP              p_originHost,
                                                            in template (value) Origin_Realm_AVP             p_originRealm,
                                                            in template (value) Redirect_Host_AVP            p_redirect_host
                ) modifies m_SNA_Body_dummy := {
                    vendor_Specific_Application_Id := m_vendor_Specific_Appl_Id_dummy,//required only in TS129 229
                    auth_Session_State             := m_auth_Session_State_dummy,
                    result_Code                    := p_resultCode,
                    origin_Host                    := p_originHost,
                    origin_Realm                   := p_originRealm,
                    redirect_Host               := p_redirect_host
                } // End of template md_puaBodyAvps 
                                
            } // End of group sna_msg 
                        
        } // End of group Sh_answer_message_templates_send
@@ -1227,6 +1241,14 @@ module DiameterShDh_Templates {
                    experimental_Result         := p_experimentalResult
                } // End of template mdw_snaBodyAvps_experimental_result    
                
                template (present) SNA_Body_AVP mdw_snaBodyAvps_redirect_Host(
                												template Redirect_Host_AVP p_redirect_Host,
                                                                template Result_Code_AVP p_resultCode
                ) modifies mw_SNA_Body_dummy := {
                    result_Code                 := p_resultCode,
                    redirect_Host               := p_redirect_Host
                } // End of template mdw_snaBodyAvps_experimental_result   
                
            } // End of group sna_msg
            
        } // End of group Sh_answer_message_templates_receive 
+163 −0
Original line number Diff line number Diff line
@@ -3539,6 +3539,57 @@ module DiameterShDh_TestCases {
            } // End of group TP_ASRole_UserData
            
            group TP_ASRole_SubscriptionNotification{
                
                /**
                 * @desc Verify that the IUT sends a SN-Request to subscribe to Notification.
                 * <pre>
                 * Pics Selection: PICS_AS_AND_OSA_SCS_Role
                 * Initial conditions: 
                 *     with {
                 *        
                 *     }
                 * Expected behaviour:
                 *     Ensure that the IUT
                 *         to indicate to subscribe to Notification
                 *         sends an SN-Request
                 *             containing a Session-ID AVP
                 *             containing a Vendor-Specific-Application-Id AVP
                 *             containing an Auth-Session-State AVP
                 *             containing an Origin-Host AVP
                 *             containing an Origin-Realm AVP
                 *             containing a Destination-Realm AVP
                 *             containing a User-Identity AVP
                 *             containing a Subs-Req-Type AVP
                 *             containing a Data-Reference AVP.

                 * </pre>
                 * 
                 * @version    0.0.7
                 * @see        ETSI TS 103 571-2 TP_SH_AS_SN_01
                 */
                testcase TP_SH_AS_SN_01() runs on DiameterShDh system TestAdapter { 
                    // Local variables
                    var DiameterShDh v_diameterSh_as; 
                    
                    // Test control
                    if (not PICS_AS_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_HSS_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Sh_asUp(v_diameterSh_as);
        
                    // Start              
                    v_diameterSh_as.start(f_TC_SH_AS_SN_01()); 
            
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
            
                    f_cf_1Sh_asDown(v_diameterSh_as);
            
                } // End of testcase TP_SH_AS_SN_01 
                
            } // End of group TP_ASRole_SubscriptionNotification
            
            group TP_ASRole_PushNotification{
@@ -3690,6 +3741,66 @@ module DiameterShDh_TestCases {
            } // End of group TP_SLFRole_ProfileUpdate

            group TP_SLFRole_SubscriptionNotification{
                /**
                 * @desc Verify that the IUT processes an SN-Request and sends the corresponding SN-Answer.
                 * <pre>
                 * Pics Selection: PICS_SLF_Role
                 * Initial conditions: 
                 *     with {
                 *        
                 *     }
                 * Expected behaviour:
                 *     Ensure that the IUT
	             *        on receipt of a SN-Request
		         *           containing a Session-ID AVP
		         *           containing a Vendor-Specific-Application-Id AVP
		         *           containing an Auth-Session-State AVP
		         *           containing an Origin-Host AVP
		         *           containing an Origin-Realm AVP
	 	         *           containing a Destination-Realm AVP
		         *           containing a User-Identity AVP
		         *           containing a Subs-Req-Type AVP
		         *           containing a Data-Reference AVP
	             *        sends a SN-Answer
		         *           containing a Session-ID AVP
		         *           containing a Vendor-Specific-Application-Id AVP
		         *           containing an Auth-Session-State AVP
		         *           containing an Origin-Host AVP
		         *           containing an Origin-Realm AVP
		         *           containing an Redirect-Host AVP
			     *              indicating the HSS identity to be used
		         *           not containing an Experimental-Result AVP
		         *           containing a Result-Code AVP
			     *              indicating DIAMETER_REDIRECT_INDICATION (3006).

                 * </pre>
                 * 
                 * @version    0.0.7
                 * @see        ETSI TS 103 571-2 TP_DH_SLF_SN_01
                 */
                testcase TP_DH_SLF_SN_01() runs on DiameterShDh system TestAdapter { 
                    // Local variables
                    var DiameterShDh v_diameterSh_as; 
                    
                    // Test control
                    if (not PICS_AS_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_HSS_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Sh_asUp(v_diameterSh_as);
        
                    // Start
                    v_diameterSh_as.start(f_TC_DH_SLF_SN_01()); 
            
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
            
                    f_cf_1Sh_asDown(v_diameterSh_as);
            
                } // End of testcase TP_DH_SLF_SN_01 
                
            } // End of group TP_SLFRole_SubscriptionNotification

        } // End of group TP_SLF_Role
@@ -3828,6 +3939,58 @@ module DiameterShDh_TestCases {
            } // End of group TP_ASRole_ProfileUpdate

            group TP_ASRole_SubscriptionNotification{
                /**
                * @desc Verify that the IUT for user data update procedure sends an SN-Request to the SLF and after reception 
                * of an SN-Answer forwards the SN-Request to the HSS.
                * <pre>
                * Pics Selection: PICS_AS_AND_OSA__SCS_Role
                * Initial conditions: 
                *     with {
                *        
                *     }
                * Expected behaviour:
                *    Ensure that the IUT
	            *        to indicate a subscription to notification procedure
	            *        sends a SN-Request to the SLF
	            *        on receipt of a SN-Answer from the SLF
		        *           containing a Redirect-Host AVP
			    *               indicating the HSS identity to be used
		        *           not containing an Experimental-Result AVP
		        *           containing a Result-Code AVP
			    *               indicating DIAMETER_REDIRECT_INDICATION (3006)
	            *        sends a SN-Request to the HSS
		        *           containing a Destination-Host AVP
		        *           containing a Destination-Realm AVP.


                * </pre>
                * 
                * @version    0.0.7
                * @see        ETSI TS 103 571-2 TP_DH_AS_SN_01
                */
                testcase TP_DH_AS_SN_01() runs on DiameterShDh system TestAdapter { 
                	// Local variables
                    var DiameterShDh v_diameterSh_as; 
                    
                    // Test control
                    if (not PICS_AS_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_HSS_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Sh_asUp(v_diameterSh_as);

                    // Start
                    v_diameterSh_as.start(f_TC_DH_AS_SN_01()); 

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

                    f_cf_1Sh_asDown(v_diameterSh_as);

                } // End of testcase TP_DH_AS_SN_01  
                
            } // End of group TP_ASRole_SubscriptionNotification
        } // End of group TP_AS_OSARole