Skip to content
Snippets Groups Projects
Commit 2e7bb2ec authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fixing f_CSE_DMR_DEL_004. Closing #28

parent e295ce16
No related branches found
No related tags found
No related merge requests found
......@@ -1394,6 +1394,41 @@ module OneM2M_Functions {
} //end f_subscriptionVerificationHandler
/**
* @desc Default handling message exchange for the notification procedure
* @verdict
*/
function f_cse_notifyProcedure_defaultHandler() runs on AeSimu {
// Local variables
var ResponsePrimitive v_responsePrimitive;
//Activate defaults when running on a PTC
f_cse_activateDefaults_ae();
tc_ac.start;
alt {
[] mcaPortIn.receive(mw_request(mw_notifyNotification(mw_contentNotification(?)))) -> value vc_request {
tc_ac.stop;
setverdict(pass, __SCOPE__ & ":INFO: Notification received");
//Send response in any case
v_responsePrimitive := valueof(m_responseNotification(int2001, omit));
v_responsePrimitive.requestIdentifier := vc_request.primitive.requestPrimitive.requestIdentifier;
mcaPortIn.send(m_response(v_responsePrimitive));
tc_ac.start;
repeat;
}
[] mcaPortIn.receive{
tc_ac.stop;
setverdict(inconc, __SCOPE__ & ":ERROR: unexpected message received");
tc_ac.start;
repeat;
}
}
} //end f_cse_notifyProcedure_defaultHandler
/**
* @desc Handling message exchange for the notification procedure
* @param p_primitiveContent Expected primitiveContent in the notification
......
......@@ -4982,10 +4982,18 @@ module OneM2M_PermutationFunctions {
v_resourceIndex := f_cse_createResource(p_resourceType, p_createRequestPrimitive, v_aeIndex);
f_cse_preamble_subscriptionVerification(v_ae2Index, p_createRequestPrimitiveChildResource, p_childResourceType);
v_childResourceIndex := f_cse_createResource(p_childResourceType, p_createRequestPrimitiveChildResource, v_resourceIndex);
if((p_resourceType == int23) or (p_childResourceType == int23)) {
vc_ae2.start(f_cse_notifyProcedure_defaultHandler());
}
f_cse_deleteResource(v_resourceIndex);
f_checkAeSimuStatus();
// Test Body
mcaPort.send(m_request(m_delete(f_getResourceAddress(v_childResourceIndex), f_getOriginator(v_childResourceIndex))));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment