Commit 4568eea2 authored by wattelet's avatar wattelet
Browse files

TC_MME_CL_02 added

parent a9368f6e
Loading
Loading
Loading
Loading
+36 −3
Original line number Diff line number Diff line
@@ -243,15 +243,48 @@ module DiameterS6a_MME_TCFunctions {
        function f_TC_MME_CL_02() runs on TestAdapter {
            
            // Local variables
			var User_Name_AVP               v_user_Name         := m_user_Name ( PX_USR_NAME );
            var Auth_Session_State_AVP		v_noStateMaintained := m_auth_Session_State_noStateMaintained;
			var Cancellation_Type_AVP		v_cancellationType  := m_cancellationTypeParam ( INITIAL_ATTACH_PROCEDURE_E );
            var Result_Code_AVP		        v_resultCode        := m_resultCode ( DIAMETER_SUCCESS_E );
            
            // Preamble
            f_preamble_MME();
            f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
            log("*** " & __SCOPE__ & ": INFO: Preamblue done. ***");
            
            // Test Body
            // Clause 'when'
            // TP 'when': 
			HSS_S6a.send ( m_mmeCancelLocationRequest ( md_CLR_TCs ( vc_sessionId, md_clrBodyAvps_01 (
			                    v_noStateMaintained,                    // containing an Auth-Session-State AVP indicating NO_STATE_MAINTAINED
				                vc_originHost,                          // containing an Origin-Host AVP
				                vc_originRealm,                         // containing an Origin-Realm AVP
                                vc_destinationHost,                     // containing a Destination-Host AVP
				                vc_destinationRealm,                    // containing a Destination-Realm AVP
			                    v_user_Name,                            // containing a User-Name AVP
			                    v_cancellationType ))));
			
            // Clause 'then'
            // TP 'then': the IUT sends a CL-Answer 
            tc_ac.start;
            alt {
                []  HSS_S6a.receive ( mw_hssCancelLocationAnswer ( mdw_CLA_TCs ( vc_sessionId, mdw_claBodyAvps_01 (
				                v_resultCode,                           // containing a Result-Code AVP indicating DIAMETER_SUCCESS
				                v_noStateMaintained,                    // containing an Auth-Session-State AVP indicating NO_STATE_MAINTAINED
                                vc_originHost,                          // containing an Origin-Host AVP
                                vc_originRealm )))) {                   // containing an Origin-Realm AVP
                    f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
                    log("*** " & __SCOPE__ & ": PASS: Expected was received. ***");
                }
                []  tc_ac.timeout {
                    f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
                    log("*** " & __SCOPE__ & ": INCONC: Message was not received in due time. ***");
                }
            } // End of alt
            
            // Postamble
            f_postamble_MME();
            f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
            log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
            
        } // End of TC function f_TC_MME_CL_02
        
+6 −0
Original line number Diff line number Diff line
@@ -1312,6 +1312,12 @@ module DiameterS6a_Templates {
						cancellation_Type   := p_cancellation_Type
                    } // End of tempate md_clrBodyAvps_01

                     template (value) Cancellation_Type_AVP m_cancellationTypeParam (
                                                                       in template (value) Cancellation_Type_Code p_cancellation_Type
					) modifies m_cancellationType_dummy := {
                        cancellation_Type   := p_cancellation_Type
                    } // End of template m_cancellationTypeParam
 
                } // End of group t_TC_HSS_CLR

                /**