Fix for TC_CSE_SUB_CRE_003 to use a registered AE as notification target

Signed-off-by: Miguel Angel Reina Ortega's avatarreinaortega <miguelangel.reinaortega@etsi.org>
parent 7fdd1de3
......@@ -8327,21 +8327,27 @@ module OneM2M_Testcases_CSE_Release_1 {
// Local variables
var MsgIn v_response;
var integer v_aeIndex := -1;
var integer v_ae2Index := -1;
var template RequestPrimitive v_createRequest := m_createSubscriptionBase;
var RequestPrimitive v_request;
// Test control
// Test component configuration
f_cf01Up();
f_cf01Up(true);
// Test adapter configuration
// Preamble
v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
v_request := f_getCreateRequestPrimitive(int23, v_createRequest, v_aeIndex);//Subscription
v_request.primitiveContent.subscription.notificationURI := {"NotReachableNotificationURI"};
vc_ae2.start(f_cse_createResource(int2, m_createAe(PX_TS_AE2.appId, -, PX_TS_AE2.aeIdStem, c_defaultAe2ResourceName, -), -1)); // AE2 is registred
f_aeSimu_checkComponentDoneAndGetVerdict(vc_ae2);
v_ae2Index := f_getLatestResource(vc_ae2);
v_request := f_getCreateRequestPrimitive(int23, m_createSubscriptionBase, v_aeIndex);
v_request.primitiveContent.subscription.notificationURI := {f_getResourceAddress(v_ae2Index)};
// Test Body
f_send(e_mca_port, m_request(v_request));
......@@ -8421,6 +8427,7 @@ module OneM2M_Testcases_CSE_Release_1 {
v_resourceIndex := f_cse_createResource(int23, v_request, v_aeIndex);//Subscription
if(vc_ae2.running) {
setverdict(inconc, __SCOPE__ & ": Notification not received");
vc_ae2.stop;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment