diff --git a/OneM2M_Testcases_CSE_Release_4.ttcn b/OneM2M_Testcases_CSE_Release_4.ttcn index 676f36dfbc08c8f2a051fb828e8cc7ad28872934..4b1e1e0516e4b774747bf7306650f8b95b71bd12 100644 --- a/OneM2M_Testcases_CSE_Release_4.ttcn +++ b/OneM2M_Testcases_CSE_Release_4.ttcn @@ -5340,7 +5340,7 @@ module OneM2M_Testcases_CSE_Release_4 { group TC_CSE_PP_003 { /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the request messages by modifying the applicable parameters/attributes when the request message contains a valid PrimitiveProfileIdentifier parameter and the referenced profile is accessible to the Hosting CSE. + * @desc Check that IUT applies the referenced <primitiveProfile> over the request messages by replacing the applicable parameters/attributes when the request message contains a valid PrimitiveProfileIdentifier parameter and the referenced profile is accessible to the Hosting CSE. * */ testcase TC_CSE_PP_003_CRE() runs on Tester system CseSystem { @@ -5631,7 +5631,7 @@ module OneM2M_Testcases_CSE_Release_4 { group TC_CSE_PP_004 { /** - * @desc Check that the IUT rejects the request without applying the profile when the <primitiveProfile> resource referenced by the PrimitiveProfileIdentifier parameter is not present or not accessible by Hosting CSE. + * @desc Check that the IUT rejects the request when the <primitiveProfile> resource referenced by the PrimitiveProfileIdentifier parameter is not present. * */ testcase TC_CSE_PP_004_CRE() runs on Tester system CseSystem { @@ -5702,7 +5702,7 @@ module OneM2M_Testcases_CSE_Release_4 { } // f_CSE_PP_004_CRE /** - * @desc Check that the IUT rejects the request when the <primitiveProfile> resource referenced by the PrimitiveProfileIdentifier parameter is not present or not accessible by Hosting CSE. + * @desc Check that the IUT rejects the request when the <primitiveProfile> resource referenced by the PrimitiveProfileIdentifier parameter is not present. * */ testcase TC_CSE_PP_004_RET() runs on Tester system CseSystem { @@ -5785,7 +5785,7 @@ module OneM2M_Testcases_CSE_Release_4 { } // f_CSE_PP_004_RET /** - * @desc Check that the IUT rejects the request when the <primitiveProfile> resource referenced by the PrimitiveProfileIdentifier parameter is not present or not accessible by Hosting CSE. + * @desc Check that the IUT rejects the request when the <primitiveProfile> resource referenced by the PrimitiveProfileIdentifier parameter is not present. * */ testcase TC_CSE_PP_004_DEL() runs on Tester system CseSystem { @@ -5858,7 +5858,7 @@ module OneM2M_Testcases_CSE_Release_4 { /** - * @desc Check that the IUT successfully processes the request without applying the profile when the <primitiveProfile> resource referenced by the PrimitiveProfileIdentifier parameter in the request is not present or not accessible by Hosting CSE. + * @desc Check that the IUT rejects the request when the <primitiveProfile> resource referenced by the PrimitiveProfileIdentifier parameter in the request is not present. * */ testcase TC_CSE_PP_004_UPD() runs on Tester system CseSystem { @@ -5937,20 +5937,20 @@ module OneM2M_Testcases_CSE_Release_4 { } // f_CSE_PP_004_UPD } //end group TC_CSE_PP_004 - group TC_CSE_PP_005 { + group TC_CSE_PP_006 { /** * @desc Check that the IUT successfully processes the request without applying the profile when the attributes in the request do not match with the referenced <primitiveProfile> resource attributes. * */ - testcase TC_CSE_PP_005_CRE() runs on Tester system CseSystem { + testcase TC_CSE_PP_006_CRE() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_005_CRE()); + v_ae1.start(f_CSE_PP_006_CRE()); v_ae1.done; } - function f_CSE_PP_005_CRE() runs on AeSimu system CseSystem { + function f_CSE_PP_006_CRE() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var RequestPrimitive v_request; @@ -5995,20 +5995,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_005_CRE + } // f_CSE_PP_006_CRE /** * @desc Check that the IUT successfully processes the request without applying the profile when the attributes in the request do not match with the referenced <primitiveProfile> resource attributes. * */ - testcase TC_CSE_PP_005_RET() runs on Tester system CseSystem { + testcase TC_CSE_PP_006_RET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_005_RET()); + v_ae1.start(f_CSE_PP_006_RET()); v_ae1.done; } - function f_CSE_PP_005_RET() runs on AeSimu system CseSystem { + function f_CSE_PP_006_RET() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; @@ -6056,20 +6056,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_005_RET + } // f_CSE_PP_006_RET /** * @desc Check that the IUT successfully processes the request without applying the profile when the attributes in the request do not match with the referenced <primitiveProfile> resource attributes. * */ - testcase TC_CSE_PP_005_DEL() runs on Tester system CseSystem { + testcase TC_CSE_PP_006_DEL() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_005_DEL()); + v_ae1.start(f_CSE_PP_006_DEL()); v_ae1.done; } - function f_CSE_PP_005_DEL() runs on AeSimu system CseSystem { + function f_CSE_PP_006_DEL() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; @@ -6118,20 +6118,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_005_DEL + } // f_CSE_PP_006_DEL /** * @desc Check that the IUT successfully processes the request without applying the profile when the attributes in the request do not match with the referenced <primitiveProfile> resource attributes. * */ - testcase TC_CSE_PP_005_UPD() runs on Tester system CseSystem { + testcase TC_CSE_PP_006_UPD() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_005_UPD()); + v_ae1.start(f_CSE_PP_006_UPD()); v_ae1.done; } - function f_CSE_PP_005_UPD() runs on AeSimu system CseSystem { + function f_CSE_PP_006_UPD() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; @@ -6184,21 +6184,21 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_005_UPD - }//end group TC_CSE_PP_005 + } // f_CSE_PP_006_UPD + }//end group TC_CSE_PP_006 /** - * @desc Check that the IUT rejects the creation of a <primitiveProfile> resource when a mutual exclusivity check is failed, on the names of the attributes or parameters specified in the additions, deletions and modifications attributes in the request. + * @desc Check that the IUT rejects the creation of a <primitiveProfile> resource when a mutual exclusivity check is failed, on the names of the attributes or parameters specified in the additions and deletions attributes. * */ - testcase TC_CSE_PP_006() runs on Tester system CseSystem { + testcase TC_CSE_PP_009() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_006()); + v_ae1.start(f_CSE_PP_009()); v_ae1.done; } - function f_CSE_PP_006() runs on AeSimu system CseSystem { + function f_CSE_PP_009() runs on AeSimu system CseSystem { // Local variables var RequestPrimitive v_createPrimitveProfile; var RequestPrimitive v_requestContainerCreate; @@ -6239,20 +6239,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_006 + } // f_CSE_PP_009 /** - * @desc Check that the IUT rejects the updation of <primitiveProfile> resource when a mutual exclusivity check is failed on the names of the attributes or parameters specified in the additions, deletions and modifications attributes of the request. + * @desc Check that the IUT rejects the update request of <primitiveProfile> resource when a mutual exclusivity check is failed on the names of the attributes or parameters specified in the additions and deletions attributes. * */ - testcase TC_CSE_PP_007() runs on Tester system CseSystem { + testcase TC_CSE_PP_010() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_007()); + v_ae1.start(f_CSE_PP_010()); v_ae1.done; } - function f_CSE_PP_007() runs on AeSimu system CseSystem { + function f_CSE_PP_010() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; @@ -6295,20 +6295,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_006 + } // f_CSE_PP_010 /** - * @desc Check that the IUT rejects the creation of a <primitiveProfile> resource when a request contains non permissible parameters specified in the additions, deletions and modifications attributes. + * @desc Check that the IUT rejects the creation of a <primitiveProfile> resource when a request contains non permissible or mandatory parameters specified in the additions and deletions attributes. * */ - testcase TC_CSE_PP_008() runs on Tester system CseSystem { + testcase TC_CSE_PP_011() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_008()); + v_ae1.start(f_CSE_PP_011()); v_ae1.done; } - function f_CSE_PP_008() runs on AeSimu system CseSystem { + function f_CSE_PP_011() runs on AeSimu system CseSystem { // Local variables var RequestPrimitive v_createPrimitveProfile; var RequestPrimitive v_updateContainer; @@ -6351,20 +6351,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_008 + } // f_CSE_PP_011 /** - * @desc Check that the IUT rejects the UPDATE operation on resource <primitiveProfile> when a request contains non permissible parameters specified in the additions, deletions and modifications attributes. + * @desc Check that the IUT rejects the UPDATE operation on resource <primitiveProfile> when a request contains non permissible parameters specified in the additions and deletions attributes. * */ - testcase TC_CSE_PP_009() runs on Tester system CseSystem { + testcase TC_CSE_PP_012() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_009()); + v_ae1.start(f_CSE_PP_012()); v_ae1.done; } - function f_CSE_PP_009() runs on AeSimu system CseSystem { + function f_CSE_PP_012() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; @@ -6407,20 +6407,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_009 + } // f_CSE_PP_012 /** * @desc Check that IUT successfully applies the <primitiveProfile> to the notification (Notify request primitive) in case of nonBlockingRequestAsynch request having valid attribute PrimitiveProfileIdentifier. * */ - testcase TC_CSE_PP_010() runs on Tester system CseSystem { + testcase TC_CSE_PP_013() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_010()); + v_ae1.start(f_CSE_PP_013()); v_ae1.done; } - function f_CSE_PP_010() runs on AeSimu system CseSystem { + function f_CSE_PP_013() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var RequestPrimitive v_request; @@ -6532,20 +6532,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_010 + } // f_CSE_PP_013 /** * @desc Check that IUT successfully applies the <primitiveProfile> to the response in case of nonBlockingRequestSynch request having valid Primitive Profile Identifier. * */ - testcase TC_CSE_PP_011() runs on Tester system CseSystem { + testcase TC_CSE_PP_014() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_011()); + v_ae1.start(f_CSE_PP_014()); v_ae1.done; } - function f_CSE_PP_011() runs on AeSimu system CseSystem { + function f_CSE_PP_014() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var RequestPrimitive v_request; @@ -6668,23 +6668,23 @@ module OneM2M_Testcases_CSE_Release_4 { // Tear down f_cf01Down(); - } // f_CSE_PP_011 + } // f_CSE_PP_014 /** * @desc Check that IUT successfully applies the <primitiveProfile> to the notification request generated for the <subscription> resource * */ - testcase TC_CSE_PP_012() runs on Tester system CseSystem { + testcase TC_CSE_PP_015() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_012()); + v_ae1.start(f_CSE_PP_015()); v_ae1.done; } - function f_CSE_PP_012() runs on AeSimu system CseSystem { + function f_CSE_PP_015() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; @@ -6756,21 +6756,21 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // end f_CSE_PP_012 + } // end f_CSE_PP_015 - group TC_CSE_PP_013 { + group TC_CSE_PP_016 { /** * @desc Check that the IUT retargets the request to the hosting CSE without applying the <primitiveProfile> when the To parameter contains the hosting CSE-ID which is known by the IUT. * */ - testcase TC_CSE_PP_013_CRE() runs on CseSimu system CseSystem { + testcase TC_CSE_PP_016_CRE() runs on CseSimu system CseSystem { var CseSimu v_cse1 := CseSimu.create("CSE1") alive; - v_cse1.start(f_CSE_PP_013_CRE()); + v_cse1.start(f_CSE_PP_016_CRE()); v_cse1.done; } - function f_CSE_PP_013_CRE() runs on CseSimu system CseSystem { + function f_CSE_PP_016_CRE() runs on CseSimu system CseSystem { var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; var integer v_primitiveProfileIndex := -1; @@ -6836,20 +6836,20 @@ module OneM2M_Testcases_CSE_Release_4 { // Tear down f_cf02DownCseSimuMaster(); - } // f_CSE_PP_013_CRE + } // f_CSE_PP_016_CRE /** * @desc Check that the IUT retargets the request to the hosting CSE without applying the <primitiveProfile> when the To parameter contains the hosting CSE-ID which is known by the IUT. * */ - testcase TC_CSE_PP_013_RET() runs on CseSimu system CseSystem { + testcase TC_CSE_PP_016_RET() runs on CseSimu system CseSystem { var CseSimu v_cse1 := CseSimu.create("CSE1") alive; - v_cse1.start(f_CSE_PP_013_RET()); + v_cse1.start(f_CSE_PP_016_RET()); v_cse1.done; } - function f_CSE_PP_013_RET() runs on CseSimu system CseSystem { + function f_CSE_PP_016_RET() runs on CseSimu system CseSystem { var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; var integer v_primitiveProfileIndex := -1; @@ -6918,20 +6918,20 @@ module OneM2M_Testcases_CSE_Release_4 { // Tear down f_cf02DownCseSimuMaster(); - } // f_CSE_PP_013_RET + } // f_CSE_PP_016_RET /** * @desc Check that the IUT retargets the request to the hosting CSE without applying the <primitiveProfile> when the To parameter contains the hosting CSE-ID which is known by the IUT. * */ - testcase TC_CSE_PP_013_DEL() runs on CseSimu system CseSystem { + testcase TC_CSE_PP_016_DEL() runs on CseSimu system CseSystem { var CseSimu v_cse1 := CseSimu.create("CSE1") alive; - v_cse1.start(f_CSE_PP_013_DEL()); + v_cse1.start(f_CSE_PP_016_DEL()); v_cse1.done; } - function f_CSE_PP_013_DEL() runs on CseSimu system CseSystem { + function f_CSE_PP_016_DEL() runs on CseSimu system CseSystem { var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; var integer v_primitiveProfileIndex := -1; @@ -7002,20 +7002,20 @@ module OneM2M_Testcases_CSE_Release_4 { // Tear down f_cf02DownCseSimuMaster(); - } // f_CSE_PP_013_DEL + } // f_CSE_PP_016_DEL /** * @desc Check that the IUT retargets the request to the hosting CSE without applying the <primitiveProfile> when the To parameter contains the hosting CSE-ID which is known by the IUT. * */ - testcase TC_CSE_PP_013_UPD() runs on CseSimu system CseSystem { + testcase TC_CSE_PP_016_UPD() runs on CseSimu system CseSystem { var CseSimu v_cse1 := CseSimu.create("CSE1") alive; - v_cse1.start(f_CSE_PP_013_UPD()); + v_cse1.start(f_CSE_PP_016_UPD()); v_cse1.done; } - function f_CSE_PP_013_UPD() runs on CseSimu system CseSystem { + function f_CSE_PP_016_UPD() runs on CseSimu system CseSystem { var template RequestPrimitive v_createPrimitveProfile; var integer v_aeIndex := -1; var integer v_primitiveProfileIndex := -1; @@ -7086,22 +7086,22 @@ module OneM2M_Testcases_CSE_Release_4 { // Tear down f_cf02DownCseSimuMaster(); - } // f_CSE_PP_013_CRE - } //end group TC_CSE_PP_013 + } // f_CSE_PP_016_CRE + } //end group TC_CSE_PP_016 - group TC_CSE_PP_014 { + group TC_CSE_PP_017 { /** * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_014_CRE() runs on Tester system CseSystem { + testcase TC_CSE_PP_017_CRE() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_014_CRE()); + v_ae1.start(f_CSE_PP_017_CRE()); v_ae1.done; } - function f_CSE_PP_014_CRE() runs on AeSimu system CseSystem { + function f_CSE_PP_017_CRE() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var RequestPrimitive v_request; @@ -7161,20 +7161,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_014_CRE + } // f_CSE_PP_017_CRE /** * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_014_DEL() runs on Tester system CseSystem { + testcase TC_CSE_PP_017_DEL() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_014_DEL()); + v_ae1.start(f_CSE_PP_017_DEL()); v_ae1.done; } - function f_CSE_PP_014_DEL() runs on AeSimu system CseSystem { + function f_CSE_PP_017_DEL() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var integer v_aeIndex := -1; @@ -7243,20 +7243,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_014_DEL + } // f_CSE_PP_017_DEL /** * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_014_RET() runs on Tester system CseSystem { + testcase TC_CSE_PP_017_RET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_014_RET()); + v_ae1.start(f_CSE_PP_017_RET()); v_ae1.done; } - function f_CSE_PP_014_RET() runs on AeSimu system CseSystem { + function f_CSE_PP_017_RET() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var integer v_primitiveProfileIndex := -1; @@ -7325,21 +7325,21 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_014_RET + } // f_CSE_PP_017_RET /** * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_014_UPD() runs on Tester system CseSystem { + testcase TC_CSE_PP_017_UPD() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_014_CRE()); + v_ae1.start(f_CSE_PP_017_CRE()); v_ae1.done; } - function f_CSE_PP_014_UPD() runs on AeSimu system CseSystem { + function f_CSE_PP_017_UPD() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var RequestPrimitive v_updateContainer; @@ -7400,22 +7400,22 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_014_UPD - } // TC_CSE_PP_014 + } // f_CSE_PP_017_UPD + } // TC_CSE_PP_017 - group TC_CSE_PP_015 { + group TC_CSE_PP_018 { /** * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by deleting the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_015_CRE() runs on Tester system CseSystem { + testcase TC_CSE_PP_018_CRE() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_015_CRE()); + v_ae1.start(f_CSE_PP_018_CRE()); v_ae1.done; } - function f_CSE_PP_015_CRE() runs on AeSimu system CseSystem { + function f_CSE_PP_018_CRE() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var RequestPrimitive v_request; @@ -7473,20 +7473,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_015_CRE + } // f_CSE_PP_018_CRE /** * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_015_DEL() runs on Tester system CseSystem { + testcase TC_CSE_PP_018_DEL() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_015_DEL()); + v_ae1.start(f_CSE_PP_018_DEL()); v_ae1.done; } - function f_CSE_PP_015_DEL() runs on AeSimu system CseSystem { + function f_CSE_PP_018_DEL() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var integer v_aeIndex := -1; @@ -7547,20 +7547,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_015_DEL + } // f_CSE_PP_018_DEL /** * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by deleting the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_015_RET() runs on Tester system CseSystem { + testcase TC_CSE_PP_018_RET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_015_RET()); + v_ae1.start(f_CSE_PP_018_RET()); v_ae1.done; } - function f_CSE_PP_015_RET() runs on AeSimu system CseSystem { + function f_CSE_PP_018_RET() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var RequestPrimitive v_updateContainer; @@ -7620,20 +7620,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_015_RET + } // f_CSE_PP_018_RET /** * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by deleting the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_015_UPD() runs on Tester system CseSystem { + testcase TC_CSE_PP_018_UPD() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_015_UPD()); + v_ae1.start(f_CSE_PP_018_UPD()); v_ae1.done; } - function f_CSE_PP_015_UPD() runs on AeSimu system CseSystem { + function f_CSE_PP_018_UPD() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var RequestPrimitive v_updateContainer; @@ -7690,23 +7690,23 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_015_UPD - } // TC_CSE_PP_015 + } // f_CSE_PP_018_UPD + } // TC_CSE_PP_018 - group TC_CSE_PP_016 { + group TC_CSE_PP_019 { /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by modifying the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. + * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by replacing the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_016_CRE() runs on Tester system CseSystem { + testcase TC_CSE_PP_019_CRE() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_016_CRE()); + v_ae1.start(f_CSE_PP_019_CRE()); v_ae1.done; } - function f_CSE_PP_016_CRE() runs on AeSimu system CseSystem { + function f_CSE_PP_019_CRE() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var RequestPrimitive v_request; @@ -7759,20 +7759,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_016_CRE + } // f_CSE_PP_019_CRE /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by modifying the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. + * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by replacing the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_016_DEL() runs on Tester system CseSystem { + testcase TC_CSE_PP_019_DEL() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_016_DEL()); + v_ae1.start(f_CSE_PP_019_DEL()); v_ae1.done; } - function f_CSE_PP_016_DEL() runs on AeSimu system CseSystem { + function f_CSE_PP_019_DEL() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var RequestPrimitive v_request; @@ -7832,20 +7832,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_016_CRE + } // f_CSE_PP_019_CRE /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by modifying the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. + * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by replacing the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_016_RET() runs on Tester system CseSystem { + testcase TC_CSE_PP_019_RET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_016_RET()); + v_ae1.start(f_CSE_PP_019_RET()); v_ae1.done; } - function f_CSE_PP_016_RET() runs on AeSimu system CseSystem { + function f_CSE_PP_019_RET() runs on AeSimu system CseSystem { // Local variables var MsgIn v_response; var integer v_aeIndex := -1; @@ -7901,20 +7901,20 @@ module OneM2M_Testcases_CSE_Release_4 { //Tear down f_cf01Down(); - } // f_CSE_PP_016_RET + } // f_CSE_PP_019_RET /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. + * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by replacing the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request. * */ - testcase TC_CSE_PP_016_UPD() runs on Tester system CseSystem { + testcase TC_CSE_PP_019_UPD() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - v_ae1.start(f_CSE_PP_016_CRE()); + v_ae1.start(f_CSE_PP_019_UPD()); v_ae1.done; } - function f_CSE_PP_016_UPD() runs on AeSimu system CseSystem { + function f_CSE_PP_019_UPD() runs on AeSimu system CseSystem { // Local variables var template RequestPrimitive v_createPrimitveProfile; var RequestPrimitive v_updateContainer; @@ -7965,888 +7965,12 @@ module OneM2M_Testcases_CSE_Release_4 { //Postamble f_cse_postamble_deleteResources(); - //Tear down - f_cf01Down(); - } // f_CSE_PP_016_UPD - } // TC_CSE_PP_016 - - group TC_CSE_PP_017 { - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_017_CRE() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_017_CRE()); - v_ae1.done; - } - - function f_CSE_PP_017_CRE() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var RequestPrimitive v_requestContainerCreate; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var MsgIn v_response; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - f_checkAeSimuStatus(); - - // Primitive Profile with add atribute "maxByte" = "100" for content resource. - v_createPrimitiveProfile := m_createPrimitveProfileAddMaxByte100ToResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - //Create container resource without "maxByte" primitive - v_requestContainerCreate := f_getCreateRequestPrimitive(int3, m_createContainerBase, v_aeIndex); - // Link Primitive Profile created to this Request. _to and _from handled in v_requestContainerCreate - v_requestContainerCreate.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - // Test Body - f_send(e_mcaPort, m_request(v_requestContainerCreate)); - tc_ac.start; - alt { // Check that IUT sends a valid Response to the AE containing valid RESPONSE_STATUS_CODE - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) -> value v_response { - tc_ac.stop; - if(ispresent(v_response.primitive.responsePrimitive.primitiveContent.container.maxByteSize)){ - if(v_response.primitive.responsePrimitive.primitiveContent.container.maxByteSize == 100) { - setverdict(pass, __SCOPE__ & ": Primitive Profile applied to response primitive"); - } else { - setverdict(fail, __SCOPE__ & ": Primitive Profile not applied to response primitive"); - } - } else { - setverdict(fail, __SCOPE__ & ": Primitive Profile not applied to response primitive!"); - } - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while retrieving resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer from IUT for the last Request!"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_017_CRE - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_017_RET() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_017_RET()); - v_ae1.done; - } - - function f_CSE_PP_017_RET() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var RequestPrimitive v_retrieveRequest; - var template PrimitiveContent v_retrieveContentResponse; - var integer v_containerIndex := -1; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile with attribute of Container resource 'MaxByte' to be added to response. - v_createPrimitiveProfile := m_createPrimitveProfileAddMaxByte100ToResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - // Set expected container in response - v_retrieveContentResponse.container := mw_contentContainerBase; - - //Create container resource without "maxByte" primitive - v_containerIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - v_retrieveRequest := valueof(m_retrieve(f_getResourceAddress(v_containerIndex), f_getOriginator(v_containerIndex))); - v_retrieveRequest.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - f_send(e_mcaPort, m_request(v_retrieveRequest)); - - tc_ac.start; - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2000, v_retrieveContentResponse))) { - tc_ac.stop; - setverdict(pass, __SCOPE__ & ": ResultContent from Primitive Profile added to Retrieve Request"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK(v_retrieveContentResponse))) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": ResultContent from Primitive Profile not added to Retrieve Request"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while retrieving resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer while retrieving resource"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_017_RET - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_017_DEL() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_017_DEL()); - v_ae1.done; - } - - function f_CSE_PP_017_DEL() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var integer v_containerIndex := -1; - var RequestPrimitive v_deleteRequest; - var template PrimitiveContent v_deleteContentResponse; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile with add atribute resultContent=1 (attribute) for content resource. - v_createPrimitiveProfile := m_createPrimitiveProfileAddResultContentTo1FromResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - v_deleteContentResponse.container := mw_contentContainer_rc1; - - //Create Container resource - v_containerIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - //Delete container resource with default resultContent - v_deleteRequest := valueof(m_delete(f_getResourceAddress(v_containerIndex), f_getOriginator(v_containerIndex))); - v_deleteRequest.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - f_send(e_mcaPort, m_request(v_deleteRequest)); - tc_ac.start; - - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2002, v_deleteContentResponse))) { - tc_ac.stop; - setverdict(pass, __SCOPE__ & ": All attributes provided as per the resultContent in primitive profile"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK(v_deleteContentResponse))) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong content provided when resultContent set to 1 in Primitive Profile"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while deleting resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer while deleting resource"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_017_DEL - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by adding the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_017_UPD() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_017_UPD()); - v_ae1.done; - } - - function f_CSE_PP_017_UPD() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var RequestPrimitive v_updateContainer; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var integer v_createdContainerResource := -1; - var MsgIn v_response; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile with add atribute "maxByte" = "100" for content resource. - v_createPrimitiveProfile := m_createPrimitveProfileAddMaxByte100ToResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - //Create container resource without Primtive Profile ID and no maxByte attribte - v_createdContainerResource := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - //Update container request with Primitive Profile ID, and not including update for maxByte - v_updateContainer:= f_getUpdateRequestPrimitive(int3, v_aeIndex, m_updateContainerBase); - - // Link Primitve Prifle created to this Request - v_updateContainer.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - f_send(e_mcaPort, m_request(v_updateContainer)); - tc_ac.start; - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2004))) -> value v_response { - tc_ac.stop; - // Check that IUT applied the Primitve Profile - if(v_response.primitive.responsePrimitive.primitiveContent.container.maxByteSize == 100){ - setverdict(pass, __SCOPE__ & ": maxByteSize primitive value in PrimitveProfile added correctly to Update Container Request!"); - } else { - setverdict(fail, __SCOPE__ & ": maxByteSize primitive value in PrimitveProfile not added to Update Container Request!"); - } - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Unexpected response status code from IUT!"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while updating resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer from IUT for the last Request!"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_017_UPD - - } // TC_CSE_PP_017 - - group TC_CSE_PP_018 { - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by deleting the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_018_CRE() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_018_CRE()); - v_ae1.done; - } - - function f_CSE_PP_018_CRE() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var RequestPrimitive v_requestContainerCreate; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var MsgIn v_response; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - f_checkAeSimuStatus(); - - // Primitive Profile with deletion atribute maxByteSize for content resource. - v_createPrimitiveProfile := m_createPrimitveProfileDeleteFromResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - //Create container resource without "maxByte" primitive - v_requestContainerCreate := f_getCreateRequestPrimitive(int3, m_createContainerBase, v_aeIndex); - // Link Primitive Profile created to this Request. _to and _from handled in v_requestContainerCreate - v_requestContainerCreate.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - // Test Body - f_send(e_mcaPort, m_request(v_requestContainerCreate)); - tc_ac.start; - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) -> value v_response { - tc_ac.stop; - // Check that IUT applied the Primitve Profile - if(ispresent(v_response.primitive.responsePrimitive.primitiveContent.container.maxByteSize)){ - setverdict(fail, __SCOPE__ & ": Primitive Profile not applied to response primtive!"); - } else { - setverdict(pass, __SCOPE__ & ": Primitive Profile successfully applied to response primtive by deleting maxByteSize!"); - } - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Mismatch in response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while creating resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer from IUT for the last Request!"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_018_CRE - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by deleting the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_018_RET() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_018_RET()); - v_ae1.done; - } - - function f_CSE_PP_018_RET() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var RequestPrimitive v_retrieveRequest; - var template PrimitiveContent v_retrieveContentResponse; - var integer v_containerIndex := -1; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile deleting "MaxByteSize" attribute of content resource - v_createPrimitiveProfile := m_createPrimitveProfileDeleteFromResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - // Set expected container in response - v_retrieveContentResponse.container := mw_contentContainerBase; - - //Create container resource without "maxByte" primitive - v_containerIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - // Associate the retrieve Request with the Primitive Profile - v_retrieveRequest := valueof(m_retrieve(f_getResourceAddress(v_containerIndex), f_getOriginator(v_containerIndex))); - v_retrieveRequest.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - f_send(e_mcaPort, m_request(v_retrieveRequest)); - tc_ac.start; - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2000, v_retrieveContentResponse))) { - tc_ac.stop; - setverdict(pass, __SCOPE__ & ": ResultContent from Primitive Profile added to Retrieve Request"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK(v_retrieveContentResponse))) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": ResultContent from Primitive Profile not added to Retrieve Request"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while retrieving resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer while retrieving resource"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_018_RET - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by deleting the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_018_DEL() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_018_DEL()); - v_ae1.done; - } - - function f_CSE_PP_018_DEL() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var integer v_containerIndex := -1; - var RequestPrimitive v_deleteRequest; - var template PrimitiveContent v_deleteContentResponse; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile deleting resultContent=1 (attribute) for content resource. - v_createPrimitiveProfile := m_createPrimitiveProfileDeleteResultContentTo1FromResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - v_deleteContentResponse.container := mw_contentContainer_rc1; - - //Create Container resource - v_containerIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - //Delete container resource with default resultContent - v_deleteRequest := valueof(m_delete(f_getResourceAddress(v_containerIndex), f_getOriginator(v_containerIndex))); - v_deleteRequest.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - f_send(e_mcaPort, m_request(v_deleteRequest)); - tc_ac.start; - - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2002, v_deleteContentResponse))) { - tc_ac.stop; - setverdict(pass, __SCOPE__ & ": All attributes provided as per the resultContent set in primitive profile"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK(v_deleteContentResponse))) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong content provided when resultContent set to 1 in Primitive Profile"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while deleting resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer while deleting resource"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_018_DEL - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by deleting the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_018_UPD() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_018_UPD()); - v_ae1.done; - } - - function f_CSE_PP_018_UPD() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var RequestPrimitive v_updateContainer; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var integer v_createdContainerResource := -1; - var MsgIn v_response; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile with deletion of attribute "maxByteSize" for content resource. - v_createPrimitiveProfile := m_createPrimitveProfileDeleteFromResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - //Create container resource without Primitive Profile ID - v_createdContainerResource := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - //Update container request to be linked to Primitive Profile ID - v_updateContainer:= f_getUpdateRequestPrimitive(int3, v_aeIndex, m_updateContainerBase); - // Link Primitive Profile created to this Request - v_updateContainer.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - f_send(e_mcaPort, m_request(v_updateContainer)); - tc_ac.start; - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) -> value v_response { - tc_ac.stop; - // Check that IUT applied the Primitive Profile - if(ispresent(v_response.primitive.responsePrimitive.primitiveContent.container.maxByteSize)){ - setverdict(fail, __SCOPE__ & ": Primitive Profile not applied to response primitive!"); - } else { - setverdict(pass, __SCOPE__ & ": Primitive Profile successfully applied to response primitive by deleting maxByteSize!"); - } - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Mismatch in response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while creating resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer from IUT for the last Request!"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_018_UPD - - } // TC_CSE_PP_018 - - group TC_CSE_PP_019 { - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by replacing the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_019_CRE() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_019_CRE()); - v_ae1.done; - } - - function f_CSE_PP_019_CRE() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var RequestPrimitive v_requestContainerCreate; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var MsgIn v_response; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - f_checkAeSimuStatus(); - - // Primitive Profile with adition atribute maxByteSize for content resource. - v_createPrimitiveProfile := m_createPrimitveProfileAddMaxByte100ToResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - //Create container resource without "maxByte" primitive - v_requestContainerCreate := f_getCreateRequestPrimitive(int3, m_createContainerBase, v_aeIndex); - // Link Primitive Profile created to this Request. _to and _from handled in v_requestContainerCreate - v_requestContainerCreate.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - // Test Body - f_send(e_mcaPort, m_request(v_requestContainerCreate)); - tc_ac.start; - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) -> value v_response { - tc_ac.stop; - if(v_response.primitive.responsePrimitive.primitiveContent.container.maxByteSize == 100){ - setverdict(pass, __SCOPE__ & ": maxByteSize primitive value in Create Container Request modified to the value in Primitive Profile!"); - } else { - setverdict(fail, __SCOPE__ & ": maxByteSize primitive value in Create Container Request not modified to the value in Primitive Profile!"); - } - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while deleting resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer from IUT for the last Request!"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_019_CRE - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by replacing the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_019_RET() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_019_RET()); - v_ae1.done; - } - - function f_CSE_PP_019_RET() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var RequestPrimitive v_requestContainerCreate; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var integer v_containerParentIndex := -1; - var MsgIn v_response; - //var RequestPrimitive v_retrieveRequest; - var template PrimitiveContent v_retrieveContentResponse; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile with Add atribute resultContent for container resource. - v_createPrimitiveProfile := m_createPrimitiveProfileAddResultContentTo4ToResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - // Set expected container of retrieve request as per Result Content=4, the default value when RC is not present - v_retrieveContentResponse.container := mw_contentContainer_rc4; - - //Create Container resource - v_containerParentIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - //Create child Container resource - f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - //Retrieve container with link to Primitive Profile - v_requestContainerCreate := valueof(m_retrieve(f_getResourceAddress(v_containerParentIndex), f_getOriginator(v_containerParentIndex))); - v_requestContainerCreate.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - v_requestContainerCreate.resultContent := int1; // only attributes - - f_send(e_mcaPort, m_request(v_requestContainerCreate)); - tc_ac.start; - alt { - // Expect response as per resultContent=4, specified in Primitive Profile - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2000, v_retrieveContentResponse))) -> value v_response { - tc_ac.stop; - setverdict(pass, __SCOPE__ & ": ResultContent(4) from Primtive Profile added to Retrieve Request"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK(v_retrieveContentResponse))) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": ResultContent from Primtive Profile not added to Retrieve Request"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while retrieving resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer while retrieving resource"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_019_RET - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by replacing the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_019_DEL() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_019_DEL()); - v_ae1.done; - } - - function f_CSE_PP_019_DEL() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var integer v_containerIndex := -1; - var RequestPrimitive v_deleteRequest; - var template PrimitiveContent v_deleteContentResponse; - var integer v_containerParentIndex := -1; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile with Add atribute resultContent=1 for container resource. - v_createPrimitiveProfile := m_createPrimitveProfileAddResultContentTo1ToResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - // Set expected container as per Result Content=1 - v_deleteContentResponse.container := mw_contentContainer_rc1; - - //Create Container resource - v_containerParentIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - //Create child Container resource - f_cse_createResource(int3, m_createContainerBase, v_aeIndex); - - //Delete container resource with resultContent (4-attributes and child resource) - v_deleteRequest := valueof(m_delete(f_getResourceAddress(v_containerParentIndex), f_getOriginator(v_containerParentIndex))); - v_deleteRequest.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - v_deleteRequest.resultContent := int4; - - f_send(e_mcaPort, m_request(v_deleteRequest)); - tc_ac.start; - - alt { - // If primitive profile applied, value of resultContent(1=attribute) will be applied - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2002, v_deleteContentResponse))) { - tc_ac.stop; - setverdict(pass, __SCOPE__ & ": Only attributes of parent provided as per the resultContent in primitive profile"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK(v_deleteContentResponse))) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong response status code"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong content provided when resultContent set to 1 in Primtive Profile"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while deleting resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer while deleting resource"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - - //Tear down - f_cf01Down(); - } // f_CSE_PP_019_DEL - - /** - * @desc Check that IUT applies the referenced <primitiveProfile> over the response messages by replacing the applicable parameters/attributes when the originating AE specified a valid PrimitiveProfileIdentifier parameter in the corresponding request - * - */ - testcase TC_CSE_PP_019_UPD() runs on Tester system CseSystem { - var AeSimu v_ae1 := AeSimu.create("AE1") alive; - - v_ae1.start(f_CSE_PP_019_UPD()); - v_ae1.done; - } - - function f_CSE_PP_019_UPD() runs on AeSimu system CseSystem { - // Local variables - var template RequestPrimitive v_createPrimitiveProfile; - var RequestPrimitive v_updateContainer; - var integer v_aeIndex := -1; - var integer v_primitiveProfileIndex := -1; - var integer v_createdContainerResource := -1; - var MsgIn v_response; - - // Test component configuration - f_cf01Up(); - - // Preamble - f_cse_createAccessControlPolicyAux(-, -, int63); - v_aeIndex := f_cse_preamble_registerAe({f_getResourceId(vc_resourcesList[vc_acpIndex].resource)}, -); - - // Primitive Profile with deletion of attribute "maxByteSize" for content resource. - v_createPrimitiveProfile := m_createPrimitveProfileAddContainerMaxByte100ToResponse({f_getOriginator(v_aeIndex)}); - v_primitiveProfileIndex := f_cse_createResource(int62, v_createPrimitiveProfile, v_aeIndex); // TS-004 Table 6.3.4.2.1-1 -> primitiveProfile = 62 - - //Create container resource with maxByte=1000 attribte - v_createdContainerResource := f_cse_createResource(int3, m_createContainerMaxByte(1000), v_aeIndex); - - //Update container request with maxByte=2000 and link to Primitive Profile - v_updateContainer:= f_getUpdateRequestPrimitive(int3, v_aeIndex, m_updateContainerMaxByte(2000)); - // Link Primitive Profile created to this Request - v_updateContainer.primitiveProfileIdentifier := f_getResourceId(vc_resourcesList[v_primitiveProfileIndex].resource); - - f_send(e_mcaPort, m_request(v_updateContainer)); - tc_ac.start; - alt { - [] mcaPort.receive(mw_response(mw_responsePrimitive(int2004))) -> value v_response { - tc_ac.stop; - // Check that IUT applied the Primitive Profile - if(v_response.primitive.responsePrimitive.primitiveContent.container.maxByteSize == 100){ - setverdict(pass, __SCOPE__ & ": maxByteSize primitive value in PrimitiveProfile is updated correctly to Update Container Request!"); - } else { - setverdict(fail, __SCOPE__ & ": maxByteSize primitive value in PrimitveProfile is not updated to Update Container Request!"); - } - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Wrong status response code from IUT!"); - } - [] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) { - tc_ac.stop; - setverdict(fail, __SCOPE__ & ": Error while updating resource"); - } - [] tc_ac.timeout { - setverdict(fail, __SCOPE__ & ": No answer from IUT for the last Request!"); - } - } - - //Postamble - f_cse_postamble_deleteResources(); - //Tear down f_cf01Down(); } // f_CSE_PP_019_UPD - - } // TC_CSE_PP_019 + } // TC_CSE_PP_019 + group TC_CSE_PP_020 { /** * @desc Check that IUT successfully applies the <primitiveProfile> to the representation of the requested resource returned in the Content parameter of the response and If the Content parameter of the response includes nested representations of child resource(s) and their descendant(s), the Hosting CSE shall not apply the profile to these child resource(s) or descendant(s)