Loading DiameterS6a/ttcn/DiameterS6a_MME_TCFunctions.ttcn3 +45 −0 Original line number Diff line number Diff line Loading @@ -1466,6 +1466,27 @@ module DiameterS6a_MME_TCFunctions { function f_TC_MME_DSD_02() runs on TestAdapter { // Local variables var User_Name_AVP v_user_Name := md_user_Name ( PX_INVALID_USR_NAME ); var Auth_Session_State_AVP v_noStateMaintained := md_auth_Session_State_noStateMaintained; var MIP_Home_Agent_Address_AVP v_mipHomeAgentAddress := md_mipHomeAgentAddress ( PX_MIP6_AGENT_IP_ADDRESS ); var Destination_Realm_AVP v_mIP6Destination_Realm := m_destinationRealm ( PX_MIP6_AGENT_DEST_REALM ); var Destination_Host_AVP v_mip6Destination_Host := m_destinationHost ( PX_MIP6_AGENT_DEST_HOST ); var MIP_Home_Agent_Host_AVP v_mipHomeAgentHost := md_mipHomeAgentHost ( v_mIP6Destination_Realm, v_mip6Destination_Host ); var MIP6_Agent_Info_AVP v_mIP6AgentInfo := md_mip6_Agent_Info_AVP ( v_mipHomeAgentAddress, v_mipHomeAgentHost); var All_APN_Conf_Included_Id_AVP v_allAPNConfIncludedId := m_allAPNConfIncludedId ( MODIFIED_ADDED_APN_CONFIGURATIONS_INCLUDED_E ); var Context_Identifier_AVP v_contextIdentifier := md_contextIdentifier ( PX_CONTEXT_ID ); var PDN_Type_AVP v_pdnType := m_pdnType ( IPv4_OR_IPv6_E ); var Service_Selection_AVP v_serviceSelection := m_serviceSelection ( PX_SERVICE_SEL ); var APN_Configuration_AVP v_apnConfiguration := m_apnConfiguration ( v_contextIdentifier, v_pdnType, v_serviceSelection, v_mIP6AgentInfo ); var APN_Configuration_Profile_AVP v_apnConfigurationProfile := m_apnConfigurationProfile ( v_contextIdentifier, v_allAPNConfIncludedId, v_apnConfiguration ); var DSR_Flags_AVP v_dSR_Flags := m_dsrFlags_AVP ( 0 ); var Experimental_Result_Type v_resultCode := DIAMETER_ERROR_USER_UNKNOWN_E; // Preamble f_preamble_MME(); Loading @@ -1474,8 +1495,32 @@ module DiameterS6a_MME_TCFunctions { // Test Body // Clause 'when' HSS_S6a.send ( m_mmeDeleteSubscriberDataRequest ( md_DSR_TCs ( vc_sessionId, md_dsrBodyAvps_Flags ( 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_dSR_Flags )))); // Clause 'then' tc_ac.start; alt { [] HSS_S6a.receive ( mw_hssDeleteSubscriberDataAnswer ( mdw_DSA_TCs ( vc_sessionId, mdw_dsaBodyAvps_ExperimentalResult ( omit, // NOT containing a Result-Code AVP indicating DIAMETER_SUCCESS *, // containing an Auth-Session-State AVP indicating NO_STATE_MAINTAINED vc_originHost, // containing an Origin-Host AVP vc_originRealm, // containing an Origin-Realm AVP v_resultCode )))) { // containing an ExpResult 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(); Loading DiameterS6a/ttcn/DiameterS6a_Templates.ttcn +24 −12 Original line number Diff line number Diff line Loading @@ -3092,7 +3092,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3111,11 +3111,13 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { // ) modifies m_S6a_IDA_Body_dummy := { experimental_Result := mw_experimentalResult ( mw_experimentalResultCode ( p_experimentalResult )), auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, origin_Realm := p_originRealm origin_Realm := p_originRealm, result_Code := omit } // End of template mdw_idaBodyAvps_ExperimentalResult /** Loading @@ -3131,7 +3133,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3154,7 +3156,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3175,7 +3177,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3196,7 +3198,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3217,17 +3219,27 @@ module DiameterS6a_Templates { * @param p_result Result of CLR execution */ template (present) DSA_Body_AVP mdw_dsaBodyAvps_Result ( in template (present) Result_Code_AVP p_result, in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_DSA_Body_dummy := { in template Result_Code_AVP p_result, in template Auth_Session_State_AVP p_auth_Session_State, in template Origin_Host_AVP p_originHost, in template Origin_Realm_AVP p_originRealm ) modifies mw_S6a_DSA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, origin_Realm := p_originRealm } // End of template mdw_dsaBodyAvps_Result template (present) DSA_Body_AVP mdw_dsaBodyAvps_ExperimentalResult ( in template Result_Code_AVP p_result, in template Auth_Session_State_AVP p_auth_Session_State, in template Origin_Host_AVP p_originHost, in template Origin_Realm_AVP p_originRealm, in template (present) Experimental_Result_Type p_experimentalResult ) modifies mdw_dsaBodyAvps_Result := { experimental_Result := mw_experimentalResult ( mw_experimentalResultCode ( p_experimentalResult )) } // End of template mdw_dsaBodyAvps_ExperimentalResult } // End of group t_TC_HSS_DSA /** Loading Loading
DiameterS6a/ttcn/DiameterS6a_MME_TCFunctions.ttcn3 +45 −0 Original line number Diff line number Diff line Loading @@ -1466,6 +1466,27 @@ module DiameterS6a_MME_TCFunctions { function f_TC_MME_DSD_02() runs on TestAdapter { // Local variables var User_Name_AVP v_user_Name := md_user_Name ( PX_INVALID_USR_NAME ); var Auth_Session_State_AVP v_noStateMaintained := md_auth_Session_State_noStateMaintained; var MIP_Home_Agent_Address_AVP v_mipHomeAgentAddress := md_mipHomeAgentAddress ( PX_MIP6_AGENT_IP_ADDRESS ); var Destination_Realm_AVP v_mIP6Destination_Realm := m_destinationRealm ( PX_MIP6_AGENT_DEST_REALM ); var Destination_Host_AVP v_mip6Destination_Host := m_destinationHost ( PX_MIP6_AGENT_DEST_HOST ); var MIP_Home_Agent_Host_AVP v_mipHomeAgentHost := md_mipHomeAgentHost ( v_mIP6Destination_Realm, v_mip6Destination_Host ); var MIP6_Agent_Info_AVP v_mIP6AgentInfo := md_mip6_Agent_Info_AVP ( v_mipHomeAgentAddress, v_mipHomeAgentHost); var All_APN_Conf_Included_Id_AVP v_allAPNConfIncludedId := m_allAPNConfIncludedId ( MODIFIED_ADDED_APN_CONFIGURATIONS_INCLUDED_E ); var Context_Identifier_AVP v_contextIdentifier := md_contextIdentifier ( PX_CONTEXT_ID ); var PDN_Type_AVP v_pdnType := m_pdnType ( IPv4_OR_IPv6_E ); var Service_Selection_AVP v_serviceSelection := m_serviceSelection ( PX_SERVICE_SEL ); var APN_Configuration_AVP v_apnConfiguration := m_apnConfiguration ( v_contextIdentifier, v_pdnType, v_serviceSelection, v_mIP6AgentInfo ); var APN_Configuration_Profile_AVP v_apnConfigurationProfile := m_apnConfigurationProfile ( v_contextIdentifier, v_allAPNConfIncludedId, v_apnConfiguration ); var DSR_Flags_AVP v_dSR_Flags := m_dsrFlags_AVP ( 0 ); var Experimental_Result_Type v_resultCode := DIAMETER_ERROR_USER_UNKNOWN_E; // Preamble f_preamble_MME(); Loading @@ -1474,8 +1495,32 @@ module DiameterS6a_MME_TCFunctions { // Test Body // Clause 'when' HSS_S6a.send ( m_mmeDeleteSubscriberDataRequest ( md_DSR_TCs ( vc_sessionId, md_dsrBodyAvps_Flags ( 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_dSR_Flags )))); // Clause 'then' tc_ac.start; alt { [] HSS_S6a.receive ( mw_hssDeleteSubscriberDataAnswer ( mdw_DSA_TCs ( vc_sessionId, mdw_dsaBodyAvps_ExperimentalResult ( omit, // NOT containing a Result-Code AVP indicating DIAMETER_SUCCESS *, // containing an Auth-Session-State AVP indicating NO_STATE_MAINTAINED vc_originHost, // containing an Origin-Host AVP vc_originRealm, // containing an Origin-Realm AVP v_resultCode )))) { // containing an ExpResult 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(); Loading
DiameterS6a/ttcn/DiameterS6a_Templates.ttcn +24 −12 Original line number Diff line number Diff line Loading @@ -3092,7 +3092,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3111,11 +3111,13 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { // ) modifies m_S6a_IDA_Body_dummy := { experimental_Result := mw_experimentalResult ( mw_experimentalResultCode ( p_experimentalResult )), auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, origin_Realm := p_originRealm origin_Realm := p_originRealm, result_Code := omit } // End of template mdw_idaBodyAvps_ExperimentalResult /** Loading @@ -3131,7 +3133,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3154,7 +3156,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3175,7 +3177,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3196,7 +3198,7 @@ module DiameterS6a_Templates { in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_IDA_Body_dummy := { ) modifies mw_S6a_IDA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, Loading @@ -3217,17 +3219,27 @@ module DiameterS6a_Templates { * @param p_result Result of CLR execution */ template (present) DSA_Body_AVP mdw_dsaBodyAvps_Result ( in template (present) Result_Code_AVP p_result, in template (present) Auth_Session_State_AVP p_auth_Session_State, in template (present) Origin_Host_AVP p_originHost, in template (present) Origin_Realm_AVP p_originRealm ) modifies m_S6a_DSA_Body_dummy := { in template Result_Code_AVP p_result, in template Auth_Session_State_AVP p_auth_Session_State, in template Origin_Host_AVP p_originHost, in template Origin_Realm_AVP p_originRealm ) modifies mw_S6a_DSA_Body_dummy := { result_Code := p_result, auth_Session_State := p_auth_Session_State, origin_Host := p_originHost, origin_Realm := p_originRealm } // End of template mdw_dsaBodyAvps_Result template (present) DSA_Body_AVP mdw_dsaBodyAvps_ExperimentalResult ( in template Result_Code_AVP p_result, in template Auth_Session_State_AVP p_auth_Session_State, in template Origin_Host_AVP p_originHost, in template Origin_Realm_AVP p_originRealm, in template (present) Experimental_Result_Type p_experimentalResult ) modifies mdw_dsaBodyAvps_Result := { experimental_Result := mw_experimentalResult ( mw_experimentalResultCode ( p_experimentalResult )) } // End of template mdw_dsaBodyAvps_ExperimentalResult } // End of group t_TC_HSS_DSA /** Loading