diff --git a/OneM2M_Testcases_CSE_Release_1.ttcn b/OneM2M_Testcases_CSE_Release_1.ttcn index 501db4fa841c87b9f05f9cdd4d8432076be7c10c..235af30d88cb32d5e6e484c0f416027f1ff2ed3e 100644 --- a/OneM2M_Testcases_CSE_Release_1.ttcn +++ b/OneM2M_Testcases_CSE_Release_1.ttcn @@ -5838,67 +5838,6 @@ module OneM2M_Testcases_CSE_Release_1 { } } - testcase TC_CSE_DMR_UPD_004_ACP_PV_AT_LBL() runs on Tester system CseSystem { - // Local variables - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Labels v_labels_1 := {"VALUE_1"}; - var Labels v_labels_2 := {"To be deleted"}; - var SetOfAcrs v_privileges_2 := {accessControlRule_list := {valueof(m_createAcr({PX_SUPER_AE_ID}, int61))}}; - var AttributeAux_list v_nullFields; - var template RequestPrimitive v_createRequest := m_createAcpBase;// privileges set by default to 63 for * - var template RequestPrimitive v_updateRequest := m_updateAcpBase; - var ResponsePrimitive v_responsePrimitive; - var PrimitiveContent v_primitiveContentRetrieveResource; - v_createRequest.primitiveContent.accessControlPolicy.labels := v_labels_1;//Attribute 3 - v_updateRequest.primitiveContent.accessControlPolicy.privileges := v_privileges_2; //Attribute 1 - v_updateRequest.primitiveContent.accessControlPolicy.announceTo := {f_getCompletePoA()};//Attribute 2 - v_updateRequest.primitiveContent.accessControlPolicy.labels := v_labels_2;//Attribute 3 - - v_nullFields := {{"labels", omit}}; - - v_ae1.start(f_CSE_DMR_UPD_004(int1, v_createRequest, v_updateRequest, v_nullFields));//AccessControlPolicy - v_ae1.done; - - - - if(getverdict == pass){ v_responsePrimitive := f_getResponsePrimitive(v_ae1); - if(ispresent(v_responsePrimitive.primitiveContent)) { - if(ischosen(v_responsePrimitive.primitiveContent.accessControlPolicy)) { - //Check attribute 1 - if(not match(v_responsePrimitive.primitiveContent.accessControlPolicy.privileges.accessControlRule_list[0].accessControlOperations, v_privileges_2.accessControlRule_list[0].accessControlOperations)){ - setverdict(fail, __SCOPE__ & ": Error: Privileges attribute not updated correctly") - } - //Check attribute 2 - if(not match(v_responsePrimitive.primitiveContent.accessControlPolicy.announceTo, valueof(v_updateRequest.primitiveContent.accessControlPolicy.announceTo))){ - setverdict(fail, __SCOPE__ & ": Error: Announce_to attribute not updated correctly") - } - //Check attribute 3 - if(ispresent(v_responsePrimitive.primitiveContent.accessControlPolicy.labels)){ - setverdict(fail, __SCOPE__ & ": Error: Labels attribute not deleted correctly") - } - } - } - - v_primitiveContentRetrieveResource := f_getPrimitiveContentRetrievedResource(v_ae1); - - //Check that the resource has been udpated correctly - if(ischosen(v_primitiveContentRetrieveResource.accessControlPolicy)) { - //Check attribute 1 - if(not match (v_primitiveContentRetrieveResource.accessControlPolicy.privileges.accessControlRule_list[0].accessControlOperations, v_privileges_2.accessControlRule_list[0].accessControlOperations)){ - setverdict(fail, __SCOPE__ & ": Error: Privileges attribute not updated correctly") - } - //Check attribute 2 - if(not match (v_primitiveContentRetrieveResource.accessControlPolicy.announceTo, valueof(v_updateRequest.primitiveContent.accessControlPolicy.announceTo))){ - setverdict(fail, __SCOPE__ & ": Error: Announce_to attribute not updated correctly") - } - //Check attribute 3 - if(ispresent(v_primitiveContentRetrieveResource.accessControlPolicy.labels)){ - setverdict(fail, __SCOPE__ & ": Error: Labels attribute not deleted correctly") - } - } - } - } - testcase TC_CSE_DMR_UPD_004_SUB_ET_LBL_EXC() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive;