Commit 5207d2f3 authored by Naum Spaseski's avatar Naum Spaseski
Browse files

STF531: Changed test entity for CSE/REG/CRE/004

parent 4df30990
...@@ -954,7 +954,7 @@ module OneM2M_Testcases { ...@@ -954,7 +954,7 @@ module OneM2M_Testcases {
* @desc Check that the IUT rejects an AE registration (allowed App-ID, not allowed C-AE-ID-STEM provided by AE) * @desc Check that the IUT rejects an AE registration (allowed App-ID, not allowed C-AE-ID-STEM provided by AE)
* *
*/ */
testcase TC_CSE_REG_CRE_004() runs on InCseSimu system CseSystem { testcase TC_CSE_REG_CRE_004() runs on AeSimu system CseSystem {
var MsgIn v_response; var MsgIn v_response;
var RequestPrimitive v_request; var RequestPrimitive v_request;
...@@ -962,24 +962,25 @@ module OneM2M_Testcases { ...@@ -962,24 +962,25 @@ module OneM2M_Testcases {
var ResourceType v_resourceType := int2; var ResourceType v_resourceType := int2;
// Test component configuration // Test component configuration
f_cf01UpCseSimuMaster(); f_cf01Up();
//Preambule //Preambule
//vc_remoteCseIndex := f_cse_registrationRemoteCse(mw_createRemoteCSEBase); //vc_remoteCseIndex := f_cse_registrationRemoteCse(mw_createRemoteCSEBase);
//TODO: create serviceSubscribedProfile, Node, and serviceSubscribedAppRule //TODO: create serviceSubscribedProfile, Node, and serviceSubscribedAppRule
v_cseBaseIndex := f_cse_preamble_createServiceSubscribedProfile({"C*"}); //c_CRUDNDi);
//Test Body //Test Body
//v_request := valueof(m_createAe(PX_APP_ID, omit, "C-AE-ID-STEM")); //v_request := valueof(m_createAe(PX_APP_ID, omit, "C-AE-ID-STEM"));
vc_aeSimu.start(f_cse_createResource(int2, m_createAe(PX_APP_ID, omit, "C"))); f_cse_createResource(int2, m_createAe(PX_APP_ID, omit, "C"));
tc_ac.start; tc_ac.start;
alt { alt {
[] mccPort.receive(mw_response(mw_responsePrimitive(int4005))) { [] mcaPort.receive(mw_response(mw_responsePrimitive(int4005))) {
tc_ac.stop; tc_ac.stop;
setverdict(pass, __SCOPE__ & ": AE creation rejected."); setverdict(pass, __SCOPE__ & ": AE creation rejected.");
} }
[] mccPort.receive(mw_response(mw_responsePrimitiveInverse(int4005))) -> value v_response{ [] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int4005))) -> value v_response{
tc_ac.stop; tc_ac.stop;
setverdict(fail, __SCOPE__ & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode))); setverdict(fail, __SCOPE__ & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
} }
...@@ -989,10 +990,10 @@ module OneM2M_Testcases { ...@@ -989,10 +990,10 @@ module OneM2M_Testcases {
} }
// Postamble // Postamble
f_cse_postamble_deleteResourcesCSE(); f_cse_postamble_deleteResources();
// Tear down // Tear down
f_cf01DownCseSimuMaster(); f_cf01Down();
} }
......
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