Commit 952a3142 authored by wattelet's avatar wattelet
Browse files

Default test steps updated and TC_CL_01 updated

parent 34024d9a
Loading
Loading
Loading
Loading
+1 −43
Original line number Diff line number Diff line
@@ -1025,7 +1025,7 @@ module DiameterS6a_HSS_TCFunctions {
            
            // Test Body
            // Clause 'when': the IUT is requested to indicate a request for cancel location procedure to inform MME about subscriber’s subscription withdrawal
            f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());
			action("the IUT is requested to indicate a request for cancel location procedure to inform MME about subscriber’s subscription withdrawal");            f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());
            
            // Clause 'then':  the IUT sends a CL-Request
            f_awaiting_CLR(mdw_CLR( 
@@ -1048,7 +1048,6 @@ module DiameterS6a_HSS_TCFunctions {
                ) // End of md_CLA
            );
            
            f_selfOrClientSyncAndVerdict(c_sync2, f_getVerdict());
            f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
            
            // Postamble
@@ -1058,47 +1057,6 @@ module DiameterS6a_HSS_TCFunctions {
            
        } // End of TC function f_TC_HSS_CL_01

        function f_TC_HSS_CL_01_NewMME() runs on DiameterComponent {
            
            // Local variables
            
            // Preamble
            f_preamble_HSS2();
            f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
            log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
            
            // Test Body
            f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());
            f_send_ULR(
                md_ULR( 
                    vc_sessionId2,
                    md_ulrBodyAvps(
                        md_auth_Session_State_noStateMaintained,
                        vc_originHost2,
                        vc_originRealm,
                        vc_destinationRealm,
                        m_userName(PX_USR_NAME),
                        m_rAT_Type(PX_RAT_TYPE),
                        md_ulr_Flags_AVP(2),
                        m_visitedPLMNId_dummy
                    ) // End of md_ulrBodyAvps
                ) // End of md_ULR
            );
        
            f_selfOrClientSyncAndVerdict(c_sync2, f_getVerdict());
            f_awaiting_ULA( mdw_ULA( 
                        vc_sessionId2,
                        mw_S6a_ULA_Body_dummy
            ));
            f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
            
            // Postamble
            f_postamble_HSS2();
            f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
            log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
            
        } // End of TC function f_TC_HSS_CL_01_NewMME
        
        /**
         * @desc    Verify that the IUT can successfully initiate all mandatory AVPs in a CL-Request due to Cancel Location procedure to inform MME about an ongoing update procedure
         */
+7 −0
Original line number Diff line number Diff line
@@ -125,6 +125,13 @@
                f_send_DWA(m_DWA_basic(vc_originHost, vc_originRealm));
                repeat;
              }
            [] DIAMP.receive (DIAMETER_MSG:{cLR_MSG := mw_S6a_CLR_dummy}) -> value vc_recvDiamMsgDefault
              {
                vc_recv_hopid:= vc_recvDiamMsgDefault.cLR_MSG.header.hopid;
                vc_recv_endid:= vc_recvDiamMsgDefault.cLR_MSG.header.endid;
                f_send_CLA ( md_CLA ( vc_sessionId, md_claBodyAvps ));
                repeat;
              }
            [] DIAMP.receive { // Received an unexpected message, process it as an error
                log("*** a_hss_default: ERROR: Received an unexpected message, process it as an error ***");
                f_selfOrClientSyncAndVerdict("error", e_error);
+3 −5
Original line number Diff line number Diff line
@@ -2877,7 +2877,6 @@ module DiameterS6a_TestCases {
            testcase TC_HSS_CL_01() runs on DiameterS6a system TestAdapter {
                // Local variables
                var DiameterComponent v_diameterS6a_mme;  
                var DiameterComponent v_diameterS6a_mme2;
                
                // Test control
                if (not PICS_HSS_IUT or not PICS_IUT_HLR) {
@@ -2886,14 +2885,13 @@ module DiameterS6a_TestCases {
                }
                
                // Test component configuration
                f_cf_2S6aUp_HSS(v_diameterS6a_mme, v_diameterS6a_mme2);
                f_cf_1S6aUp_HSS(v_diameterS6a_mme);

                // Start
                v_diameterS6a_mme.start(f_TC_HSS_CL_01());
                v_diameterS6a_mme2.start(f_TC_HSS_CL_01_NewMME());

                // synchronize PTC on 5 sychronization points
                f_serverSyncNClientsAndStop(2, {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
                // synchronize PTC on 3 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});

                f_cf_2S6aDown_HSS();