Commit 103ba6f1 authored by rennoch's avatar rennoch
Browse files

REG_02, REG_03 for release 10 (2nd REGISTER incomplete)

parent b174400c
Loading
Loading
Loading
Loading
+61 −57
Original line number Diff line number Diff line
@@ -180,26 +180,34 @@ module AtsIms_Gm_TCFunctions {
			runs on ImsComponent {

				f_IMS_preamble_woRegistration(c_userProfile_UE1atSUThome,
											  p_cSeq_s); // assignment of PIXIT
				// values to component
				// variable
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync
				// point
				// preamble
				// done
											  p_cSeq_s); // assignment of PIXIT values to component variable
				f_setHeaders_REGISTER(p_cSeq_s);				
				f_SendREGISTER(m_REGISTER_Request_Base(vc_requestUri,
													   vc_callId, p_cSeq_s,
													   vc_from, vc_to,
													   vc_via_REG, vc_contact,
													   vc_authorization)); // LibSip
				f_awaitingResponse(mw_Response_Base(c_statusLine401, *,
													p_cSeq_s));						
				
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync point preamble done
				
				// TESTBODY				
				// TODO write test body
				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync
				// point
				// test
				// body
				// done
				f_setHeadersOnReceiptOfResponse(p_cSeq_s, vc_response);
				// set headers via, cseq and authorization
				f_setHeaders_2ndREGISTER(p_cSeq_s);	
				// Re-send protected REGISTER
				f_SendREGISTER(m_REGISTER_Request_Base(vc_requestUri, vc_callId, p_cSeq_s, vc_from, vc_to, vc_via_REG, vc_contact, vc_authorization));//LibSip

				f_awaitingResponse(mw_Response_Base(mw_statusLine4xx, *, p_cSeq_s));

				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync point test body done
				
				// POSTAMBLE
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
				// point
				// postamble
				// done
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync point postamble done
				
				f_SIP_postamble_UE1_withoutRegistration();
				
			} // end function f_Sip_TC_IMST2_GM_REG_02_UE1

			/*
@@ -210,26 +218,34 @@ module AtsIms_Gm_TCFunctions {
			runs on ImsComponent {
			    
				f_IMS_preamble_woRegistration(c_userProfile_UE1atSUThome,
											  p_cSeq_s); // assignment of PIXIT
				// values to component
				// variable
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync
				// point
				// preamble
				// done
											  p_cSeq_s); // assignment of PIXIT values to component variable
				f_setHeaders_REGISTER(p_cSeq_s);				
				f_SendREGISTER(m_REGISTER_Request_Base(vc_requestUri,
													   vc_callId, p_cSeq_s,
													   vc_from, vc_to,
													   vc_via_REG, vc_contact,
													   vc_authorization)); // LibSip
				f_awaitingResponse(mw_Response_Base(c_statusLine401, *,
													p_cSeq_s));						
				
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync point preamble done
				
				// TESTBODY				
				// TODO write test body
				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync
				// point
				// test
				// body
				// done
				f_setHeadersOnReceiptOfResponse(p_cSeq_s, vc_response);
				// set headers via, cseq and authorization
				f_setHeaders_2ndREGISTER(p_cSeq_s);	
				// Re-send protected REGISTER
				f_SendREGISTER(m_REGISTER_Request_Base(vc_requestUri, vc_callId, p_cSeq_s, vc_from, vc_to, vc_via_REG, vc_contact, vc_authorization));//LibSip

				f_awaitingResponse(mw_Response_Base(mw_statusLine4xx, *, p_cSeq_s));

				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync point test body done
				
				// POSTAMBLE
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
				// point
				// postamble
				// done
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync point postamble done
				
				f_SIP_postamble_UE1_withoutRegistration();
				
			} // end function f_Sip_TC_IMST2_GM_REG_03_UE1

			/*
@@ -279,11 +295,8 @@ module AtsIms_Gm_TCFunctions {
			function f_TC_IMST2_GM_REG_05_UE1(in CSeq p_cSeq_s)
			runs on ImsComponent {


				f_IMS_preamble_woRegistration(c_userProfile_UE1atSUThome,
											  p_cSeq_s); // assignment of PIXIT
				// values to component
				// variable
											  p_cSeq_s); // assignment of PIXIT values to component variable
				f_setHeaders_REGISTER(p_cSeq_s);				
				f_SendREGISTER(m_REGISTER_Request_Base(vc_requestUri,
													   vc_callId, p_cSeq_s,
@@ -293,12 +306,9 @@ module AtsIms_Gm_TCFunctions {
				f_awaitingResponse(mw_Response_Base(c_statusLine401, *,
													p_cSeq_s));						
				
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync
				// point
				// preamble
				// done
				// TESTBODY
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync point preamble done
				
				// TESTBODY				
				f_setHeadersOnReceiptOfResponse(p_cSeq_s, vc_response);
				// set headers via, cseq and authorization (invalid private user identiy)
				LibIms_Steps.f_init_userprofile(c_userProfile_IBCFwithUnknownUE); // invalid
@@ -307,19 +317,13 @@ module AtsIms_Gm_TCFunctions {
				// Re-send protected REGISTER
				f_SendREGISTER(m_REGISTER_Request_Base(vc_requestUri, vc_callId, p_cSeq_s, vc_from, vc_to, vc_via_REG, vc_contact, vc_authorization));//LibSip

				f_awaitingResponse(mw_Response_Base(c_statusLine401, *,
													p_cSeq_s));
				f_awaitingResponse(mw_Response_Base(c_statusLine401, *, p_cSeq_s));

				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync point test body done
				
				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync
				// point
				// test
				// body
				// done
				// POSTAMBLE
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
				// point
				// postamble
				// done
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync point postamble done
				
				f_SIP_postamble_UE1_withoutRegistration();

			} // end function f_Sip_TC_IMST2_GM_REG_05_UE1