Skip to content
Snippets Groups Projects
Commit deab6586 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Merge branch 'STF531-DELETEGROUPTESTCASES' into 'master'

Stf531 deletegrouptestcases



See merge request !12
parents de470242 25aa6dcc
No related branches found
No related tags found
1 merge request!25Ae fixes
...@@ -187,21 +187,25 @@ module OneM2M_TestControl { ...@@ -187,21 +187,25 @@ module OneM2M_TestControl {
execute(TC_CSE_DMR_DEL_BV_004_05()); execute(TC_CSE_DMR_DEL_BV_004_05());
execute(TC_CSE_DMR_DEL_BV_004_06()); execute(TC_CSE_DMR_DEL_BV_004_06());
execute(TC_CSE_DMR_DEL_BV_005()); execute(TC_CSE_DMR_DEL_BV_005());
execute(TC_CSE_DMR_DEL_BV_007());
execute(TC_CSE_DMR_DEL_BO_008());
execute(TC_CSE_DMR_DEL_BV_009());
execute(TC_CSE_DMR_DEL_BO_010());
execute(TC_CSE_LOC_BV_001()); execute(TC_CSE_LOC_BV_001());
execute(TC_CSE_LOC_BV_002()); execute(TC_CSE_LOC_BV_002());
execute(TC_CSE_LOC_BO_001()); execute(TC_CSE_LOC_BO_003());
execute(TC_CSE_LOC_BO_002()); execute(TC_CSE_LOC_BO_004());
execute(TC_CSE_LOC_BI_001()); execute(TC_CSE_LOC_BI_005());
execute(TC_CSE_LOC_BV_003()); execute(TC_CSE_LOC_BV_006());
execute(TC_CSE_LOC_BV_004()); execute(TC_CSE_LOC_BV_007());
execute(TC_CSE_LOC_BV_005()); execute(TC_CSE_LOC_BV_008());
execute(TC_CSE_LOC_BV_006_01()); execute(TC_CSE_LOC_BV_009_01());
execute(TC_CSE_LOC_BV_006_02()); execute(TC_CSE_LOC_BV_009_02());
execute(TC_CSE_LOC_BV_006_03()); execute(TC_CSE_LOC_BV_009_03());
//execute(TC_CSE_LOC_BV_007()); //execute(TC_CSE_LOC_BV_007());
//execute(TC_CSE_LOC_BV_008()); //execute(TC_CSE_LOC_BV_008());
execute(TC_CSE_LOC_BV_009()); execute(TC_CSE_LOC_BV_012());
execute(TC_CSE_LOC_BV_010()); execute(TC_CSE_LOC_BV_013());
execute(TC_CSE_GMG_BV_001()); execute(TC_CSE_GMG_BV_001());
execute(TC_CSE_GMG_BV_002()); execute(TC_CSE_GMG_BV_002());
execute(TC_CSE_GMG_BV_003()); execute(TC_CSE_GMG_BV_003());
......
...@@ -7490,6 +7490,255 @@ module OneM2M_Testcases { ...@@ -7490,6 +7490,255 @@ module OneM2M_Testcases {
}//end f_CSE_DMR_DEL_BV_006 }//end f_CSE_DMR_DEL_BV_006
} // end group g_CSE_DMR_DEL_BV_006 } // end group g_CSE_DMR_DEL_BV_006
group g_CSE_DMR_DEL_BV_007{
testcase TC_CSE_DMR_DEL_BV_007() runs on CseTester system CseSystem {
// Local variables
var MsgIn v_response;
var RequestPrimitive v_request;
var integer v_aeIndex := -1;
var integer v_containerIndex := -1;
var integer v_contentInstanceIndex_1 := -1;
var integer v_contentInstanceIndex_2 := -1;
const ResourceType c_containerResourceType := int3;
// Test control
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
v_containerIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex);
v_contentInstanceIndex_1 := f_cse_createResource(int4, m_createContentInstanceBase, v_containerIndex);
v_contentInstanceIndex_2 := f_cse_createResource(int4, m_createContentInstanceBase, v_containerIndex);
// Test Body
v_request := valueof(m_deleteRequest(f_getResourceAddress(v_containerIndex) & "/la"));
mcaPort.send(m_request(v_request));
tc_ac.start;
alt {
[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
tc_ac.stop;
setverdict(pass, testcasename() & ": Resource type " & int2str(enum2int(c_containerResourceType)) & " deleted successfuly");
}
[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) -> value v_response {
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while deleting resource type " & int2str(enum2int(c_containerResourceType)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while deleting resource type " & int2str(enum2int(c_containerResourceType)));
}
}
f_checkCseTesterStatus();
mcaPort.send(m_request(m_retrieveResource((f_getResourceAddress(v_contentInstanceIndex_2)), f_getOriginator(v_contentInstanceIndex_2))));
tc_ac.start;
alt {
[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
tc_ac.stop;
setverdict(fail, testcasename() & ": Resource type" & int2str(enum2int(c_containerResourceType)) & " has already been deleted");
}
[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
tc_ac.stop;
setverdict(pass, testcasename() & ": Error while retrieving resource attributes as" & int2str(enum2int(c_containerResourceType)) & " has been deleted");
}
[] tc_ac.timeout {
setverdict(fail, testcasename() & ": No answer while retrieving resource attributes");
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
}//end f_CSE_DMR_DEL_BV_007
} // end group g_CSE_DMR_DEL_BV_007
group g_CSE_DMR_DEL_BO_008{
testcase TC_CSE_DMR_DEL_BO_008() runs on CseTester system CseSystem {
// Local variables
var MsgIn v_response;
var RequestPrimitive v_request;
var integer v_aeIndex := -1;
var integer v_containerIndex := -1;
var integer v_contentInstanceIndex := -1;
const ResourceType c_containerResourceType := int4;
// Test control
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
v_containerIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex);
// Test Body
v_request := valueof(m_deleteRequest(f_getResourceAddress(v_containerIndex) & "/la"));
mcaPort.send(m_request(v_request));
tc_ac.start;
alt {
[] mcaPort.receive(mw_response(mw_responsePrimitive(int4004))) -> value v_response {
tc_ac.stop;
setverdict(pass, testcasename() & ": Resource type " & int2str(enum2int(c_containerResourceType)) & " NOT FOUND");
}
[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
tc_ac.stop;
setverdict(fail, testcasename() & ": Resource type " & int2str(enum2int(c_containerResourceType)) & " has not been created");
}
[] tc_ac.timeout {
setverdict(fail, testcasename() & ": No answer while deleting resource type " & int2str(enum2int(c_containerResourceType)));
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
}//end f_CSE_DMR_DEL_BO_008
} // end group g_CSE_DMR_DEL_BO_008
group g_CSE_DMR_DEL_BV_009{
testcase TC_CSE_DMR_DEL_BV_009() runs on CseTester system CseSystem {
// Local variables
var MsgIn v_response;
var RequestPrimitive v_request;
var integer v_aeIndex := -1;
var integer v_containerIndex := -1;
var integer v_contentInstanceIndex_1 := -1;
var integer v_contentInstanceIndex_2 := -1;
const ResourceType c_containerResourceType := int3;
// Test control
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
v_containerIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex);
v_contentInstanceIndex_1 := f_cse_createResource(int4, m_createContentInstanceBase, v_containerIndex);
v_contentInstanceIndex_2 := f_cse_createResource(int4, m_createContentInstanceBase, v_containerIndex);
// Test Body
v_request := valueof(m_deleteRequest(f_getResourceAddress(v_containerIndex) & "/ol"));
mcaPort.send(m_request(v_request));
tc_ac.start;
alt {
[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
tc_ac.stop;
setverdict(pass, testcasename() & ": Resource type " & int2str(enum2int(c_containerResourceType)) & " deleted successfuly");
}
[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) -> value v_response {
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while deleting resource type " & int2str(enum2int(c_containerResourceType)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while deleting resource type " & int2str(enum2int(c_containerResourceType)));
}
}
f_checkCseTesterStatus();
mcaPort.send(m_request(m_retrieveResource((f_getResourceAddress(v_contentInstanceIndex_1)), f_getOriginator(v_contentInstanceIndex_1))));
tc_ac.start;
alt {
[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
tc_ac.stop;
setverdict(fail, testcasename() & ": Resource type" & int2str(enum2int(c_containerResourceType)) & "has already been deleted");
}
[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
tc_ac.stop;
setverdict(pass, testcasename() & ": Error while retrieving resource attributes as" & int2str(enum2int(c_containerResourceType)) & " has been deleted");
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while retrieving resource attributes");
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
}//end f_CSE_DMR_DEL_BV_009
} // end group g_CSE_DMR_DEL_BV_009
group g_CSE_DMR_DEL_BO_010{
testcase TC_CSE_DMR_DEL_BO_010() runs on CseTester system CseSystem {
// Local variables
var MsgIn v_response;
var RequestPrimitive v_request;
var integer v_aeIndex := -1;
var integer v_containerIndex := -1;
var integer v_contentInstanceIndex := -1;
const ResourceType c_containerResourceType := int4;
// Test control
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
v_containerIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex);
// Test Body
v_request := valueof(m_deleteRequest(f_getResourceAddress(v_containerIndex) & "/ol"));
mcaPort.send(m_request(v_request));
tc_ac.start;
alt {
[] mcaPort.receive(mw_response(mw_responsePrimitive(int4004))) -> value v_response {
tc_ac.stop;
setverdict(pass, testcasename() & ": Resource type" & int2str(enum2int(c_containerResourceType)) & " NOT FOUND");
}
[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
tc_ac.stop;
setverdict(fail, testcasename() & ": Resource type" & int2str(enum2int(c_containerResourceType)) & " has not been created");
}
[] tc_ac.timeout {
setverdict(fail, testcasename() & ": No answer while deleting resource type " & int2str(enum2int(c_containerResourceType)));
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
}//end f_CSE_DMR_DEL_BO_010
} // end group g_CSE_DMR_DEL_BO_010
}//end group Delete }//end group Delete
}//end group Data_Management_and_Repository }//end group Data_Management_and_Repository
...@@ -7594,9 +7843,9 @@ module OneM2M_Testcases { ...@@ -7594,9 +7843,9 @@ module OneM2M_Testcases {
}//end group g_CSE_LOC_BV_002 }//end group g_CSE_LOC_BV_002
group g_CSE_LOC_BO_001{ group g_CSE_LOC_BO_003{
testcase TC_CSE_LOC_BO_001() runs on CseTester system CseSystem {//the originator has no privileges to create a locationPolicy resource!! testcase TC_CSE_LOC_BO_003() runs on CseTester system CseSystem {//the originator has no privileges to create a locationPolicy resource!!
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
var integer v_acpAuxIndex := -1; var integer v_acpAuxIndex := -1;
...@@ -7648,12 +7897,12 @@ module OneM2M_Testcases { ...@@ -7648,12 +7897,12 @@ module OneM2M_Testcases {
f_cf01Down(); f_cf01Down();
} // end testcase TC_CSE_LOC_BO_001 } // end testcase TC_CSE_LOC_BO_003
}//end group g_CSE_LOC_BO_001 }//end group g_CSE_LOC_BO_003
group g_CSE_LOC_BO_002{ group g_CSE_LOC_BO_004{
testcase TC_CSE_LOC_BO_002() runs on CseTester system CseSystem { testcase TC_CSE_LOC_BO_004() runs on CseTester system CseSystem {
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
var LocationSource v_locationSource := int1;//Netwok-based var LocationSource v_locationSource := int1;//Netwok-based
...@@ -7695,14 +7944,14 @@ module OneM2M_Testcases { ...@@ -7695,14 +7944,14 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}// end testcase TC_CSE_LOC_BO_002 }// end testcase TC_CSE_LOC_BO_004
}//end group g_CSE_LOC_BO_002 }//end group g_CSE_LOC_BO_004
group g_CSE_LOC_BI_001{ group g_CSE_LOC_BI_005{
testcase TC_CSE_LOC_BI_001() runs on CseTester system CseSystem {//reject an invalid update request with invalid attribtue locationUpdatePeriod testcase TC_CSE_LOC_BI_005() runs on CseTester system CseSystem {//reject an invalid update request with invalid attribtue locationUpdatePeriod
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
var integer v_locPolicyResourceIndex := -1; var integer v_locPolicyResourceIndex := -1;
...@@ -7750,13 +7999,13 @@ module OneM2M_Testcases { ...@@ -7750,13 +7999,13 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BI_001 }//end testcase TC_CSE_LOC_BI_005
}//end group g_CSE_LOC_BI_001 }//end group g_CSE_LOC_BI_005
group g_CSE_LOC_BV_003 { group g_CSE_LOC_BV_006 {
testcase TC_CSE_LOC_BV_003() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_006() runs on CseTester system CseSystem{
//TO RETRIEVE a <container> resource that has created in cse and linked with a <locationPolicy> resource (network-based case) //TO RETRIEVE a <container> resource that has created in cse and linked with a <locationPolicy> resource (network-based case)
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
...@@ -7813,13 +8062,13 @@ module OneM2M_Testcases { ...@@ -7813,13 +8062,13 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BV_003 }//end testcase TC_CSE_LOC_BV_006
}//end group g_CSE_LOC_BV_003 }//end group g_CSE_LOC_BV_006
group g_CSE_LOC_BV_004 { group g_CSE_LOC_BV_007 {
testcase TC_CSE_LOC_BV_004() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_007() runs on CseTester system CseSystem{
//TO create a <locationPolicy> resource with locationSource set to Device-based //TO create a <locationPolicy> resource with locationSource set to Device-based
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
...@@ -7862,13 +8111,13 @@ module OneM2M_Testcases { ...@@ -7862,13 +8111,13 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BV_004 }//end testcase TC_CSE_LOC_BV_007
}//end group g_CSE_LOC_BV_004 }//end group g_CSE_LOC_BV_007
group g_CSE_LOC_BV_005 { group g_CSE_LOC_BV_008 {
testcase TC_CSE_LOC_BV_005() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_008() runs on CseTester system CseSystem{
//TO create a <locationPolicy> resource with locationSource set to Share-based //TO create a <locationPolicy> resource with locationSource set to Share-based
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
...@@ -7911,13 +8160,13 @@ module OneM2M_Testcases { ...@@ -7911,13 +8160,13 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BV_005 }//end testcase TC_CSE_LOC_BV_008
}//end group g_CSE_LOC_BV_005 }//end group g_CSE_LOC_BV_008
group g_CSE_LOC_BV_006 { group g_CSE_LOC_BV_009 {
testcase TC_CSE_LOC_BV_006_01() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_009_01() runs on CseTester system CseSystem{
//TO NOTIFY a location information //TO NOTIFY a location information
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
...@@ -7979,9 +8228,9 @@ module OneM2M_Testcases { ...@@ -7979,9 +8228,9 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BV_006_01 }//end testcase TC_CSE_LOC_BV_009_01
testcase TC_CSE_LOC_BV_006_02() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_009_02() runs on CseTester system CseSystem{
//TO NOTIFY a location information //TO NOTIFY a location information
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
...@@ -8042,9 +8291,9 @@ module OneM2M_Testcases { ...@@ -8042,9 +8291,9 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BV_006_02 }//end testcase TC_CSE_LOC_BV_009_02
testcase TC_CSE_LOC_BV_006_03() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_009_03() runs on CseTester system CseSystem{
//TO NOTIFY a location information //TO NOTIFY a location information
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
...@@ -8104,8 +8353,8 @@ module OneM2M_Testcases { ...@@ -8104,8 +8353,8 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BV_006_03 }//end testcase TC_CSE_LOC_BV_009_03
}//end group g_CSE_LOC_BV_006 }//end group g_CSE_LOC_BV_009
/*group g_CSE_LOC_BV_007 { /*group g_CSE_LOC_BV_007 {
testcase TC_CSE_LOC_BV_007() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_007() runs on CseTester system CseSystem{
...@@ -8120,8 +8369,8 @@ module OneM2M_Testcases { ...@@ -8120,8 +8369,8 @@ module OneM2M_Testcases {
}//end group g_CSE_LOC_BV_008 }//end group g_CSE_LOC_BV_008
*/ */
group g_CSE_LOC_BV_009 { group g_CSE_LOC_BV_012 {
testcase TC_CSE_LOC_BV_009() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_012() runs on CseTester system CseSystem{
//To CREATE a <subscription> resource as a child resource of the created <container> //To CREATE a <subscription> resource as a child resource of the created <container>
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
...@@ -8172,12 +8421,12 @@ module OneM2M_Testcases { ...@@ -8172,12 +8421,12 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BV_009 }//end testcase TC_CSE_LOC_BV_012
}//end group g_CSE_LOC_BV_009 }//end group g_CSE_LOC_BV_012
group g_CSE_LOC_BV_010 { group g_CSE_LOC_BV_013 {
testcase TC_CSE_LOC_BV_010() runs on CseTester system CseSystem{ testcase TC_CSE_LOC_BV_013() runs on CseTester system CseSystem{
//TO RETRIEVE a <locationPolicy> resource that has created in cse //TO RETRIEVE a <locationPolicy> resource that has created in cse
var integer v_aeAuxIndex := -1; var integer v_aeAuxIndex := -1;
...@@ -8232,9 +8481,9 @@ module OneM2M_Testcases { ...@@ -8232,9 +8481,9 @@ module OneM2M_Testcases {
// Tear down // Tear down
f_cf01Down(); f_cf01Down();
}//end testcase TC_CSE_LOC_BV_010 }//end testcase TC_CSE_LOC_BV_013
}//end group g_CSE_LOC_BV_010 }//end group g_CSE_LOC_BV_013
}//end group Location }//end group Location
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment