Commit f83d90f9 authored by rennoch's avatar rennoch
Browse files

add TC_VPCRF_VIF_02

parent e2373966
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1543,7 +1543,7 @@ module DiameterS9_Gxx_TCFunctions {
            *  @desc    This is the test case function f_TC_VPCRF_VDS_02_BBERF
            *  @param
            */
            function f_TC_VPCRF_VDS_02_BBERF()
            function f_TC_VPCRF_VDS_02_BBERF1()
            runs on DiameterComponent {

                f_preamble_BBERF();
+45 −0
Original line number Diff line number Diff line
@@ -3077,6 +3077,51 @@ module DiameterS9_S9_TCFunctions {

            } // end function f_TC_VPCRF_VIF_01

            /*
            *  @desc    This is the test case function f_TC_VPCRF_VIF_01
            *  @param
            */
            function f_TC_VPCRF_VIF_02()
            runs on DiameterComponent {
				
                var template Subsession_Id_AVP v_subSessionId;
				
                f_preamble_HPCRF();

                f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync
                
                //CCR INITIAL REQUEST
                f_awaiting_CCR(mw_CCR_SubSessEnfInf_QoS(?,
                                                        vc_originHost,
                                                        vc_originRealm,
                                                        vc_destinationRealm,
                                                        mw_cC_Request_Type(INITIAL_REQUEST_E),
                                                        *,//Subscription id
                                                        {mw_subsesEnforcementInfo_Operation_RRremove_EvTri(mw_subsessionId_dummy(?),
                                                                                            mw_subsessionOperation_dummy(Subsession_Operation_Code:MODIFICATION_E),
                                                                                            ?, //RoutingRuleRemove
                                                            								{m_event_Trigger(ROUTING_RULE_CHANGE_E)}
                                                                                           )},
                                                        *,//QoS_Rule_Report 
                                                        *//QoS_information
                                                        ));

                f_send_CCA(m_CCA_basic(vc_sessionId,
                                       vc_originHost,
                                       vc_originRealm,
                                       m_cC_Request_Type(INITIAL_REQUEST_E),
                                       m_resultCode(m_resultCode_diameterSuccess)));

                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync

                f_await_session_termination_HPCRF(); // postamble for termination of the rest of the subsessions 

                f_postamble_HPCRF();

                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync

            } // end function f_TC_VPCRF_VIF_02
                                    
        } //end group TP_VPCRFRole_VIF

    } // group TP_VPCRFRole    
+11 −0
Original line number Diff line number Diff line
@@ -990,6 +990,17 @@ module DiameterS9_Templates {
                    routing_Rule_Install	:= p_routingRuleInstall
                }

                template Subses_Enforcement_Info_AVP mw_subsesEnforcementInfo_Operation_RRremove_EvTri  
                    (template (present) Subsession_Id_AVP p_subsessionId,
                     template Subsession_Operation_AVP p_subsessionOperation ,
                     template Subses_Enforcement_Info_AVP.routing_Rule_Remove p_routingRuleRemove,
                     template CCR_MSG.cCR_Body.event_Trigger p_event_Trigger) 
                modifies mw_subsesEnforcementInfo_dummy:= {
                    subsession_Operation	:= p_subsessionOperation,
                    routing_Rule_Remove	:= p_routingRuleRemove,
                    event_Trigger := p_event_Trigger
                }

                template Subses_Enforcement_Info_AVP mw_subsesEnforcementInfo_qosInfo  
                    (template (present) Subsession_Id_AVP p_subsessionId,
                     template Subses_Enforcement_Info_AVP.qoS_Information p_qoS_Information,
+137 −13
Original line number Diff line number Diff line
@@ -1616,7 +1616,21 @@ module DiameterS9_TestCases
            runs on ServerSyncComp
            system TestAdapter {
                
                // TODO
                // Initialize
                var DiameterComponent v_diameterComponent_hpcrf;
                var DiameterComponent v_diameterComponent_pcef;

                f_cf_1S9_1Gx_hpcrfUp(v_diameterComponent_hpcrf, v_diameterComponent_pcef);

                // Start
                v_diameterComponent_hpcrf.start(f_TC_VPCRF_VMB_01());
                if (PX_Gxsupport) {
                    v_diameterComponent_pcef.start(f_TC_VPCRF_VMB_01_PCEF());
                }

                // Finish
                f_ConfigRun_HPCRF_PCEF(v_diameterComponent_hpcrf, v_diameterComponent_pcef,
                                        {c_prDone, c_tbDone, c_poDone});
                
            } // end TC_VPCEF_VMB_01
            
@@ -1627,7 +1641,21 @@ module DiameterS9_TestCases
            runs on ServerSyncComp
            system TestAdapter {
                
                // TODO
                // Initialize
                var DiameterComponent v_diameterComponent_hpcrf;
                var DiameterComponent v_diameterComponent_pcef;

                f_cf_1S9_1Gx_hpcrfUp(v_diameterComponent_hpcrf, v_diameterComponent_pcef);

                // Start
                v_diameterComponent_hpcrf.start(f_TC_VPCRF_VMB_02());
                if (PX_Gxsupport) {
                    v_diameterComponent_pcef.start(f_TC_VPCRF_VMB_02_PCEF());
                }

                // Finish
                f_ConfigRun_HPCRF_PCEF(v_diameterComponent_hpcrf, v_diameterComponent_pcef,
                                        {c_prDone, c_tbDone, c_poDone});
                
            } // end TC_VPCEF_VMB_02
                       
@@ -1643,7 +1671,21 @@ module DiameterS9_TestCases
            runs on ServerSyncComp
            system TestAdapter {

                // TODO
                // Initialize
                var DiameterComponent v_diameterComponent_hpcrf;
                var DiameterComponent v_diameterComponent_bberf;

                f_cf_1S9_1Gxx_hpcrfUp(v_diameterComponent_hpcrf, v_diameterComponent_bberf);

                // Start
                v_diameterComponent_hpcrf.start(f_TC_VPCRF_VDS_01());
                if (PX_Gxxsupport) {
                    v_diameterComponent_bberf.start(f_TC_VPCRF_VDS_01_BBERF1());
                }

                // Finish
                f_ConfigRun_HPCRF_BBERF(v_diameterComponent_hpcrf, v_diameterComponent_bberf,
                                        {c_prDone, c_tbDone, c_poDone});

            } // end TC_VPCEF_VDS_01

@@ -1655,7 +1697,21 @@ module DiameterS9_TestCases
            runs on ServerSyncComp
            system TestAdapter {

                // TODO
                // Initialize
                var DiameterComponent v_diameterComponent_hpcrf;
                var DiameterComponent v_diameterComponent_bberf;

                f_cf_1S9_1Gxx_hpcrfUp(v_diameterComponent_hpcrf, v_diameterComponent_bberf);

                // Start
                v_diameterComponent_hpcrf.start(f_TC_VPCRF_VDS_02());
                if (PX_Gxxsupport) {
                    v_diameterComponent_bberf.start(f_TC_VPCRF_VDS_02_BBERF1());
                }

                // Finish
                f_ConfigRun_HPCRF_BBERF(v_diameterComponent_hpcrf, v_diameterComponent_bberf,
                                        {c_prDone, c_tbDone, c_poDone});

            } // end TC_VPCEF_VDS_02
                        
@@ -1666,7 +1722,21 @@ module DiameterS9_TestCases
            runs on ServerSyncComp
            system TestAdapter {

                // TODO
                // Initialize
                var DiameterComponent v_diameterComponent_hpcrf;
                var DiameterComponent v_diameterComponent_bberf;

                f_cf_1S9_1Gxx_hpcrfUp(v_diameterComponent_hpcrf, v_diameterComponent_bberf);

                // Start
                v_diameterComponent_hpcrf.start(f_TC_VPCRF_VDS_03());
                if (PX_Gxxsupport) {
                    v_diameterComponent_bberf.start(f_TC_VPCRF_VDS_03_BBERF1());
                }

                // Finish
                f_ConfigRun_HPCRF_BBERF(v_diameterComponent_hpcrf, v_diameterComponent_bberf,
                                        {c_prDone, c_tbDone, c_poDone});

            } // end TC_VPCEF_VDS_03
                        
@@ -1682,7 +1752,21 @@ module DiameterS9_TestCases
            runs on ServerSyncComp
            system TestAdapter {
                
                // TODO
                // Initialize
                var DiameterComponent v_diameterComponent_hpcrf;
                var DiameterComponent v_diameterComponent_pcef;

                f_cf_1S9_1Gx_hpcrfUp(v_diameterComponent_hpcrf, v_diameterComponent_pcef);

                // Start
                v_diameterComponent_hpcrf.start(f_TC_VPCRF_VSL_01());
                if (PX_Gxsupport) {
                    v_diameterComponent_pcef.start(f_TC_VPCRF_VSL_01_PCEF());
                }

                // Finish
                f_ConfigRun_HPCRF_PCEF(v_diameterComponent_hpcrf, v_diameterComponent_pcef,
                                        {c_prDone, c_tbDone, c_poDone});
                
            } // end TC_VPCEF_VSL_01
            
@@ -1698,10 +1782,50 @@ module DiameterS9_TestCases
            runs on ServerSyncComp
            system TestAdapter {
                
                // TODO
                // Initialize
                var DiameterComponent v_diameterComponent_hpcrf;
                var DiameterComponent v_diameterComponent_pcef;

                f_cf_1S9_1Gx_hpcrfUp(v_diameterComponent_hpcrf, v_diameterComponent_pcef);

                // Start
                v_diameterComponent_hpcrf.start(f_TC_VPCRF_VIF_01());
                if (PX_Gxsupport) {
                    v_diameterComponent_pcef.start(f_TC_VPCRF_VIF_01_PCEF());
                }

                // Finish
                f_ConfigRun_HPCRF_PCEF(v_diameterComponent_hpcrf, v_diameterComponent_pcef,
                                        {c_prDone, c_tbDone, c_poDone});
                
            } // end TC_VPCEF_VIF_01
            
                        
            /*
            * @desc TC_VPCRF_VIF_02
            */
            testcase TC_VPCRF_VIF_02()
            runs on ServerSyncComp
            system TestAdapter {
                
                // Initialize
                var DiameterComponent v_diameterComponent_hpcrf;
                var DiameterComponent v_diameterComponent_pcef;

                f_cf_1S9_1Gx_hpcrfUp(v_diameterComponent_hpcrf, v_diameterComponent_pcef);

                // Start
                v_diameterComponent_hpcrf.start(f_TC_VPCRF_VIF_02());
                if (PX_Gxsupport) {
                    v_diameterComponent_pcef.start(f_TC_VPCRF_VIF_02_PCEF());
                }

                // Finish
                f_ConfigRun_HPCRF_PCEF(v_diameterComponent_hpcrf, v_diameterComponent_pcef,
                                        {c_prDone, c_tbDone, c_poDone});
                
            } // end TC_VPCEF_VIF_02
            
        } //end group TP_VPCRFRole_VIF

    }//end group TP_VPCRFRole
+1 −0
Original line number Diff line number Diff line
@@ -170,6 +170,7 @@ module DiameterS9_TestControl {
        
        // 5.2.2.3.7	IP flow mobility support
            execute(TC_VPCRF_VIF_01());
            execute(TC_VPCRF_VIF_02());
        
    } // End of 'Control' statement