Commit 97b39702 authored by rennoch's avatar rennoch
Browse files

addition of new tests TC_OIP_N01_015 and TC_OIP_N01_016

parent 25792b5c
Loading
Loading
Loading
Loading
+70 −0
Original line number Diff line number Diff line
@@ -653,6 +653,76 @@ module OIP_OIR_TC_Functions {
        f_isc_postamble_after_INVITE();
    }
    
        function f_TC_OIP_N01_015(CSeq p_CSeq) runs on ImsComponent {
        
        f_init_ics_scscf(p_CSeq);
        
        // ----  test body  ----->
		
        // send INVITE        
        LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_UE1atSUThome);
        vc_route := valueof(m_route_interface_OIP_OIR(vc_interfaceprofile,vc_userprofile,"orig"));
        f_SendINVITE(m_INVITE_Request_OIP_OIR(
            vc_requestUri, 
            vc_callId, 
            vc_cSeq, 
            vc_from, 
            vc_to, 
            vc_via, 
            vc_contact, 
            vc_route,
            m_PAssertedID({addrSpecUnion := f_initSipUrl(vc_userprofile.id)}), 
            m_Privacy(c_privacy_id), 
            valueof(m_MBody_SDP(vc_sdp_local))
        ));
        
        f_awaitingINVITE(mw_INVITE_Request_OIP_OIR(
        mw_From(mw_SipUrl_NumberHostParam(PX_IMS_SUT_UE4_PUBLIC_USER,PX_IMS_SUT_UE4_HOME_DOMAIN,omit)),
            *, 
            *
        ));
				
        f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
        
        //      ----  postamble    for AS B2B ---->
        f_isc_postamble_after_INVITE();
    }
    
    function f_TC_OIP_N01_016(CSeq p_CSeq) runs on ImsComponent {
        
        f_init_ics_scscf(p_CSeq);
        
        // ----  test body  ----->
		
        // send INVITE        
        LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_UE1atSUThome);
        vc_route := valueof(m_route_interface_OIP_OIR(vc_interfaceprofile,vc_userprofile,"orig"));
        f_SendINVITE(m_INVITE_Request_OIP_OIR(
            vc_requestUri, 
            vc_callId, 
            vc_cSeq, 
            vc_from, 
            vc_to, 
            vc_via, 
            vc_contact, 
            vc_route,
            m_PAssertedID({addrSpecUnion := f_initSipUrl(vc_userprofile.id)}), 
            m_Privacy(c_privacy_header), 
            valueof(m_MBody_SDP(vc_sdp_local))
        ));
        
        f_awaitingINVITE(mw_INVITE_Request_OIP_OIR(
        mw_From(mw_SipUrl_NumberHostParam(PX_IMS_SUT_UE4_PUBLIC_USER,PX_IMS_SUT_UE4_HOME_DOMAIN,omit)),
            *, 
            *
        ));
				
        f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
        
        //      ----  postamble    for AS B2B ---->
        f_isc_postamble_after_INVITE();
    }
    
    function f_TC_OIP_N02_001(CSeq p_CSeq) runs on ImsComponent {
        
        f_init_ics_scscf(p_CSeq);
+47 −0
Original line number Diff line number Diff line
@@ -499,6 +499,53 @@ module OIP_OIR_TestCases {
                // tear down test configuration
                f_cf_as_down(v_scscf);
            }
            
            /**
             * @desc
             *     <p>The AS does not anonymizes the identity in temporary mode, restricted</p>
             *     <p>Ensure that the IUT on receopt of an INVITE with a Privacy header 
             *     set to &quot;id&quot;, transmits an INVITE with the From header not anomynized.</p>
             */
            testcase TC_OIP_N01_015(inout CSeq p_CSeq) runs on ServerSyncComp system TestAdapter {
                // variable declaration
                var ImsComponent v_scscf;
    
                // setup test configuration
                f_cf_as_up(v_scscf);
    
                // start component
                v_scscf.start(f_TC_OIP_N01_015(p_CSeq));
	
                // synchronize component
                f_serverSync1Client({c_tbDone});
	
                // tear down test configuration
                f_cf_as_down(v_scscf);
            }
            
            /**
             * @desc
             *     <p>The AS does not anonymizes the identity in temporary mode, restricted</p>
             *     <p>Ensure that the IUT on receipt of an INVITE with a Privacy header 
             *     set to &quot;header&quot;, transmits an INVITE with the From header not anomynized.</p>
             */
            testcase TC_OIP_N01_016(inout CSeq p_CSeq) runs on ServerSyncComp system TestAdapter {
                // variable declaration
                var ImsComponent v_scscf;
    
                // setup test configuration
                f_cf_as_up(v_scscf);
    
                // start component
                v_scscf.start(f_TC_OIP_N01_016(p_CSeq));
	
                // synchronize component
                f_serverSync1Client({c_tbDone});
	
                // tear down test configuration
                f_cf_as_down(v_scscf);
            }

	    }
	    
	    group asServingTerminatingUser {