Commit c91f8b7d authored by garciay's avatar garciay
Browse files

STF507 week#11: Add testing functions to validate ITS Security ATS against itself

                Bug fixed in TC_SEC_ITSS_SND_CAM_10_01_BV
                Add missing PICS_CERTIFICATE_SELECTION
parent 6f24a048
/**
* @author ETSI / STF507
* @version $UR$
* $Id$
* @desc Module containing Pics for Security ATS
*
*/
module ItsSecurity_Pics {
/**
* @desc Set to true to enable specific behavior to validate ITS Security ATS against itself
*/
modulepar boolean PICS_DEBUG_ADDON := false;
} // End of module ItsSecurity_Pics
......@@ -55,6 +55,7 @@ module ItsSecurity_TestCases {
import from AtsSecurity_TestSystem all;
import from AtsSecurity_Functions all;
import from AtsSecurity_Templates all;
import from ItsSecurity_Pics all;
/**
* @desc Sending behaviour test cases
......@@ -1537,13 +1538,20 @@ module ItsSecurity_TestCases {
* containing signer
* containing type
* indicating 'certificate'
* containing certificate
* not containing validity_restrictions['time_start_and_end']
* or containing validity_restrictions['time_start_and_end']
* containing start_validity
* indicating value <= TIME_1
* and containing certificate
* containing validity_restrictions['time_end']
* containing end_validity
* indicating value > TIME_1
* indicating value > GEN_TIME
* or containing validity_restrictions['time_start_and_end']
* containing start_validity
* indicating value <= GEN_TIME
* and containing end_validity
* indicating value > GEN_TIME
* or containing validity_restrictions['time_start_and_duration']
* containing start_validity (X_START_VALIDITY)
* indicating value <= GEN_TIME
* and containing duration
* indicating value > GEN_TIME - X_START_VALIDITY
* }
* }
* </pre>
......@@ -1617,15 +1625,26 @@ module ItsSecurity_TestCases {
// Check generation_time validity
if (
not(f_getCertificateValidityRestriction(v_certificate, e_time_start_and_end, v_validity)) or
(f_getCertificateValidityRestriction(v_certificate, e_time_start_and_end, v_validity) == true) and
(v_generationTime >= (v_validity.validity.time_start_and_end.start_validity * 1000000) and
(v_generationTime < (v_validity.validity.time_start_and_end.end_validity * 1000000)))
) {
log("*** " & testcasename() & ": PASS: Generation time within certificate validity/time_start_and_end ***");
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
} else if (
(f_getCertificateValidityRestriction(v_certificate, e_time_end, v_validity) == true) and
(v_generationTime < (v_validity.validity.end_validity * 1000000))
) {
log("*** " & testcasename() & ": PASS: Generation time within certificate validity ***");
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
} else if (
(f_getCertificateValidityRestriction(v_certificate, e_time_start_and_duration, v_validity) == true) and
(v_generationTime >= (v_validity.validity.time_start_and_duration.start_validity * 1000000)) and
(v_generationTime < (v_validity.validity.e_time_start_and_duration.duration_ * 1000000))
) {
log("*** " & testcasename() & ": PASS: Generation time within certificate validity ***");
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
} else {
log ("start_validity (in us)=", v_validity.validity.time_start_and_end.start_validity * 1000000);
log ("end_validity (in us) =", v_validity.validity.time_start_and_end.end_validity * 1000000);
log("*** " & testcasename() & ": FAIL: Generation time not within certificate validity ***");
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_error);
}
......@@ -8443,7 +8462,7 @@ module ItsSecurity_TestCases {
)),
m_header_field_signer_info(
m_signerInfo_certificate(
vc_aaCertificate
vc_atCertificate
)),
m_header_field_generation_time(1000 * f_getCurrentTime()), // In us
m_header_field_its_aid_CAM
......@@ -8522,6 +8541,9 @@ module ItsSecurity_TestCases {
// Preamble
f_prNeighbour();
if (PICS_DEBUG_ADDON) {
f_sendCertificateAndWaitForCertificateChainRequest(cc_taCert_F, f_generateDefaultCam());
}
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
......@@ -9764,6 +9786,9 @@ module ItsSecurity_TestCases {
// Preamble
f_prNeighbour();
if (PICS_DEBUG_ADDON) {
f_sendCertificate(cc_taCert_F, f_generateDefaultCam());
}
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
......@@ -9846,6 +9871,9 @@ module ItsSecurity_TestCases {
// Preamble
f_prNeighbour();
if (PICS_DEBUG_ADDON) {
f_sendCertificate(cc_taCert_F, f_generateDefaultCam());
}
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
......@@ -9932,6 +9960,9 @@ module ItsSecurity_TestCases {
// Preamble
f_prNeighbour();
if (PICS_DEBUG_ADDON) {
f_sendCertificate(cc_taCert_F, f_generateDefaultCam());
}
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
......@@ -15440,7 +15471,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that IUT discards Secured DENM if the HeaderField generation_location is outside of the circular validity region of the signing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_CIRCULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_CIRCULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -15481,8 +15512,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test control
if (not(PICS_GN_SECURITY) or not(PICS_USE_CIRCULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_CIRCULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_CIRCULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_CIRCULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -15520,7 +15551,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that IUT discards Secured DENM if the HeaderField generation_location is outside of the rectangilar validity region of the signing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -15561,8 +15592,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test control
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -15600,7 +15631,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that IUT discards Secured DENM if the HeaderField generation_location is outside of the polygonal validity region of the signing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_POLYGONAL_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_POLYGONAL_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -15641,8 +15672,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test control
if (not(PICS_GN_SECURITY) or not(PICS_USE_POLYGONAL_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_POLYGONAL_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_POLYGONAL_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_POLYGONAL_REGION' required for executing the TC ***");
stop;
}
......@@ -15680,7 +15711,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that IUT discards Secured DENM if the HeaderField generation_location is outside of the identified validity region of the signing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_IDENTIFIED_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_IDENTIFIED_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -15721,8 +15752,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test control
if (not(PICS_GN_SECURITY) or not(PICS_USE_IDENTIFIED_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_IDENTIFIED_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_IDENTIFIED_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_IDENTIFIED_REGION' required for executing the TC ***");
stop;
}
......@@ -20884,7 +20915,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that IUT discards Secured GN Message if the HeaderField generation_location is outside of the circular validity region of the signing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_USE_CIRCULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_CERTIFICATE_SELECTION and PICS_USE_CIRCULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -20922,8 +20953,8 @@ module ItsSecurity_TestCases {
var ItsGeoNetworking v_nodeD;
// Test control
if (not(PICS_GN_SECURITY) or not(PICS_GN_GBC_SRC) or not(PICS_USE_CIRCULAR_REGION)) {
log("*** " & testcasename() & ": 'PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_USE_CIRCULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_GN_GBC_SRC) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_CIRCULAR_REGION)) {
log("*** " & testcasename() & ": 'PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_CERTIFICATE_SELECTION and PICS_USE_CIRCULAR_REGION' required for executing the TC ***");
setverdict(inconc);
stop;
}
......@@ -20950,7 +20981,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that IUT discards Secured GN Message if the HeaderField generation_location is outside of the rectangular validity region of the signing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -20988,8 +21019,8 @@ module ItsSecurity_TestCases {
var ItsGeoNetworking v_nodeD;
// Test control
if (not(PICS_GN_SECURITY) or not(PICS_GN_GBC_SRC) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ": 'PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_GN_GBC_SRC) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ": 'PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
setverdict(inconc);
stop;
}
......@@ -21016,7 +21047,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that IUT discards Secured GN Message if the HeaderField generation_location is outside of the rectangular validity region of the signing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_USE_POLYGONAL_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_CERTIFICATE_SELECTION and PICS_USE_POLYGONAL_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -21054,8 +21085,8 @@ module ItsSecurity_TestCases {
var ItsGeoNetworking v_nodeD;
// Test control
if (not(PICS_GN_SECURITY) or not(PICS_GN_GBC_SRC) or not(PICS_USE_POLYGONAL_REGION)) {
log("*** " & testcasename() & ": 'PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_USE_POLYGONAL_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_GN_GBC_SRC) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_POLYGONAL_REGION)) {
log("*** " & testcasename() & ": 'PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_CERTIFICATE_SELECTION and PICS_USE_POLYGONAL_REGION' required for executing the TC ***");
setverdict(inconc);
stop;
}
......@@ -21082,7 +21113,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that IUT discards Secured GN Message if the optional HeaderField generation_location is outside of the identified validity region of the signing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_USE_IDENTIFIED_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_CERTIFICATE_SELECTION and PICS_USE_IDENTIFIED_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -21120,8 +21151,8 @@ module ItsSecurity_TestCases {
var ItsGeoNetworking v_nodeD;
// Test control
if (not(PICS_GN_SECURITY) or not(PICS_GN_GBC_SRC) or not(PICS_ITS_C2C_MODE)) {
log("*** " & testcasename() & ": 'PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_ITS_C2C_MODE' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_GN_GBC_SRC) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_ITS_C2C_MODE)) {
log("*** " & testcasename() & ": 'PICS_GN_SECURITY and PICS_GN_GBC_SRC and PICS_CERTIFICATE_SELECTION and PICS_ITS_C2C_MODE' required for executing the TC ***");
setverdict(inconc);
stop;
}
......@@ -23273,6 +23304,9 @@ module ItsSecurity_TestCases {
// Preamble
f_prNeighbour();
if (PICS_DEBUG_ADDON) {
f_sendCertificateAndWaitForCertificateChainRequest(cc_taCert_F, f_generateDefaultCam());
}
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
......@@ -24000,7 +24034,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that the IUT accepts a message when the signing certificate of this message contains the same circular region validity restriction as its issuing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -24045,8 +24079,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test adapter configuration
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -24084,7 +24118,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that the IUT accepts a message when the signing certificate of this message contains the circular region validity restriction which is fully inside in the circular region validity restriction of its issuing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -24130,8 +24164,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test adapter configuration
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -24169,7 +24203,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that the IUT accepts a message when the signing certificate of this message contains the circular region validity restriction which is fully inside in the rectangular region validity restriction of its issuing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -24215,8 +24249,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test adapter configuration
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -24254,7 +24288,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that the IUT accepts a message when the signing certificate of this message contains the circular region validity restriction which is fully inside in the polygonal region validity restriction of its issuing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -24300,8 +24334,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test adapter configuration
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -24339,7 +24373,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that the IUT accepts a message when the signing certificate of this message contains the circular region validity restriction which is fully inside in the identified region validity restriction of its issuing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -24390,8 +24424,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test adapter configuration
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -24429,7 +24463,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that the IUT discards a message when the signing certificate of this message does not contain the region validity restriction but its issuing certificate contains the circular region validity restriction
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -24474,8 +24508,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test adapter configuration
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -24513,7 +24547,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that the IUT discards a message when the signing certificate of this message contains circular region validity restriction which is outside of the circular region validity restriction of its issuing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -24559,8 +24593,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test adapter configuration
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -24598,7 +24632,7 @@ module ItsSecurity_TestCases {
/**
* @desc Check that the IUT discards a message when the signing certificate of this message contains circular region validity restriction which is not fully covered by the the circular region validity restriction of its issuing certificate
* <pre>
* Pics Selection: PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION
* Pics Selection: PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION
* Config Id: CF01
* Initial conditions:
* with {
......@@ -24644,8 +24678,8 @@ module ItsSecurity_TestCases {
var GnRawPayload v_sentRawPayload;
// Test adapter configuration
if (not(PICS_GN_SECURITY) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
if (not(PICS_GN_SECURITY) or not(PICS_CERTIFICATE_SELECTION) or not(PICS_USE_RECTANGULAR_REGION)) {
log("*** " & testcasename() & ":ERROR: 'PICS_GN_SECURITY and PICS_CERTIFICATE_SELECTION and PICS_USE_RECTANGULAR_REGION' required for executing the TC ***");
stop;
}
......@@ -256,22 +256,24 @@ module ItsSecurity_TestControl {
}
execute(TC_SEC_ITSS_RCV_DENM_07_01_BO());
execute(TC_SEC_ITSS_RCV_DENM_07_02_BO());
if (PICS_USE_CIRCULAR_REGION) {
execute(TC_SEC_ITSS_RCV_DENM_08_01_BO());
}
if (PICS_USE_RECTANGULAR_REGION) {
execute(TC_SEC_ITSS_RCV_DENM_08_02_BO());
}
if (PICS_USE_POLYGONAL_REGION) {
execute(TC_SEC_ITSS_RCV_DENM_08_03_BO());
}
if (PICS_USE_IDENTIFIED_REGION) {
execute(TC_SEC_ITSS_RCV_DENM_08_04_BO());
}
if (PICS_ITS_C2C_MODE) {
execute(TC_SEC_ITSS_RCV_DENM_08_05_BV());
execute(TC_SEC_ITSS_RCV_DENM_08_06_BO());
}
if (PICS_CERTIFICATE_SELECTION) {
if (PICS_USE_CIRCULAR_REGION) {
execute(TC_SEC_ITSS_RCV_DENM_08_01_BO());
}
if (PICS_USE_RECTANGULAR_REGION) {
execute(TC_SEC_ITSS_RCV_DENM_08_02_BO());
}
if (PICS_USE_POLYGONAL_REGION) {
execute(TC_SEC_ITSS_RCV_DENM_08_03_BO());
}
if (PICS_USE_IDENTIFIED_REGION) {
execute(TC_SEC_ITSS_RCV_DENM_08_04_BO());
}
if (PICS_ITS_C2C_MODE) {
execute(TC_SEC_ITSS_RCV_DENM_08_05_BV());
execute(TC_SEC_ITSS_RCV_DENM_08_06_BO());
}
}
execute(TC_SEC_ITSS_RCV_DENM_09_02_BO());
execute(TC_SEC_ITSS_RCV_DENM_09_03_BO());
execute(TC_SEC_ITSS_RCV_DENM_09_04_BO());
......@@ -327,22 +329,24 @@ module ItsSecurity_TestControl {
execute(TC_SEC_ITSS_RCV_GENMSG_06_04_BO());
}
execute(TC_SEC_ITSS_RCV_GENMSG_07_01_BO());
if (PICS_USE_CIRCULAR_REGION) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_01_BO());
}
if (PICS_USE_RECTANGULAR_REGION) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_02_BO());
}
if (PICS_USE_POLYGONAL_REGION) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_03_BO());
}
if (PICS_USE_IDENTIFIED_REGION) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_04_BO());
}
if (PICS_ITS_C2C_MODE) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_05_BV());
execute(TC_SEC_ITSS_RCV_GENMSG_08_06_BO());
}
if (PICS_CERTIFICATE_SELECTION) {
if (PICS_USE_CIRCULAR_REGION) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_01_BO());
}
if (PICS_USE_RECTANGULAR_REGION) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_02_BO());
}
if (PICS_USE_POLYGONAL_REGION) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_03_BO());
}
if (PICS_USE_IDENTIFIED_REGION) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_04_BO());
}
if (PICS_ITS_C2C_MODE) {
execute(TC_SEC_ITSS_RCV_GENMSG_08_05_BV());
execute(TC_SEC_ITSS_RCV_GENMSG_08_06_BO());
}
}
execute(TC_SEC_ITSS_RCV_GENMSG_09_02_BO());
execute(TC_SEC_ITSS_RCV_GENMSG_09_03_BO());
execute(TC_SEC_ITSS_RCV_GENMSG_09_04_BO());
......@@ -381,49 +385,51 @@ module ItsSecurity_TestControl {
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());
if (PICS_USE_RECTANGULAR_REGION) {
execute(TC_SEC_ITSS_RCV_CERT_06_01_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_02_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_03_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_04_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_05_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_06_BO());
execute(TC_SEC_ITSS_RCV_CERT_06_07_BO());
execute(TC_SEC_ITSS_RCV_CERT_06_08_BO());
}
if (PICS_USE_CIRCULAR_REGION) {
execute(TC_SEC_ITSS_RCV_CERT_07_01_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_02_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_03_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_04_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_05_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_06_BO());
execute(TC_SEC_ITSS_RCV_CERT_07_07_BO());
execute(TC_SEC_ITSS_RCV_CERT_07_08_BO());
}
if (PICS_USE_POLYGONAL_REGION) {
execute(TC_SEC_ITSS_RCV_CERT_08_01_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_02_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_03_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_04_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_05_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_06_BO());
execute(TC_SEC_ITSS_RCV_CERT_08_07_BO());
execute(TC_SEC_ITSS_RCV_CERT_08_08_BO());
execute(TC_SEC_ITSS_RCV_CERT_08_09_BO());
}
if (PICS_USE_IDENTIFIED_REGION) {
execute(TC_SEC_ITSS_RCV_CERT_09_01_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_02_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_03_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_04_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_05_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_06_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_07_BO());
execute(TC_SEC_ITSS_RCV_CERT_09_08_BO());
execute(TC_SEC_ITSS_RCV_CERT_09_09_BO());
execute(TC_SEC_ITSS_RCV_CERT_09_10_BO());
execute(TC_SEC_ITSS_RCV_CERT_09_11_BO());
if (PICS_CERTIFICATE_SELECTION) {
if (PICS_USE_RECTANGULAR_REGION) {
execute(TC_SEC_ITSS_RCV_CERT_06_01_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_02_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_03_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_04_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_05_BV());
execute(TC_SEC_ITSS_RCV_CERT_06_06_BO());
execute(TC_SEC_ITSS_RCV_CERT_06_07_BO());
execute(TC_SEC_ITSS_RCV_CERT_06_08_BO());
}
if (PICS_USE_CIRCULAR_REGION) {
execute(TC_SEC_ITSS_RCV_CERT_07_01_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_02_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_03_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_04_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_05_BV());
execute(TC_SEC_ITSS_RCV_CERT_07_06_BO());
execute(TC_SEC_ITSS_RCV_CERT_07_07_BO());
execute(TC_SEC_ITSS_RCV_CERT_07_08_BO());
}
if (PICS_USE_POLYGONAL_REGION) {
execute(TC_SEC_ITSS_RCV_CERT_08_01_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_02_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_03_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_04_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_05_BV());
execute(TC_SEC_ITSS_RCV_CERT_08_06_BO());
execute(TC_SEC_ITSS_RCV_CERT_08_07_BO());
execute(TC_SEC_ITSS_RCV_CERT_08_08_BO());
execute(TC_SEC_ITSS_RCV_CERT_08_09_BO());
}
if (PICS_USE_IDENTIFIED_REGION) {
execute(TC_SEC_ITSS_RCV_CERT_09_01_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_02_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_03_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_04_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_05_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_06_BV());
execute(TC_SEC_ITSS_RCV_CERT_09_07_BO());
execute(TC_SEC_ITSS_RCV_CERT_09_08_BO());
execute(TC_SEC_ITSS_RCV_CERT_09_09_BO());
execute(TC_SEC_ITSS_RCV_CERT_09_10_BO());
execute(TC_SEC_ITSS_RCV_CERT_09_11_BO());
}
}
execute(TC_SEC_ITSS_RCV_CERT_10_01_BO());
execute(TC_SEC_ITSS_RCV_CERT_10_02_BO());
......
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