From 6ab40d7f811b433d1be04442e0226e5402d61f8c Mon Sep 17 00:00:00 2001 From: reinaortega <miguelangel.reinaortega@etsi.org> Date: Mon, 15 Jun 2020 11:03:56 +0200 Subject: [PATCH] Adding setverdict to f_cse_notifyProcedure_subscriptionDeletionHandler function Signed-off-by: reinaortega <miguelangel.reinaortega@etsi.org> --- LibOneM2M/OneM2M_Functions.ttcn | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn index 72818cd..08b3dfd 100644 --- a/LibOneM2M/OneM2M_Functions.ttcn +++ b/LibOneM2M/OneM2M_Functions.ttcn @@ -2065,6 +2065,7 @@ module OneM2M_Functions { alt { [] mcaPortIn.receive(mw_request(mw_notifyNotification(p_notification))) -> value vc_request { tc_ac.stop; + setverdict(pass, __SCOPE__ & ":INFO: Expected deletion notification received"); v_responsePrimitive := valueof(m_responseNotification(int2000, omit)); v_responsePrimitive.requestIdentifier := vc_request.primitive.requestPrimitive.requestIdentifier; f_send(e_mca_in_port, m_response(v_responsePrimitive)); @@ -2072,10 +2073,6 @@ module OneM2M_Functions { setverdict(fail, __SCOPE__ & ":ERROR: subscriptionDeletion attribute have to be set to TRUE"); } } - [] mcaPortIn.receive{ - tc_ac.stop; - setverdict(fail, __SCOPE__ & ":ERROR: unexpected message received"); - } [] tc_ac.timeout { setverdict(fail, __SCOPE__ & ":ERROR: No notification received"); } -- GitLab