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

Improvement for f_CSE_SUB_UPD_008 to match the content of the expected notification

parent 015b7601
No related branches found
No related tags found
1 merge request!57Conformance sessions in oneM2M TP#42 India
...@@ -32,7 +32,7 @@ module OneM2M_Testcases_CSE_Release_2 { ...@@ -32,7 +32,7 @@ module OneM2M_Testcases_CSE_Release_2 {
var integer i; var integer i;
var XSD.ID v_resourceAddress; var XSD.ID v_resourceAddress;
var RequestPrimitive v_request; 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) { for (i:=0; i<lengthof(PX_RESOURCES_TO_BE_DELETED); i:= i+1) {
...@@ -3002,10 +3002,6 @@ module OneM2M_Testcases_CSE_Release_2 { ...@@ -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); 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 v_resourceIndex := f_cse_createResource(int23, v_createRequest, v_aeIndex);//Subscription
if(vc_ae2.running) { if(vc_ae2.running) {
...@@ -3013,6 +3009,7 @@ module OneM2M_Testcases_CSE_Release_2 { ...@@ -3013,6 +3009,7 @@ module OneM2M_Testcases_CSE_Release_2 {
}; };
// Test Body // 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 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; v_updateRequest.primitiveContent.aE.labels := v_labels_1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment