Commit b638d5b1 authored by garciay's avatar garciay
Browse files

STF507: Week #6

.  Reviewed of existing Send TPs for Certificate profiles
.  Reviewed of existing  RECV CAM TCs
.  Review of new RECV DENM TCs
.  Implementation of RECV DENM TCs
.  Development of TCs for RECV GENMSG done
·  TTCN-3 Source codes are committed
parent bdee475b
......@@ -112,6 +112,8 @@ module AtsSecurity_Functions {
* @param p_headerFields HeaderFields to be inserted in the message
* @param p_signerInfoType Add digest or AT certificate or certificate chain
* @param p_addMissingHeaders Whether to add mandatory headers not present in p_headerFields
* @param p_alterATCertificateSignature Set to true to alter the AT certificate signature
* @param p_alterAACertificateSignature Set to true to alter the AA certificate signature
* @return Secured GeoNetworking packet containing a CAM
*/
function f_prepareSecuredCam_Bo(
......@@ -120,7 +122,9 @@ module AtsSecurity_Functions {
in integer p_trailerStatus := 0,
in template (omit) HeaderFields p_headerFields := omit,
in SignerInfoType p_signerInfoType := e_certificate_digest_with_sha256,
in boolean p_addMissingHeaders := true
in boolean p_addMissingHeaders := true,
in boolean p_alterATCertificateSignature := false,
in boolean p_alterAACertificateSignature := false
) runs on ItsGeoNetworking return GeoNetworkingPdu {
// Local variables
var GnNonSecuredPacket v_gnNonSecuredPacket;
......@@ -158,7 +162,9 @@ module AtsSecurity_Functions {
p_signerInfoType,
p_headerFields,
p_configId,
p_addMissingHeaders
p_addMissingHeaders,
p_alterATCertificateSignature,
p_alterAACertificateSignature
);
// Return secured Gn packet
......
......@@ -178,11 +178,21 @@ module ItsSecurity_TestControl {
execute(TC_SEC_ITSS_RCV_CAM_04_08_BO());
execute(TC_SEC_ITSS_RCV_CAM_04_09_BO());
execute(TC_SEC_ITSS_RCV_CAM_04_10_BO());
execute(TC_SEC_ITSS_RCV_CAM_04_11_BO());
execute(TC_SEC_ITSS_RCV_CAM_04_12_BV());
execute(TC_SEC_ITSS_RCV_CAM_04_13_BO());
execute(TC_SEC_ITSS_RCV_CAM_05_01_BO());
execute(TC_SEC_ITSS_RCV_CAM_05_02_BO());
execute(TC_SEC_ITSS_RCV_CAM_05_03_BO());
execute(TC_SEC_ITSS_RCV_CAM_05_04_BO());
execute(TC_SEC_ITSS_RCV_CAM_06_01_BO());
execute(TC_SEC_ITSS_RCV_CAM_06_02_BO());
if (PICS_ITS_C2C_MODE) {
execute(TC_SEC_ITSS_RCV_CAM_06_03_BO());
execute(TC_SEC_ITSS_RCV_CAM_06_04_BO());
}
execute(TC_SEC_ITSS_RCV_CAM_07_01_BO());
execute(TC_SEC_ITSS_RCV_CAM_07_02_BO());
execute(TC_SEC_ITSS_RCV_CAM_09_02_BO());
execute(TC_SEC_ITSS_RCV_CAM_09_03_BO());
execute(TC_SEC_ITSS_RCV_CAM_09_04_BO());
......@@ -196,6 +206,12 @@ module ItsSecurity_TestControl {
execute(TC_SEC_ITSS_RCV_CAM_12_02_BO());
execute(TC_SEC_ITSS_RCV_CAM_12_03_BO());
execute(TC_SEC_ITSS_RCV_CAM_12_04_BO());
execute(TC_SEC_ITSS_RCV_CAM_13_01_BO());
execute(TC_SEC_ITSS_RCV_CAM_13_02_BO());
execute(TC_SEC_ITSS_RCV_CAM_13_03_BO());
execute(TC_SEC_ITSS_RCV_CAM_13_04_BO());
execute(TC_SEC_ITSS_RCV_CAM_13_05_BO());
execute(TC_SEC_ITSS_RCV_CAM_13_06_BO());
/**
* @desc Sending behaviour test cases for DENM profile
......@@ -216,7 +232,31 @@ module ItsSecurity_TestControl {
}
execute(TC_SEC_ITSS_RCV_DENM_02_01_BO());
execute(TC_SEC_ITSS_RCV_DENM_02_02_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_01_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_02_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_03_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_04_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_05_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_06_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_06a_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_07_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_08_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_09_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_10_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_11_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_12_BO());
execute(TC_SEC_ITSS_RCV_DENM_04_13_BO());
execute(TC_SEC_ITSS_RCV_DENM_05_01_BO());
execute(TC_SEC_ITSS_RCV_DENM_05_02_BO());
execute(TC_SEC_ITSS_RCV_DENM_05_03_BO());
execute(TC_SEC_ITSS_RCV_DENM_06_01_BO());
execute(TC_SEC_ITSS_RCV_DENM_06_02_BO());
if (PICS_ITS_C2C_MODE) {
execute(TC_SEC_ITSS_RCV_DENM_06_03_BO());
execute(TC_SEC_ITSS_RCV_DENM_06_04_BO());
}
execute(TC_SEC_ITSS_RCV_DENM_07_01_BO());
execute(TC_SEC_ITSS_RCV_DENM_07_02_BO());
execute(TC_SEC_ITSS_RCV_DENM_08_01_BO());
execute(TC_SEC_ITSS_RCV_DENM_08_02_BO());
execute(TC_SEC_ITSS_RCV_DENM_08_03_BO());
......@@ -245,6 +285,11 @@ module ItsSecurity_TestControl {
execute(TC_SEC_ITSS_RCV_GENMSG_05_03_BO());
execute(TC_SEC_ITSS_RCV_GENMSG_06_01_BO());
execute(TC_SEC_ITSS_RCV_GENMSG_06_02_BO());
if (PICS_ITS_C2C_MODE) {
execute(TC_SEC_ITSS_RCV_GENMSG_06_03_BO());
execute(TC_SEC_ITSS_RCV_GENMSG_06_04_BO());
}
execute(TC_SEC_ITSS_RCV_GENMSG_07_01_BO());
execute(TC_SEC_ITSS_RCV_GENMSG_08_01_BO());
execute(TC_SEC_ITSS_RCV_GENMSG_08_02_BO());
execute(TC_SEC_ITSS_RCV_GENMSG_08_03_BO());
......@@ -276,6 +321,8 @@ module ItsSecurity_TestControl {
execute(TC_SEC_ITSS_RCV_CERT_03_01_BO());
execute(TC_SEC_ITSS_RCV_CERT_03_02_BO());
execute(TC_SEC_ITSS_RCV_CERT_04_01_BO());
execute(TC_SEC_ITSS_RCV_CERT_05_01_BO());
execute(TC_SEC_ITSS_RCV_CERT_05_02_BO());
}
} // End of 'control' statement
......
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