diff --git a/OneM2M_PermutationFunctions.ttcn b/OneM2M_PermutationFunctions.ttcn index 04df7a7bc6c1f26c9be572ad3e2d5fe971e47d0b..44c4a2adbb817c1e04926e3200b1d7fee900a431 100644 --- a/OneM2M_PermutationFunctions.ttcn +++ b/OneM2M_PermutationFunctions.ttcn @@ -6969,79 +6969,12 @@ module OneM2M_PermutationFunctions { }//end f_CSE_DMR_DEL_013 }//end group Delete - - group Notify { - - function f_CSE_DMR_NTF_001(ResultContent p_resultContent) runs on AeSimu system CseSystem { - - // Local variables - var MsgIn v_response; - var RequestPrimitive v_request; - var integer v_aeIndex, v_ae2Index := -1; - - // Test control - - // Test component configuration - f_cf01Up(true); - - // Test adapter configuration - - // Preamble - v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi); - - vc_ae2.start(f_cse_createAccessControlPolicyAux("Ae2Acp",{"all"}, int63)); - f_aeSimu_checkComponentDoneAndGetVerdict(vc_ae2); - - vc_ae2.start(f_cse_createResource_withAcpAux(int2, m_createAe(PX_TS_AE2.appId, -, PX_TS_AE2.aeIdStem, c_defaultAE2Name, {f_getCompletePoA(PX_TS_AE2.mcaPortIn, "")}), -1)); // AE2 is registred - f_aeSimu_checkComponentDoneAndGetVerdict(vc_ae2); - - v_ae2Index := f_getLatestResource(vc_ae2); - - // Test Body - v_request := valueof(m_notifyNotification(f_getResourceAddress(v_ae2Index), m_contentNotification_subscriptionVerification(vc_resourcesList[v_ae2Index].resource.aE.aE_ID))); - v_request.from_ := f_getOriginator(v_aeIndex, e_ae); - v_request.resultContent := p_resultContent; - - vc_ae2.start(f_cse_notifyProcedure_subscriptionVerificationHandler()); - - f_send(e_mca_port, m_request(v_request)); - tc_ac.start; - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int4000))) { //BAD REQUEST - tc_ac.stop; - setverdict(pass, __SCOPE__ & ": Request successfully rejected"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error, Result content set to " & int2str(enum2int(p_resultContent)) & " is not valid for a NOTIFY request "); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer while deleting resource"); - } - } - - f_aeSimu_checkComponentDoneAndGetVerdict(vc_ae2); - // Postamble - f_cse_postamble_deleteResources(); - - // Tear down - f_cf01Down(); - - }//end f_CSE_DMR_NTF_001 - - }//end group Notify - }//end group Data_Management_and_Repository group Location { - }//end group Location group Group_Managment {