From 555314ef4cb1e1e602695816689e0861e1bf36a1 Mon Sep 17 00:00:00 2001
From: reinaortega <miguelangel.reinaortega@etsi.org>
Date: Wed, 25 Sep 2019 06:33:05 +0200
Subject: [PATCH] Improvement for f_CSE_SUB_UPD_008 to match the content of the
 expected notification

Signed-off-by: reinaortega <miguelangel.reinaortega@etsi.org>
---
 OneM2M_Testcases_CSE_Release_2.ttcn | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/OneM2M_Testcases_CSE_Release_2.ttcn b/OneM2M_Testcases_CSE_Release_2.ttcn
index 3433672..bd867ee 100644
--- a/OneM2M_Testcases_CSE_Release_2.ttcn
+++ b/OneM2M_Testcases_CSE_Release_2.ttcn
@@ -32,7 +32,7 @@ module OneM2M_Testcases_CSE_Release_2 {
 				var integer i; 
 				var XSD.ID v_resourceAddress;
 				var RequestPrimitive v_request;
-				map(self:mcaPort, system:mcaPort); 
+				map(self:mcaPort, system:mcaPort) param (PX_TS_AE1.mcaPort); 
 					
 				for (i:=0; i<lengthof(PX_RESOURCES_TO_BE_DELETED); i:= i+1) {  
 					
@@ -3002,10 +3002,6 @@ module OneM2M_Testcases_CSE_Release_2 {
 						
 					v_createRequest := m_createSubscriptionAdvanced(f_getResourceAddress(v_aeIndex), -, {f_getResourceAddress(v_ae2Index)},omit,omit,m_batchNotify(numberOfAggregatedNotification), true, omit,  -, omit);
             		
-					//TODO We Need to check if the IUT send a notification only for the latest update operation
-					// like we match a Notification we have to verify if it is the first (unvalid behavior) or the last (valid behavior)
-					// maybe we need to synchronise our components
-            		
 					v_resourceIndex := f_cse_createResource(int23, v_createRequest, v_aeIndex);//Subscription
             					
 					if(vc_ae2.running) {
@@ -3013,6 +3009,7 @@ module OneM2M_Testcases_CSE_Release_2 {
 					};
 					
 					// Test Body
+					v_contentResponse.aE.labels := v_labels_3;
 					vc_ae2.start(f_cse_notifyProcedure_representationHandler(v_contentResponse)); // check if the notification is well received and if its content matchs
             					
 					v_updateRequest.primitiveContent.aE.labels := v_labels_1; 
-- 
GitLab