Commit d45546a6 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

New test case TC_CSE_REG_CRE_032 implemented according to TDE-2019-0087


Signed-off-by: Miguel Angel Reina Ortega's avatarreinaortega <miguelangel.reinaortega@etsi.org>
parent e7ca5475
......@@ -2224,7 +2224,67 @@ module OneM2M_Testcases_CSE_Release_1 {
f_cf04Down();
} //end of testcase TC_CSE_REG_CRE_031
/**
* @desc Check that the IUT accepts a create request of <AE> resource with attributes multiplicity equals to 1 with AE-ID-Stem being empty
*
*/
testcase TC_CSE_REG_CRE_032() runs on Tester system CseSystem {
var AeSimu v_ae1 := AeSimu.create("AE1") alive;
v_ae1.start(f_CSE_REG_CRE_032());
v_ae1.done;
}
function f_CSE_REG_CRE_032() runs on AeSimu system CseSystem {
var MsgIn v_response;
var RequestPrimitive v_request;
var integer v_cseBaseIndex := -1;
var ResourceType v_resourceType := int2;
//Test control
// Test component configuration
f_cf01Up();
//Preamble
//Test Body
v_request := valueof(m_createAe(PX_TS_AE1.appId, omit, ""));
v_request := f_getCreateRequestPrimitive(v_resourceType, v_request, -1);
f_send(e_mca_port, m_request(v_request));
tc_ac.start;
alt {
[] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) -> value v_response {
tc_ac.stop;
f_checkAttributesToBeSaved(int2, v_request, v_response.primitive.responsePrimitive);
vc_aeAuxIndex := f_setResource(v_response.primitive.responsePrimitive.primitiveContent, int2);
setverdict(pass, __SCOPE__ & ": AE successfully created.");
}
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int2001))) -> value v_response{
tc_ac.stop;
setverdict(fail, __SCOPE__ & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(fail, __SCOPE__ & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
}
} //end group Create
group Retrieve{
......
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