diff --git a/OneM2M_Testcases.ttcn b/OneM2M_Testcases.ttcn index 6c3e0808e9ae453cbcd698a95ee4e015d7c0f00a..a0227ad08a4ed8673cbc5bb93b0248372280c27f 100644 --- a/OneM2M_Testcases.ttcn +++ b/OneM2M_Testcases.ttcn @@ -1156,7 +1156,7 @@ module OneM2M_Testcases { testcase TC_CSE_REG_CRE_010() runs on AeSimu system CseSystem { var MsgIn v_response; - var ResponsePrimitive v_request; + var RequestPrimitive v_request; var integer v_aeIndex := -1; // Test component configuration @@ -1522,7 +1522,54 @@ module OneM2M_Testcases { // Tear down f_cf01Down(); - }//end TC_CSE_REG_CRE_024 + }//end TC_CSE_REG_CRE_025 + + /** + * @desc Check that the IUT rejects the create request of <CSEBase> resource. + * + */ + testcase TC_CSE_REG_CRE_027() runs on InCseSimu system CseSystem { + + // Local variables + var RequestPrimitive v_request; + var integer v_cseBaseIndex := -1; + var ResourceType v_resourceType := int2; + + // Test control + + // Test component configuration + f_cf01UpCseSimuMaster(); + + // Test adapter configuration + + // Preamble + vc_remoteCseIndex := f_cse_registrationRemoteCse(mw_createRemoteCSEBase); + + // Test Body + vc_aeSimu.start(f_cse_createResource(int2, m_createAe(PX_APP_ID, omit, omit))); + + tc_ac.start; + alt { + [] mccPort.receive(mw_response(mw_responsePrimitive(int2001))) { + tc_ac.stop; + setverdict(pass, __SCOPE__ & ": AE creation successful."); + } + [] mccPort.receive { + tc_ac.stop; + setverdict(fail, __SCOPE__ & ": Error while creating AE"); + } + [] tc_ac.timeout { + setverdict(fail, __SCOPE__ & ": No answer while creating AE"); + } + } + + // Postamble + f_cse_postamble_deleteResourcesCSE(); + + // Tear down + f_cf01DownCseSimuMaster(); + + }//end TC_CSE_REG_CRE_027 /** * @desc Check that the IUT rejects registration of already registered AE (C-AE-ID-STEM provided by AE)