From 0a0a0774bcb1247faba390b38ab0dc719bcacc5e Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Fri, 7 Oct 2022 09:59:54 +0200 Subject: [PATCH 01/21] Create template for AtsMBR (TTF T024) --- .gitmodules | 3 +++ ItsMbr_TestCases.ttcn | 0 ItsMbr_TestControl.ttcn | 0 ItsMbr_TpFunctions.ttcn | 0 LICENSE | 23 +++++++++++++++++++++++ lib/asn1 | 1 + module.mk | 13 +++++++++++++ 7 files changed, 40 insertions(+) create mode 100644 .gitmodules create mode 100644 ItsMbr_TestCases.ttcn create mode 100644 ItsMbr_TestControl.ttcn create mode 100644 ItsMbr_TpFunctions.ttcn create mode 100755 LICENSE create mode 160000 lib/asn1 create mode 100644 module.mk diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6c83aa1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/asn1"] + path = lib/asn1 + url = https://forge.etsi.org/rep/ITS/asn1/mbmr_ts103759.git diff --git a/ItsMbr_TestCases.ttcn b/ItsMbr_TestCases.ttcn new file mode 100644 index 0000000..e69de29 diff --git a/ItsMbr_TestControl.ttcn b/ItsMbr_TestControl.ttcn new file mode 100644 index 0000000..e69de29 diff --git a/ItsMbr_TpFunctions.ttcn b/ItsMbr_TpFunctions.ttcn new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..87e45c5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,23 @@ +Copyright 2022 ETSI + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +3. Neither the name of the copyright holder nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/lib/asn1 b/lib/asn1 new file mode 160000 index 0000000..dda9270 --- /dev/null +++ b/lib/asn1 @@ -0,0 +1 @@ +Subproject commit dda9270845ea9980cfaf4de15d59bb393ec0527e diff --git a/module.mk b/module.mk new file mode 100644 index 0000000..e60f2dc --- /dev/null +++ b/module.mk @@ -0,0 +1,13 @@ +suite := AtsMBR + +sources := ItsMbrTestCases.ttcn \ + ItsMbrTestControl.ttcn \ + ItsMbrTpFunctions.ttcn \ + +modules := \ + lib \ + lib_system \ + /titan-test-system-framework/ttcn/LibHelpers \ + ../LibCommon \ + ../LibIts \ + -- GitLab From 1d67999c07b7c3fc2182c51e7a19586bf2fb139b Mon Sep 17 00:00:00 2001 From: Denis Filatov Date: Thu, 13 Oct 2022 13:46:05 +0200 Subject: [PATCH 02/21] use devel version of MBMR --- .gitmodules | 3 ++- lib/asn1 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 6c83aa1..fc66378 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ [submodule "lib/asn1"] path = lib/asn1 - url = https://forge.etsi.org/rep/ITS/asn1/mbmr_ts103759.git + url = https://forge.etsi.org/rep/ITS/devel/mbmr_ts103759.git + branch = testing diff --git a/lib/asn1 b/lib/asn1 index dda9270..6a52d46 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit dda9270845ea9980cfaf4de15d59bb393ec0527e +Subproject commit 6a52d46dede51cd2084c80a0d550be49bd27b185 -- GitLab From ce741b5001d5f45101a7ec6c94baaf9e3ee9585e Mon Sep 17 00:00:00 2001 From: Denis Filatov Date: Thu, 13 Oct 2022 14:24:39 +0200 Subject: [PATCH 03/21] use devel version of MBMR --- lib/asn1 | 2 +- lib/module.mk | 11 +++++++++++ module.mk | 7 +++---- 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100755 lib/module.mk diff --git a/lib/asn1 b/lib/asn1 index 6a52d46..d7476ad 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit 6a52d46dede51cd2084c80a0d550be49bd27b185 +Subproject commit d7476ad7285e20063a2c6d9dcced40f4d341a84b diff --git a/lib/module.mk b/lib/module.mk new file mode 100755 index 0000000..8274aa7 --- /dev/null +++ b/lib/module.mk @@ -0,0 +1,11 @@ +sources := \ + asn1/EtsiTs103759.asn \ + asn1/EtsiTs103759AsrAppAgnostic.asn \ + asn1/EtsiTs103759AsrCam.asn \ + asn1/EtsiTs103759AsrDenm.asn \ + asn1/EtsiTs103759CommonObservations.asn \ + asn1/SaeJ3287AsrBsm.asn \ + asn1/sec_ts103097/EtsiTs103097ExtensionModule.asn \ + asn1/sec_ts103097/EtsiTs103097Module.asn \ + asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2.asn \ + asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2BaseTypes.asn diff --git a/module.mk b/module.mk index e60f2dc..ee0c214 100644 --- a/module.mk +++ b/module.mk @@ -1,12 +1,11 @@ suite := AtsMBR -sources := ItsMbrTestCases.ttcn \ - ItsMbrTestControl.ttcn \ - ItsMbrTpFunctions.ttcn \ +sources := ItsMbr_TestCases.ttcn \ + ItsMbr_TestControl.ttcn \ + ItsMbr_TpFunctions.ttcn \ modules := \ lib \ - lib_system \ /titan-test-system-framework/ttcn/LibHelpers \ ../LibCommon \ ../LibIts \ -- GitLab From fedac53e7b4837019cd21b3fc1ac7a932b4014c4 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Thu, 13 Oct 2022 14:37:48 +0200 Subject: [PATCH 04/21] Remove +x right in LICENSE file --- LICENSE | 0 lib/asn1 | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 LICENSE diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/lib/asn1 b/lib/asn1 index d7476ad..dda9270 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit d7476ad7285e20063a2c6d9dcced40f4d341a84b +Subproject commit dda9270845ea9980cfaf4de15d59bb393ec0527e -- GitLab From 9e73271b6f13dcf1a498b35d8335634223f13d48 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Thu, 13 Oct 2022 14:40:10 +0200 Subject: [PATCH 05/21] Remove +x right in module.mk file --- lib/module.mk | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 lib/module.mk diff --git a/lib/module.mk b/lib/module.mk old mode 100755 new mode 100644 -- GitLab From bc29d157d0796573876f306a828ca9d313312bf9 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Thu, 13 Oct 2022 15:21:33 +0200 Subject: [PATCH 06/21] Remove +x right in LICENSE file --- lib/asn1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asn1 b/lib/asn1 index dda9270..66e855f 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit dda9270845ea9980cfaf4de15d59bb393ec0527e +Subproject commit 66e855f0134f80154b4bf4b1a1c692e0557bfc02 -- GitLab From af5df1372a27261985c3ca32aa361e8652cd2593 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Wed, 19 Oct 2022 11:16:51 +0200 Subject: [PATCH 07/21] Remove +x right for ASN files --- ItsMbr_TestCases.ttcn | 9 +++ lib/LibItsMbr_TypesAndValues.ttcn | 3 + lib/module.mk | 6 ++ lib_system/LibItsMbr_TestSystem.ttcn | 106 ++++++++++++++++++++++++++ lib_system/LibItsMbr_TestSystem.ttcn~ | 0 lib_system/module.mk | 1 + module.mk | 1 + 7 files changed, 126 insertions(+) create mode 100644 lib/LibItsMbr_TypesAndValues.ttcn create mode 100644 lib_system/LibItsMbr_TestSystem.ttcn create mode 100644 lib_system/LibItsMbr_TestSystem.ttcn~ create mode 100644 lib_system/module.mk diff --git a/ItsMbr_TestCases.ttcn b/ItsMbr_TestCases.ttcn index e69de29..ca4e636 100644 --- a/ItsMbr_TestCases.ttcn +++ b/ItsMbr_TestCases.ttcn @@ -0,0 +1,9 @@ +module ItsMbr_TestCases { + + // LibItsMbr + import from LibItsMbr_TestSystem all; + + // Ats Its + import from ItsMbr_TpFunctions all; + +} // End of module ItsMbr_TestCases diff --git a/lib/LibItsMbr_TypesAndValues.ttcn b/lib/LibItsMbr_TypesAndValues.ttcn new file mode 100644 index 0000000..577540d --- /dev/null +++ b/lib/LibItsMbr_TypesAndValues.ttcn @@ -0,0 +1,3 @@ +module LibItsMbr_TypesAndValues { + +} // End of module LibItsMbr_TypesAndValues diff --git a/lib/module.mk b/lib/module.mk index 8274aa7..abf5aba 100644 --- a/lib/module.mk +++ b/lib/module.mk @@ -1,4 +1,5 @@ sources := \ + LibItsMbr_TypesAndValues.ttcn \ asn1/EtsiTs103759.asn \ asn1/EtsiTs103759AsrAppAgnostic.asn \ asn1/EtsiTs103759AsrCam.asn \ @@ -9,3 +10,8 @@ asn1/sec_ts103097/EtsiTs103097Module.asn \ asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2.asn \ asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2BaseTypes.asn + +ifeq (,$(ITS_CONTAINER)) + ITS_CONTAINER := defined + sources += asn1/cdd/ITS_Container.asn +endif diff --git a/lib_system/LibItsMbr_TestSystem.ttcn b/lib_system/LibItsMbr_TestSystem.ttcn new file mode 100644 index 0000000..8e68132 --- /dev/null +++ b/lib_system/LibItsMbr_TestSystem.ttcn @@ -0,0 +1,106 @@ +module LibItsMbr_TestSystem language "TTCN-3:2010 Real Time and Performance Testing" { + + // LibCommon + import from LibCommon_BasicTypesAndValues all; + import from LibCommon_DataStrings all; + + // LibIts + import from MBR_PDU_Descriptions language "ASN.1:1997" all; + + // LibItsCommon + import from LibItsCommon_TestSystem all; + import from LibItsCommon_TypesAndValues all; + + // LibItsMbr + import from LibItsMbr_TypesAndValues all; + + group portDefinitions { + + /** + * @desc Adapter control port + */ + type port AdapterControlPort message { + out + AcGnssPrimitive, AcSecPrimitive; + in + AdapterControlResults; + } // end AdapterControlPort + + /** + * @desc Upper Tester port + */ + type port UpperTesterPort message { + out + UtMbrInitialize, UtMbrTrigger; + in + UtMbrResults, UtMbrEventInd; + } // end UpperTesterPort + + } // end portDefinitions + + group interfacePorts { + + group facilityPorts { + + group fa1Ports { + + /** + * @desc FA1 MBR Port (MBR/BTP/GeoNet/RadioNetwork) + */ + type port MbrPort message { + in MbrInd; + out MbrReq; + } // End of port MbrPort + + } // end fa1Ports + + } // End of group facilityPorts + + } // End of group interfacePorts + + group componentDefinitions { + + /** + * @desc ITS System Adapter + */ + type component ItsMbrSystem { + + port UpperTesterPort utPort; + port AdapterControlPort acPort; + + // FA1 ports + port MbrPort mbrPort; + + } // end component ItsAdapter + + } // End of group componentDefinitions + + /** + * @desc Test component for ITS Facility layer + */ + type component ItsMbr extends ItsBaseComponent { + + port UpperTesterPort utPort; + port AdapterControlPort acPort; + + // FA1 ports + port MbrPort mbrPort; + //timers + + //component variables + var MbrInd vc_mbrMsg; + + //default + var default vc_default := null; + + //global variables + var boolean vc_mbrReceived := false; + + var UtMbrEventIndList vc_utEvents := {}; + + var boolean vc_utDefaultActive := true; + var boolean vc_mbrDefaultActive := true; + + } // End of component ItsMbr + +} // End of module LibItsMbr_TestSystem diff --git a/lib_system/LibItsMbr_TestSystem.ttcn~ b/lib_system/LibItsMbr_TestSystem.ttcn~ new file mode 100644 index 0000000..e69de29 diff --git a/lib_system/module.mk b/lib_system/module.mk new file mode 100644 index 0000000..b8f3a5f --- /dev/null +++ b/lib_system/module.mk @@ -0,0 +1 @@ +sources := LibItsMbr_TestSystem.ttcn diff --git a/module.mk b/module.mk index ee0c214..624d5d5 100644 --- a/module.mk +++ b/module.mk @@ -6,6 +6,7 @@ sources := ItsMbr_TestCases.ttcn \ modules := \ lib \ + lib_system \ /titan-test-system-framework/ttcn/LibHelpers \ ../LibCommon \ ../LibIts \ -- GitLab From bd54aa11b85570821fa57ecaee2cb9d7223d21fb Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Wed, 19 Oct 2022 11:17:05 +0200 Subject: [PATCH 08/21] Remove +x right for ASN files --- lib_system/LibItsMbr_TestSystem.ttcn~ | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 lib_system/LibItsMbr_TestSystem.ttcn~ diff --git a/lib_system/LibItsMbr_TestSystem.ttcn~ b/lib_system/LibItsMbr_TestSystem.ttcn~ deleted file mode 100644 index e69de29..0000000 -- GitLab From c269520a579281813175e128d51469a9a3d7b273 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Mon, 24 Oct 2022 12:01:23 +0200 Subject: [PATCH 09/21] Remove +x right for ASN files --- lib/asn1 | 2 +- lib/module.mk | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/asn1 b/lib/asn1 index 66e855f..4d297f9 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit 66e855f0134f80154b4bf4b1a1c692e0557bfc02 +Subproject commit 4d297f92e0d1c6648b5aadcf7215c1fa8d756af7 diff --git a/lib/module.mk b/lib/module.mk index abf5aba..f322bca 100644 --- a/lib/module.mk +++ b/lib/module.mk @@ -11,7 +11,3 @@ asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2.asn \ asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2BaseTypes.asn -ifeq (,$(ITS_CONTAINER)) - ITS_CONTAINER := defined - sources += asn1/cdd/ITS_Container.asn -endif -- GitLab From 2fa2cb3e54c00b68682cf178c44b78abb95ffafa Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Fri, 4 Nov 2022 16:03:56 +0100 Subject: [PATCH 10/21] Add test purposes squeletons --- lib/asn1 | 2 +- lib/module.mk | 2 +- test_purposes/References.txt | 10 + test_purposes/its_mbr_commons.tplan2 | 97 +++++++++ test_purposes/itss.tplan2 | 305 +++++++++++++++++++++++++++ 5 files changed, 414 insertions(+), 2 deletions(-) create mode 100644 test_purposes/References.txt create mode 100644 test_purposes/its_mbr_commons.tplan2 create mode 100644 test_purposes/itss.tplan2 diff --git a/lib/asn1 b/lib/asn1 index 4d297f9..ed58d88 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit 4d297f92e0d1c6648b5aadcf7215c1fa8d756af7 +Subproject commit ed58d88c78c4380c384da10a17bb092d84d16466 diff --git a/lib/module.mk b/lib/module.mk index f322bca..fa8b8d4 100644 --- a/lib/module.mk +++ b/lib/module.mk @@ -5,9 +5,9 @@ asn1/EtsiTs103759AsrCam.asn \ asn1/EtsiTs103759AsrDenm.asn \ asn1/EtsiTs103759CommonObservations.asn \ + asn1/EtsiTs103759BaseTypes.asn \ asn1/SaeJ3287AsrBsm.asn \ asn1/sec_ts103097/EtsiTs103097ExtensionModule.asn \ asn1/sec_ts103097/EtsiTs103097Module.asn \ asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2.asn \ asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2BaseTypes.asn - diff --git a/test_purposes/References.txt b/test_purposes/References.txt new file mode 100644 index 0000000..c6e5883 --- /dev/null +++ b/test_purposes/References.txt @@ -0,0 +1,10 @@ +[1] ETSI TS 102 940: "Intelligent Transport Systems (ITS); Security; ITS communications security architecture and security management; Release 2". +[2] ETSI EN 302 665: "Intelligent Transport Systems (ITS); Communications Architecture". +[3] ETSI TS 102 941: "Intelligent Transport Systems (ITS); Security; Trust and Privacy Management". +[4] ETSI TS 103 759: "Intelligent Transport Systems (ITS); Security; Misbehaviour Reporting service". + + +[4] ISO/IEC 9646-1: "Information technology -- Open Systems Interconnection -- Conformance testing methodology and framework -- Part 1: General concepts". +[5] ISO/IEC 9646-7: "Information technology -- Open Systems Interconnection -- Conformance testing methodology and framework -- Part 7: Implementation Conformance Statements". +[6] ETSI ETS 300 406: "Methods for testing and Specification (MTS); Protocol and profile conformance testing specifications; Standardization methodology". +[7] ETSI ES 203 119-4: "Methods for Testing and Specification (MTS); The Test Description Language (TDL); Part 4: Structured Test Objective Specification (Extension)". \ No newline at end of file diff --git a/test_purposes/its_mbr_commons.tplan2 b/test_purposes/its_mbr_commons.tplan2 new file mode 100644 index 0000000..af52849 --- /dev/null +++ b/test_purposes/its_mbr_commons.tplan2 @@ -0,0 +1,97 @@ +/* +Copyright (c) ETSI 2022. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use. This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package its_mbr_commons { + Domain { + pics: // ETSI TS 103 759 [3], Clause 5 + - PICS_IUT_ITS_S // Is the IUT an ITS-S + - PICS_IUT_RSU // Is the IUT a RSU + - PICS_IUT_MA // Is the IUT an Misbehavior Authority + - PICS_RADIO_G5 // Radio layer is G5 + - PICS_RADIO_LTE // Radio layer is LTE/5G + ; + constant: + - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations + ; + entities: + - IUT // Implementation Under Test + - ITS_S // Onboard Unit + - RSU // Road Side Unit + - MA // Misbehavior Authority + - TEST_SYSTEM // Test System entity + - MBR_OBSERVATIONS_CLASS1 + // A set of observations of class1 (Implausible values within the incoming message) + - MBR_OBSERVATIONS_CLASS2 + // A set of observations of class2 (Inconsistencies of the incoming message with previous messages of the same type emitted from the same station) + - AID_MBR // AID of MBR Service + - CERT_IUT_A_AT // Default IUT AT certificate + - CERT_MA // Defaut MA certificate + - CERT_MA_HASHEDID8 + // Hashed Id 8 of the CERT_MA + - MBR_ENC_KEY // TODO + - PX_IMPLAUSIBLE_POSITION_1 + // Invalid position in CA message (e.g. wrong latitude) + ; + events: + - publish + - connect + - receives + - received + - awaits + - sent + - sends + - send + - having + - being_in + - times_out + ; + } // End of 'Domain' statement + + Data { + type Int16; + type Charstring; + type Octetstring; + + type MbrMessage; // Misbehavior Reporting message. See ETSI TS 103 759 + } // End of 'Data' statement + + Configuration { + Interface Type defaultGT accepts MbrMessage; + Component Type ItsComponent with gate g of type defaultGT; + Component Type ItsHttpComponent with gate g of type defaultGT; + + Test Configuration CFG_ITS_MBR_01_01 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements. G5 transport + containing + Tester component MA of type ItsComponent + SUT component IUT of type ItsComponent + connection between MA.g and IUT.g; + + Test Configuration CFG_ITS_MBR_01_02 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements. HTTP transport + containing + Tester component MA of type ItsHttpComponent + SUT component IUT of type ItsHttpComponent + connection between MA.g and IUT.g; + + Test Configuration CFG_ITS_MBR_02 + containing + Tester component MA of type ItsHttpComponent + Tester component ITS_S of type ItsComponent + SUT component IUT of type ItsHttpComponent + connection between MA.g and IUT.g + connection between ITS_S.g and IUT.g; + + } // End of 'Configuration' statement + +} // End of Package its_mbr_commons diff --git a/test_purposes/itss.tplan2 b/test_purposes/itss.tplan2 new file mode 100644 index 0000000..e821dd1 --- /dev/null +++ b/test_purposes/itss.tplan2 @@ -0,0 +1,305 @@ +/* +Copyright (c) ETSI 2022. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use. This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package itss { + + Group "send_mb_report" { + + import all from its_mbr_commons; + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_MB_REPORT_001_01 + + Test objective + "Ensure that the IUT generates a MB report when requested." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3" + + Config Id CFG_ITS_MBR_01_01 + + PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS1 + ; + ; + ; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS1 + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_MB_REPORT_001_01 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_MB_REPORT_001_02 + + Test objective + "Ensure that the IUT generates a MB report when requested." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3" + + Config Id CFG_ITS_MBR_01_02 + + PICS Selection PICS_IUT_ITS_S and PICS_RADIO_LTE + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS1 + ; + ; + ; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS1 + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_MB_REPORT_001_02 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_MB_REPORT_002 + + Test objective + "Ensure that the IUT generates a MB report when requested." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3" + + Config Id CFG_ITS_MBR_01_01 + + PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS2 + ; + ; + ; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS2 + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_MB_REPORT_002 + + } // End of Group "send_mb_report" + + Group "security_mb_report" { + + import all from its_mbr_commons; + + Test Purpose { + TP Id TP_MBR_ITSS_SEC_MB_REPORT_001 + + Test objective + "Ensure that the IUT generates a secured MB report containing the HeaderInfo field psid set to AID_MBR." + + Reference + "ETSI TS 103 759 [3], Clauses 7.1" + + Config Id CFG_ITS_MBR_01_01 + + PICS Selection PICS_IUT_ITS_S + + Initial conditions + with { + the IUT entity being_in the initial_state and, + the IUT is authorized with AT certificate CERT_IUT_A_AT + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS1 + ; + ; + ; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a message of type EtsiTs103097Data-SignedAndEncrypted containing + protocolVersion indicating value 3, + content containing + encryptedData containing + recipients containing, + an instance of RecipientInfo containing + certRecipInfo containing + recipientId indicating value CERT_MA_HASGEDID8, + encKey indicationg value MBR_ENC_KEY + ; + ; + ; + cyphertext containing + encrypted representation of a message of type EtsiTs103097Data-Signed + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEC_MB_REPORT_001 + + } // End of Group "security_mb_report" + + Group "forwarding_misbehvior_messages" { + + import all from its_mbr_commons; + + Test Purpose { + TP Id TP_MBR_ITSS_FORWARDING_MB_REPORT_001 + + Test objective + "Ensure that the IUT forwards a received MB report." + + Reference + "ETSI TS 103 759 [3], Clause 5" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_RSU + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity received a MbrMessage + from the ITS_S entity + } then { + the IUT entity forwards the MbrMessage + to the MA entity + } + } + } // End of TP_MBR_ITSS_FORWARDING_MB_REPORT_001 + + } // End of Group "detect_misbehvior_messages" + + Group "detect_misbehvior_messages" { + + import all from its_mbr_commons; + + Test Purpose { + TP Id TP_MBR_ITSS_DETECT_MB_REPORT_001 + + Test objective + "Ensure that the IUT generates a MB report when receiving non coherent CAM/DENM messages from the same StationID." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + + Config Id CFG_ITS_MBR_01_01 + + PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + + Initial conditions + with { + the IUT entity being_in the initial_state and, + the IUT is configured to trigger a MbrMessage after PX_SUBJECT_PDU_INDEX class1 CA message + } + + Expected behaviour + ensure that { + when { + the IUT entity received PX_SUBJECT_PDU_INDEX CA message containing + StationID indicating value PX_STATIONID, + Position indicating PX_IMPLAUSIBLE_POSITION_1 + ; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations containing + CA message containing + StationID indicating value PX_STATIONID, + Position indicating PX_IMPLAUSIBLE_POSITION_1 + ; + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_DETECT_MB_REPORT_001 + + } // End of Group "detect_misbehvior_messages" + +} // End of Package itss -- GitLab From 2a797364716582ed528e6358ef44f27ff025030b Mon Sep 17 00:00:00 2001 From: Denis Filatov Date: Thu, 17 Nov 2022 11:41:04 +0100 Subject: [PATCH 11/21] use testing version of MRS ASN.1 repository --- .gitmodules | 2 +- lib/asn1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index fc66378..c8fb4bf 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "lib/asn1"] path = lib/asn1 - url = https://forge.etsi.org/rep/ITS/devel/mbmr_ts103759.git + url = https://forge.etsi.org/rep/ITS/asn1/mrs_ts103759.git branch = testing diff --git a/lib/asn1 b/lib/asn1 index ed58d88..02ebe0a 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit ed58d88c78c4380c384da10a17bb092d84d16466 +Subproject commit 02ebe0a872418e41b77da3cfde3da4a9e404a6b6 -- GitLab From 52a990bcf0047375129ffc75d67714fed77645a1 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Mon, 28 Nov 2022 11:10:22 +0100 Subject: [PATCH 12/21] Add a test purpose for each class; Enhance Security test purpose --- lib/LibItsMbr_Templates.ttcn | 159 +++++++++++++++ lib/asn1 | 2 +- lib_system/LibItsMbr_TestSystem.ttcn | 2 +- test_purposes/References.txt | 6 - test_purposes/its_mbr_commons.tplan2 | 14 +- test_purposes/itss.tplan2 | 277 ++++++++++++++++++++++++--- 6 files changed, 427 insertions(+), 33 deletions(-) create mode 100644 lib/LibItsMbr_Templates.ttcn diff --git a/lib/LibItsMbr_Templates.ttcn b/lib/LibItsMbr_Templates.ttcn new file mode 100644 index 0000000..6b6abb6 --- /dev/null +++ b/lib/LibItsMbr_Templates.ttcn @@ -0,0 +1,159 @@ +module LibItsMbr_Templates { + + // LibCommon + import from LibCommon_BasicTypesAndValues all; + import from LibCommon_DataStrings all; + + // LibHelpers + import from LibHelpers_Functions all; + + // LibIts + import from EtsiTs103759Data language "ASN.1:1997" all; + + group mbrPrimitives { + + /** + * @desc Receive template for EtsiTs103759Data Message (MbrPort Primitive) + * @param p_mbrMsg Expected EtsiTs103759Data Message + */ + template MbrInd mw_mbrInd ( + in template (present) EtsiTs103759Data p_mbrMsg + ) := { + msgIn := p_mbrMsg, + recvTime := ?, + gnNextHeader := *, + gnHeaderType := *, + gnHeaderSubtype := *, + gnLifetime := *, + gnTrafficClass := *, + btpDestinationPort := *, + btpInfo := *, + ssp := *, + its_aid := * + }; + + /** + * @desc Receive template for EtsiTs103759Data Message (MbrPort Primitive) + * @param p_mbrMsg Expected EtsiTs103759Data Message + * @param p_gnNextHeader GN next header value + * @param p_gnHeaderType GN header type value + * @param p_gnHeaderSubtype GN header subtype value + * @param p_gnLifetime GN packet lifetime value (ms) + * @param p_gnTrafficClass GN traffic class value + */ + template MbrInd mw_mbrIndWithGnParameters ( + in template (present) EtsiTs103759Data p_mbrMsg, + in template UInt8 p_gnNextHeader := *, + in template UInt8 p_gnHeaderType := *, + in template UInt8 p_gnHeaderSubtype := *, + in template UInt32 p_gnLifetime := *, + in template UInt8 p_gnTrafficClass := * + ) modifies mw_mbrInd := { + gnNextHeader := p_gnNextHeader, + gnHeaderType := p_gnHeaderType, + gnHeaderSubtype := p_gnHeaderSubtype, + gnLifetime := p_gnLifetime, + gnTrafficClass := p_gnTrafficClass + }; + + /** + * @desc Receive template for CA Message (DenmPort Primitive) + * @param p_caMsg The expected CA Message + * @param p_ssp SSP security parameter + * @param p_its_aid ITS-AID value + */ + template MbrInd mw_mbrIndWithSecurityParameters( + template (present) EtsiTs103759Data p_mbrMsg, + template Bit256 p_ssp := *, + template UInt32 p_its_aid := c_its_aid_EtsiTs103759Data + ) modifies mw_mbrInd := { + ssp := p_ssp, + its_aid := p_its_aid + }; + + /** + * @desc Receive template for EtsiTs103759Data Message (MbrPort Primitive) + * @param p_mbrMsg Expected EtsiTs103759Data Message + * @param p_btpDestinationPort BTP destination port value + * @param p_btpInfo BTP destination port info value (if BTP-B) or BTP source port value (if BTP-A) + */ + template MbrInd mw_mbrIndWithBtpParameters ( + in template (present) EtsiTs103759Data p_mbrMsg, + in template UInt16 p_btpDestinationPort := *, + in template UInt16 p_btpInfo := * + ) modifies mw_mbrInd := { + btpDestinationPort := p_btpDestinationPort, + btpInfo := p_btpInfo + }; + + /** + * @desc Send template for EtsiTs103759Data Message (MbrPort Primitive) + * @param p_mbrMsg EtsiTs103759Data Message to be received + */ + template (value) MbrReq m_mbrReq ( + in template (value) EtsiTs103759Data p_mbrMsg + ) := { + msgOut := p_mbrMsg + }; + + group mbrUtPrimitives { + + /** + * @desc Initializes the CAM IUT. + */ + template (value) UtMbrInitialize m_camInitialize := { + hashedId8 := '0000000000000000'O + } + + } // End of group mbrUtPrimitives + + } // End of group mbrPrimitives + + group etsiTs103759Data { + + template (value) EtsiTs103759Data m_etsiTs103759Data( + in UInt8 p_version, + in Time64 p_generationTime, + in template (value) ThreeDLocation p_observationLocation, + in template (value) AidSpecificReport p_report + ) := { + version := p_version, + generationTime := p_generationTime, + observationLocation := p_observationLocation, + report := p_report + } // End of template m_etsiTs103759Data + + template (present) EtsiTs103759Data mw_etsiTs103759Data( + template (present) UInt8 p_version := ?, + template (present) Time64 p_generationTime := ?, + template (present) ThreeDLocation p_observationLocation := ?, + template (present) AidSpecificReport p_report := ? + ) := { + version := p_version, + generationTime := p_generationTime, + observationLocation := p_observationLocation, + report := p_report + } // End of template mw_etsiTs103759Data + + template (value) MbSingleObservation + } // End of group etsiTs103759Data + + group camObservation { // FIXME To be checked + + template (value) AidSpecificReport m_cam_specific_report( + in template (value) SetMbObsCamBeacon p_content + ) := { + aid := c-AsrCam, + content := p_content + } // End of template m_cam_specific_report + + template (present) AidSpecificReport mw_cam_specific_report( + template (present) SetMbObsCamBeacon p_content := ? + ) := { + aid := c-AsrCam, + content := p_content + } // End of template mw_cam_specific_report + + } // End of group camObservation + +} // End of module LibItsMbr_Templates diff --git a/lib/asn1 b/lib/asn1 index 02ebe0a..df1c315 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit 02ebe0a872418e41b77da3cfde3da4a9e404a6b6 +Subproject commit df1c3156b32fa9d1bf45cafe53e990a29bd66af9 diff --git a/lib_system/LibItsMbr_TestSystem.ttcn b/lib_system/LibItsMbr_TestSystem.ttcn index 8e68132..67bf51c 100644 --- a/lib_system/LibItsMbr_TestSystem.ttcn +++ b/lib_system/LibItsMbr_TestSystem.ttcn @@ -5,7 +5,7 @@ module LibItsMbr_TestSystem language "TTCN-3:2010 Real Time and Performance Test import from LibCommon_DataStrings all; // LibIts - import from MBR_PDU_Descriptions language "ASN.1:1997" all; + import from EtsiTs103759Data language "ASN.1:1997" all; // LibItsCommon import from LibItsCommon_TestSystem all; diff --git a/test_purposes/References.txt b/test_purposes/References.txt index c6e5883..e0ffd36 100644 --- a/test_purposes/References.txt +++ b/test_purposes/References.txt @@ -2,9 +2,3 @@ [2] ETSI EN 302 665: "Intelligent Transport Systems (ITS); Communications Architecture". [3] ETSI TS 102 941: "Intelligent Transport Systems (ITS); Security; Trust and Privacy Management". [4] ETSI TS 103 759: "Intelligent Transport Systems (ITS); Security; Misbehaviour Reporting service". - - -[4] ISO/IEC 9646-1: "Information technology -- Open Systems Interconnection -- Conformance testing methodology and framework -- Part 1: General concepts". -[5] ISO/IEC 9646-7: "Information technology -- Open Systems Interconnection -- Conformance testing methodology and framework -- Part 7: Implementation Conformance Statements". -[6] ETSI ETS 300 406: "Methods for testing and Specification (MTS); Protocol and profile conformance testing specifications; Standardization methodology". -[7] ETSI ES 203 119-4: "Methods for Testing and Specification (MTS); The Test Description Language (TDL); Part 4: Structured Test Objective Specification (Extension)". \ No newline at end of file diff --git a/test_purposes/its_mbr_commons.tplan2 b/test_purposes/its_mbr_commons.tplan2 index af52849..0dbeff5 100644 --- a/test_purposes/its_mbr_commons.tplan2 +++ b/test_purposes/its_mbr_commons.tplan2 @@ -23,7 +23,9 @@ Package its_mbr_commons { - PICS_RADIO_LTE // Radio layer is LTE/5G ; constant: - - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations + - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations + - PX_IMPLAUSIBLE_POSITION_1 // Invalid position in CA message (e.g. wrong latitude) + ; entities: - IUT // Implementation Under Test @@ -35,14 +37,20 @@ Package its_mbr_commons { // A set of observations of class1 (Implausible values within the incoming message) - MBR_OBSERVATIONS_CLASS2 // A set of observations of class2 (Inconsistencies of the incoming message with previous messages of the same type emitted from the same station) + - MBR_OBSERVATIONS_CLASS3 + // A set of observations of class3 (Inconsistencies of the incoming message with the knowledge of the local environment of the ego vehicle) + - MBR_OBSERVATIONS_CLASS4 + // A set of observations of class4 (Inconsistencies of the incoming message with the on-board sensors’ perception) + - MBR_OBSERVATIONS_CLASS5 + // A set of observations of class5 (Inconsistencies of the incoming message with previous messages of other types from the same station or with messages (of the same type or not) emitted by other stations) - AID_MBR // AID of MBR Service - CERT_IUT_A_AT // Default IUT AT certificate - CERT_MA // Defaut MA certificate - CERT_MA_HASHEDID8 // Hashed Id 8 of the CERT_MA - MBR_ENC_KEY // TODO - - PX_IMPLAUSIBLE_POSITION_1 - // Invalid position in CA message (e.g. wrong latitude) + - MBR_GEN_TIME // The time the MBR messsage is generated + - MBR_GEN_LOC // The location of the OBU when the MBR messsage is generated ; events: - publish diff --git a/test_purposes/itss.tplan2 b/test_purposes/itss.tplan2 index e821dd1..d3bc6f1 100644 --- a/test_purposes/itss.tplan2 +++ b/test_purposes/itss.tplan2 @@ -23,10 +23,10 @@ Package itss { TP Id TP_MBR_ITSS_SEND_MB_REPORT_001_01 Test objective - "Ensure that the IUT generates a MB report when requested." + "Check that the IUT generates a MB report when requested over G5 (Class 2)." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3" + "ETSI TS 103 759 [3], Clauses 4.2.3 and Clause 7.2" Config Id CFG_ITS_MBR_01_01 @@ -43,6 +43,7 @@ Package itss { the IUT entity is triggered to send a MbrMessage containing v2xPduEvidence containing v2xPdus containing + type indicating value TODO, subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS1 ; @@ -51,10 +52,20 @@ Package itss { from the TEST_SYSTEM entity } then { the IUT entity sends a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS1 + version indicating value 1, + generationTime indicating value MBR_GEN_TIME, + observationLocation indicating value MBR_GEN_LOC, + report containing + aid indicating value AID_CAM, + content containg + v2xPduEvidence containing + type indicating value TODO, + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS1 + ; + certificate indicating value TODO + ; ; ; ; @@ -67,10 +78,10 @@ Package itss { TP Id TP_MBR_ITSS_SEND_MB_REPORT_001_02 Test objective - "Ensure that the IUT generates a MB report when requested." + "Check that the IUT generates a MB report when requested over LTE (Class 1)." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3" + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" Config Id CFG_ITS_MBR_01_02 @@ -86,6 +97,7 @@ Package itss { when { the IUT entity is triggered to send a MbrMessage containing v2xPduEvidence containing + type indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS1 @@ -95,10 +107,20 @@ Package itss { from the TEST_SYSTEM entity } then { the IUT entity sends a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS1 + version indicating value 1, + generationTime indicating value MBR_GEN_TIME, + observationLocation indicating value MBR_GEN_LOC, + report containing + aid indicating value AID_CAM, + content containg + v2xPduEvidence containing + type indicating value TODO, + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS1 + ; + certificate indicating value TODO + ; ; ; ; @@ -111,10 +133,10 @@ Package itss { TP Id TP_MBR_ITSS_SEND_MB_REPORT_002 Test objective - "Ensure that the IUT generates a MB report when requested." + "Check that the IUT generates a MB report when requested (Class 2)." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3" + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" Config Id CFG_ITS_MBR_01_01 @@ -131,6 +153,7 @@ Package itss { the IUT entity is triggered to send a MbrMessage containing v2xPduEvidence containing v2xPdus containing + type indicating value TODO, subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS2 ; @@ -139,17 +162,201 @@ Package itss { from the TEST_SYSTEM entity } then { the IUT entity sends a MbrMessage containing + version indicating value 1, + generationTime indicating value MBR_GEN_TIME, + observationLocation indicating value MBR_GEN_LOC, + report containing + aid indicating value AID_CAM, + content containg + v2xPduEvidence containing + type indicating value TODO, + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS2 + ; + certificate indicating value TODO + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_MB_REPORT_002 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_MB_REPORT_003 + + Test objective + "Check that the IUT generates a MB report when requested (Class 3)." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + + Config Id CFG_ITS_MBR_01_01 + + PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MbrMessage containing v2xPduEvidence containing v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS2 + observations indicating value MBR_OBSERVATIONS_CLASS3 + ; + ; + ; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a MbrMessage containing + version indicating value 1, + generationTime indicating value MBR_GEN_TIME, + observationLocation indicating value MBR_GEN_LOC, + report containing + aid indicating value AID_CAM, + content containg + v2xPduEvidence containing + type indicating value TODO, + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS3 + ; + certificate indicating value TODO + ; + nonV2xPduEvidence containing + id indicating value TODO, + evidence indicating value TODO + ; ; ; ; to the MA entity } } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_002 + } // End of TP_MBR_ITSS_SEND_MB_REPORT_003 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_MB_REPORT_004 + + Test objective + "Check that the IUT generates a MB report when requested (Class 4)." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + + Config Id CFG_ITS_MBR_01_01 + + PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS4 + ; + ; + ; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a MbrMessage containing + version indicating value 1, + generationTime indicating value MBR_GEN_TIME, + observationLocation indicating value MBR_GEN_LOC, + report containing + aid indicating value AID_CAM, + content containg + v2xPduEvidence containing + type indicating value TODO, + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS4 + ; + certificate indicating value TODO + ; + nonV2xPduEvidence containing + id indicating value TODO, + evidence indicating value TODO + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_MB_REPORT_004 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_MB_REPORT_005 + + Test objective + "Check that the IUT generates a MB report when requested (Class 5)." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + + Config Id CFG_ITS_MBR_01_01 + + PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MbrMessage containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS5 + ; + ; + ; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a MbrMessage containing + version indicating value 1, + generationTime indicating value MBR_GEN_TIME, + observationLocation indicating value MBR_GEN_LOC, + report containing + aid indicating value AID_CAM, + content containg + v2xPduEvidence containing + type indicating value TODO, + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS5 + ; + certificate indicating value TODO + ; + nonV2xPduEvidence containing + id indicating value TODO, + evidence indicating value TODO + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_MB_REPORT_005 } // End of Group "send_mb_report" @@ -161,7 +368,7 @@ Package itss { TP Id TP_MBR_ITSS_SEC_MB_REPORT_001 Test objective - "Ensure that the IUT generates a secured MB report containing the HeaderInfo field psid set to AID_MBR." + "Check that the IUT generates an encrypted MBR message." Reference "ETSI TS 103 759 [3], Clauses 7.1" @@ -174,6 +381,8 @@ Package itss { with { the IUT entity being_in the initial_state and, the IUT is authorized with AT certificate CERT_IUT_A_AT + containing encryptionKey + ; } Expected behaviour @@ -194,7 +403,7 @@ Package itss { content containing encryptedData containing recipients containing, - an instance of RecipientInfo containing + recipientInfo containing certRecipInfo containing recipientId indicating value CERT_MA_HASGEDID8, encKey indicationg value MBR_ENC_KEY @@ -202,7 +411,31 @@ Package itss { ; ; cyphertext containing - encrypted representation of a message of type EtsiTs103097Data-Signed + EtsiTs103097Data-Signed containing + content.signedData containing + hashId indicating value HASH_ALGORITHM + ; + signer containing + digest indicating value CERT_AT_HASHEDID8 + ; + tbsData containing + payload containing + EtsiTs102941Data containing + v2xPduEvidence containing + v2xPdus containing + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value MBR_OBSERVATIONS_CLASS1 + ; + ; + ; + ; + headerInfo containing + psid indicatingvalue MBR_PSID, + generationTime + ; + ; + signature indicating value Signature + ; ; ; ; @@ -222,10 +455,10 @@ Package itss { TP Id TP_MBR_ITSS_FORWARDING_MB_REPORT_001 Test objective - "Ensure that the IUT forwards a received MB report." + "Check that the IUT forwards a received MB report." Reference - "ETSI TS 103 759 [3], Clause 5" + "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" Config Id CFG_ITS_MBR_02 @@ -258,7 +491,7 @@ Package itss { TP Id TP_MBR_ITSS_DETECT_MB_REPORT_001 Test objective - "Ensure that the IUT generates a MB report when receiving non coherent CAM/DENM messages from the same StationID." + "Check that the IUT generates a MB report when receiving non coherent CAM/DENM messages from the same StationID." Reference "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" -- GitLab From e7baf2622086fe8d3352fa86b8b021651eeecfc0 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Tue, 3 Jan 2023 09:13:12 +0100 Subject: [PATCH 13/21] Bug fixed in TPs --- lib/asn1 | 2 +- lib/module.mk | 30 ++++++++++++-------- test_purposes/its_mbr_commons.tplan2 | 2 +- test_purposes/itss.tplan2 | 42 ++++++++++++++-------------- 4 files changed, 42 insertions(+), 34 deletions(-) diff --git a/lib/asn1 b/lib/asn1 index df1c315..e6c83ef 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit df1c3156b32fa9d1bf45cafe53e990a29bd66af9 +Subproject commit e6c83ef3430a347b68135a7973fe729bae118517 diff --git a/lib/module.mk b/lib/module.mk index fa8b8d4..b1d31f5 100644 --- a/lib/module.mk +++ b/lib/module.mk @@ -1,13 +1,21 @@ sources := \ - LibItsMbr_TypesAndValues.ttcn \ - asn1/EtsiTs103759.asn \ - asn1/EtsiTs103759AsrAppAgnostic.asn \ - asn1/EtsiTs103759AsrCam.asn \ - asn1/EtsiTs103759AsrDenm.asn \ + LibItsMbr_TypesAndValues.ttcn \ + LibItsMbr_Templates.ttcn \ + asn1/EtsiTs103759.asn \ + asn1/EtsiTs103759BaseTypes.asn \ + asn1/EtsiTs103759AsrAppAgnostic.asn \ + asn1/EtsiTs103759AsrCam.asn \ + asn1/EtsiTs103759AsrDenm.asn \ asn1/EtsiTs103759CommonObservations.asn \ - asn1/EtsiTs103759BaseTypes.asn \ - asn1/SaeJ3287AsrBsm.asn \ - asn1/sec_ts103097/EtsiTs103097ExtensionModule.asn \ - asn1/sec_ts103097/EtsiTs103097Module.asn \ - asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2.asn \ - asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2BaseTypes.asn + asn1/SaeJ3287AsrBsm.asn \ + asn1/ieee1609.2/Ieee1609Dot2.asn \ + asn1/ieee1609.2/Ieee1609Dot2CrlBaseTypes.asn \ + asn1/ieee1609.2/Ieee1609Dot2Crl.asn \ + asn1/ieee1609.2/Ieee1609Dot2BaseTypes.asn \ + asn1/sec_ts103097/EtsiTs103097ExtensionModule.asn \ + asn1/sec_ts103097/EtsiTs103097Module.asn \ + +# asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2.asn \ +# asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2BaseTypes.asn \ +# asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2Crl.asn \ +# asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2CrlBaseTypes.asn diff --git a/test_purposes/its_mbr_commons.tplan2 b/test_purposes/its_mbr_commons.tplan2 index 0dbeff5..9d30663 100644 --- a/test_purposes/its_mbr_commons.tplan2 +++ b/test_purposes/its_mbr_commons.tplan2 @@ -53,7 +53,7 @@ Package its_mbr_commons { - MBR_GEN_LOC // The location of the OBU when the MBR messsage is generated ; events: - - publish + - isTriggeredToSend - connect - receives - received diff --git a/test_purposes/itss.tplan2 b/test_purposes/itss.tplan2 index d3bc6f1..65cf546 100644 --- a/test_purposes/itss.tplan2 +++ b/test_purposes/itss.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2022. +Copyright (c) ETSI 2023. This software is subject to copyrights owned by ETSI. Non-exclusive permission is hereby granted, free of charge, to copy, reproduce and amend this file @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package itss { +Package mbr { Group "send_mb_report" { @@ -40,10 +40,10 @@ Package itss { Expected behaviour ensure that { when { - the IUT entity is triggered to send a MbrMessage containing + the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing v2xPdus containing - type indicating value TODO, + type_ indicating value TODO, subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS1 ; @@ -57,14 +57,14 @@ Package itss { observationLocation indicating value MBR_GEN_LOC, report containing aid indicating value AID_CAM, - content containg + content containing v2xPduEvidence containing - type indicating value TODO, + type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS1 ; - certificate indicating value TODO + certificate_ indicating value TODO ; ; ; @@ -95,7 +95,7 @@ Package itss { Expected behaviour ensure that { when { - the IUT entity is triggered to send a MbrMessage containing + the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing type indicating value TODO, v2xPdus containing @@ -112,7 +112,7 @@ Package itss { observationLocation indicating value MBR_GEN_LOC, report containing aid indicating value AID_CAM, - content containg + content containing v2xPduEvidence containing type indicating value TODO, v2xPdus containing @@ -150,7 +150,7 @@ Package itss { Expected behaviour ensure that { when { - the IUT entity is triggered to send a MbrMessage containing + the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing v2xPdus containing type indicating value TODO, @@ -167,7 +167,7 @@ Package itss { observationLocation indicating value MBR_GEN_LOC, report containing aid indicating value AID_CAM, - content containg + content containing v2xPduEvidence containing type indicating value TODO, v2xPdus containing @@ -205,7 +205,7 @@ Package itss { Expected behaviour ensure that { when { - the IUT entity is triggered to send a MbrMessage containing + the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, @@ -221,7 +221,7 @@ Package itss { observationLocation indicating value MBR_GEN_LOC, report containing aid indicating value AID_CAM, - content containg + content containing v2xPduEvidence containing type indicating value TODO, v2xPdus containing @@ -263,7 +263,7 @@ Package itss { Expected behaviour ensure that { when { - the IUT entity is triggered to send a MbrMessage containing + the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, @@ -279,7 +279,7 @@ Package itss { observationLocation indicating value MBR_GEN_LOC, report containing aid indicating value AID_CAM, - content containg + content containing v2xPduEvidence containing type indicating value TODO, v2xPdus containing @@ -321,7 +321,7 @@ Package itss { Expected behaviour ensure that { when { - the IUT entity is triggered to send a MbrMessage containing + the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, @@ -337,7 +337,7 @@ Package itss { observationLocation indicating value MBR_GEN_LOC, report containing aid indicating value AID_CAM, - content containg + content containing v2xPduEvidence containing type indicating value TODO, v2xPdus containing @@ -388,7 +388,7 @@ Package itss { Expected behaviour ensure that { when { - the IUT entity is triggered to send a MbrMessage containing + the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, @@ -511,7 +511,7 @@ Package itss { when { the IUT entity received PX_SUBJECT_PDU_INDEX CA message containing StationID indicating value PX_STATIONID, - Position indicating PX_IMPLAUSIBLE_POSITION_1 + Position indicating value PX_IMPLAUSIBLE_POSITION_1 ; from the TEST_SYSTEM entity } then { @@ -522,7 +522,7 @@ Package itss { observations containing CA message containing StationID indicating value PX_STATIONID, - Position indicating PX_IMPLAUSIBLE_POSITION_1 + Position indicating value PX_IMPLAUSIBLE_POSITION_1 ; ; ; @@ -535,4 +535,4 @@ Package itss { } // End of Group "detect_misbehvior_messages" -} // End of Package itss +} // End of Package mbr -- GitLab From 7f6c7c5c77bb8ff19df7112c43f5c51f3bba397f Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Tue, 17 Jan 2023 11:23:39 +0100 Subject: [PATCH 14/21] Update initial basic TPs --- test_purposes/its_mbr_commons.tplan2 | 3 ++- test_purposes/itss.tplan2 | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/test_purposes/its_mbr_commons.tplan2 b/test_purposes/its_mbr_commons.tplan2 index 9d30663..cd8fa41 100644 --- a/test_purposes/its_mbr_commons.tplan2 +++ b/test_purposes/its_mbr_commons.tplan2 @@ -25,7 +25,7 @@ Package its_mbr_commons { constant: - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations - PX_IMPLAUSIBLE_POSITION_1 // Invalid position in CA message (e.g. wrong latitude) - + - TODO // PIXIT to be defined ; entities: - IUT // Implementation Under Test @@ -57,6 +57,7 @@ Package its_mbr_commons { - connect - receives - received + - forwards - awaits - sent - sends diff --git a/test_purposes/itss.tplan2 b/test_purposes/itss.tplan2 index 65cf546..314edf9 100644 --- a/test_purposes/itss.tplan2 +++ b/test_purposes/itss.tplan2 @@ -97,7 +97,7 @@ Package mbr { when { the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing - type indicating value TODO, + type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS1 @@ -114,12 +114,12 @@ Package mbr { aid indicating value AID_CAM, content containing v2xPduEvidence containing - type indicating value TODO, + type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS1 ; - certificate indicating value TODO + certificate_ indicating value TODO ; ; ; @@ -153,7 +153,7 @@ Package mbr { the IUT entity isTriggeredToSend a MbrMessage containing v2xPduEvidence containing v2xPdus containing - type indicating value TODO, + type_ indicating value TODO, subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS2 ; @@ -169,12 +169,12 @@ Package mbr { aid indicating value AID_CAM, content containing v2xPduEvidence containing - type indicating value TODO, + type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS2 ; - certificate indicating value TODO + certificate_ indicating value TODO ; ; ; @@ -223,12 +223,12 @@ Package mbr { aid indicating value AID_CAM, content containing v2xPduEvidence containing - type indicating value TODO, + type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS3 ; - certificate indicating value TODO + certificate_ indicating value TODO ; nonV2xPduEvidence containing id indicating value TODO, @@ -281,12 +281,12 @@ Package mbr { aid indicating value AID_CAM, content containing v2xPduEvidence containing - type indicating value TODO, + type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS4 ; - certificate indicating value TODO + certificate_ indicating value TODO ; nonV2xPduEvidence containing id indicating value TODO, @@ -339,12 +339,12 @@ Package mbr { aid indicating value AID_CAM, content containing v2xPduEvidence containing - type indicating value TODO, + type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS5 ; - certificate indicating value TODO + certificate_ indicating value TODO ; nonV2xPduEvidence containing id indicating value TODO, @@ -380,7 +380,7 @@ Package mbr { Initial conditions with { the IUT entity being_in the initial_state and, - the IUT is authorized with AT certificate CERT_IUT_A_AT + the IUT is authorized with AT certificate_ CERT_IUT_A_AT containing encryptionKey ; } @@ -398,7 +398,7 @@ Package mbr { ; from the TEST_SYSTEM entity } then { - the IUT entity sends a message of type EtsiTs103097Data-SignedAndEncrypted containing + the IUT entity sends a message of type_ EtsiTs103097Data-SignedAndEncrypted containing protocolVersion indicating value 3, content containing encryptedData containing -- GitLab From fbf176e64e6f78584b40ac177623d495f9124ac4 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Wed, 18 Jan 2023 11:47:05 +0100 Subject: [PATCH 15/21] Drafting session from 2023/01/18 --- test_purposes/its_mbr_commons.tplan2 | 80 ++-- test_purposes/itss.tplan2 | 545 ++++++++++++++++----------- 2 files changed, 376 insertions(+), 249 deletions(-) diff --git a/test_purposes/its_mbr_commons.tplan2 b/test_purposes/its_mbr_commons.tplan2 index cd8fa41..5bfe373 100644 --- a/test_purposes/its_mbr_commons.tplan2 +++ b/test_purposes/its_mbr_commons.tplan2 @@ -19,41 +19,39 @@ Package its_mbr_commons { - PICS_IUT_ITS_S // Is the IUT an ITS-S - PICS_IUT_RSU // Is the IUT a RSU - PICS_IUT_MA // Is the IUT an Misbehavior Authority - - PICS_RADIO_G5 // Radio layer is G5 - - PICS_RADIO_LTE // Radio layer is LTE/5G - ; - constant: - - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations - - PX_IMPLAUSIBLE_POSITION_1 // Invalid position in CA message (e.g. wrong latitude) - - TODO // PIXIT to be defined + - PICS_DETECTOR_CAM_SPEED // CAM Speed misbehavior detector is supported ; +// constant: +// - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations +// - PX_IMPLAUSIBLE_POSITION_1 // Invalid position in CA message (e.g. wrong latitude) +// - TODO // PIXIT to be defined +// ; entities: - IUT // Implementation Under Test - ITS_S // Onboard Unit - RSU // Road Side Unit - MA // Misbehavior Authority - TEST_SYSTEM // Test System entity - - MBR_OBSERVATIONS_CLASS1 - // A set of observations of class1 (Implausible values within the incoming message) - - MBR_OBSERVATIONS_CLASS2 - // A set of observations of class2 (Inconsistencies of the incoming message with previous messages of the same type emitted from the same station) - - MBR_OBSERVATIONS_CLASS3 - // A set of observations of class3 (Inconsistencies of the incoming message with the knowledge of the local environment of the ego vehicle) - - MBR_OBSERVATIONS_CLASS4 - // A set of observations of class4 (Inconsistencies of the incoming message with the on-board sensors’ perception) - - MBR_OBSERVATIONS_CLASS5 - // A set of observations of class5 (Inconsistencies of the incoming message with previous messages of other types from the same station or with messages (of the same type or not) emitted by other stations) - - AID_MBR // AID of MBR Service - - CERT_IUT_A_AT // Default IUT AT certificate - - CERT_MA // Defaut MA certificate - - CERT_MA_HASHEDID8 - // Hashed Id 8 of the CERT_MA - - MBR_ENC_KEY // TODO - - MBR_GEN_TIME // The time the MBR messsage is generated - - MBR_GEN_LOC // The location of the OBU when the MBR messsage is generated +// - MBR_OBSERVATIONS_CLASS1 +// // A set of observations of class1 (Implausible values within the incoming message) +// - MBR_OBSERVATIONS_CLASS2 +// // A set of observations of class2 (Inconsistencies of the incoming message with previous messages of the same type emitted from the same station) +// - MBR_OBSERVATIONS_CLASS3 +// // A set of observations of class3 (Inconsistencies of the incoming message with the knowledge of the local environment of the ego vehicle) +// - MBR_OBSERVATIONS_CLASS4 +// // A set of observations of class4 (Inconsistencies of the incoming message with the on-board sensors’ perception) +// - MBR_OBSERVATIONS_CLASS5 +// // A set of observations of class5 (Inconsistencies of the incoming message with previous messages of other types from the same station or with messages (of the same type or not) emitted by other stations) +// - AID_MBR // AID of MBR Service +// - CERT_IUT_A_AT // Default IUT AT certificate +// - CERT_MA // Defaut MA certificate +// - CERT_MA_HASHEDID8 +// // Hashed Id 8 of the CERT_MA +// - MBR_ENC_KEY // TODO +// - MBR_GEN_TIME // The time the MBR messsage is generated +// - MBR_GEN_LOC // The location of the OBU when the MBR messsage is generated ; events: - - isTriggeredToSend - connect - receives - received @@ -65,34 +63,44 @@ Package its_mbr_commons { - having - being_in - times_out + - isAuthorizedWith ; } // End of 'Domain' statement +// const { +// - PX_CAM_MBR_OBSERVATIONS_CLASS1 // CAM observation +// - AID_CAM // Psid for CAM, 36 +// - PX_STATION_ID +// - SEC_GN_PACKET_CERT // Secured geonetworking packet containing CA/DEM message and certificate (signer certificate) +// - SEC_GN_PACKET // Secured geonetworking packet containing CA/DEM message without certificate (digest) +// } + Data { type Int16; type Charstring; type Octetstring; - - type MbrMessage; // Misbehavior Reporting message. See ETSI TS 103 759 + type Time64; + type ThreeDLocation; + type EtsiTs103759Data; // Misbehavior Reporting message. See ETSI TS 103 759 + type AidSpecificReport; + type AsrCam; + type CamObservationsByTarget; + type MbSingleObservation; + type ObsPduEtsiGn; + type Psid; } // End of 'Data' statement Configuration { - Interface Type defaultGT accepts MbrMessage; + Interface Type defaultGT accepts EtsiTs103759Data; Component Type ItsComponent with gate g of type defaultGT; Component Type ItsHttpComponent with gate g of type defaultGT; - Test Configuration CFG_ITS_MBR_01_01 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements. G5 transport + Test Configuration CFG_ITS_MBR_01 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements\ containing Tester component MA of type ItsComponent SUT component IUT of type ItsComponent connection between MA.g and IUT.g; - Test Configuration CFG_ITS_MBR_01_02 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements. HTTP transport - containing - Tester component MA of type ItsHttpComponent - SUT component IUT of type ItsHttpComponent - connection between MA.g and IUT.g; - Test Configuration CFG_ITS_MBR_02 containing Tester component MA of type ItsHttpComponent diff --git a/test_purposes/itss.tplan2 b/test_purposes/itss.tplan2 index 314edf9..9b70b3d 100644 --- a/test_purposes/itss.tplan2 +++ b/test_purposes/itss.tplan2 @@ -20,17 +20,17 @@ Package mbr { import all from its_mbr_commons; Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_001_01 + TP Id TP_MBR_ITSS_SEND_MB_REPORT_001 Test objective - "Check that the IUT generates a MB report when requested over G5 (Class 2)." + "Check that the IUT generates a MB report when requested." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3 and Clause 7.2" + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" - Config Id CFG_ITS_MBR_01_01 + Config Id CFG_ITS_MBR_01 - PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + PICS Selection PICS_IUT_ITS_S Initial conditions with { @@ -40,52 +40,32 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity isTriggeredToSend a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - type_ indicating value TODO, - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS1 - ; - ; - ; + the IUT entity is triggered to send a MB report from the TEST_SYSTEM entity } then { - the IUT entity sends a MbrMessage containing + the IUT entity sends a EtsiTs103759Data containing version indicating value 1, - generationTime indicating value MBR_GEN_TIME, - observationLocation indicating value MBR_GEN_LOC, - report containing - aid indicating value AID_CAM, - content containing - v2xPduEvidence containing - type_ indicating value TODO, - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS1 - ; - certificate_ indicating value TODO - ; - ; - ; + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report corresponding to AidSpecificReport ; to the MA entity } } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_001_01 + } // End of TP_MBR_ITSS_SEND_MB_REPORT_001 Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_001_02 + TP Id TP_MBR_ITSS_SEND_MB_REPORT_002 Test objective - "Check that the IUT generates a MB report when requested over LTE (Class 1)." + "Check that the IUT generates an invalid speed value in CAM MB report when requested (Class 1)." Reference "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" - Config Id CFG_ITS_MBR_01_02 + Config Id CFG_ITS_MBR_01 - PICS Selection PICS_IUT_ITS_S and PICS_RADIO_LTE + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED Initial conditions with { @@ -95,31 +75,51 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity isTriggeredToSend a MbrMessage containing - v2xPduEvidence containing - type_ indicating value TODO, - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS1 - ; - ; - ; + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; // Le TS envoie le PDU CAM with Certificate avec l'erreur Speed par l'accces layer from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED; } then { - the IUT entity sends a MbrMessage containing + the IUT entity sends a EtsiTs103759Data containing version indicating value 1, - generationTime indicating value MBR_GEN_TIME, - observationLocation indicating value MBR_GEN_LOC, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, report containing - aid indicating value AID_CAM, + aid indicating value AsrCam, content containing - v2xPduEvidence containing - type_ indicating value TODO, - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS1 - ; - certificate_ indicating value TODO + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus indicating value SEC_GN_PACKET_CERT, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty ; ; ; @@ -127,18 +127,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_001_02 + } // End of TP_MBR_ITSS_SEND_MB_REPORT_002 Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_002 + TP Id TP_MBR_ITSS_SEND_MB_REPORT_003 Test objective - "Check that the IUT generates a MB report when requested (Class 2)." + "Check that the IUT generates some invalid static changes in CAM MB report when requested (Class 2)." Reference "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" - Config Id CFG_ITS_MBR_01_01 + Config Id CFG_ITS_MBR_01 PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 @@ -150,31 +150,54 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity isTriggeredToSend a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - type_ indicating value TODO, - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS2 + the IUT entity is triggered to send a MB report containing + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content containing // TemplateAsr + observations containing // ObservationsByTargetSequence + tgtId indicating value speed, + observations containing // ObservationsByTarget + item0 containing + SetMbObsTgtsCam indicating value MbObsCamStatic, + SetMbEvCam // ??? + ;, + item1 containing + SetMbObsTgtsCam indicating value SetMbObsEtsiOnlySpeed, + SetMbEvCam // ??? + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX + ; + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; from the TEST_SYSTEM entity } then { - the IUT entity sends a MbrMessage containing + the IUT entity sends a EtsiTs103759Data containing version indicating value 1, - generationTime indicating value MBR_GEN_TIME, - observationLocation indicating value MBR_GEN_LOC, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, report containing - aid indicating value AID_CAM, + aid corresponding to Psid, content containing v2xPduEvidence containing type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS2 - ; - certificate_ indicating value TODO + ;, + certificate indicating value TODO ; ; ; @@ -182,10 +205,10 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_002 + } // End of TP_MBR_ITSS_SEND_MB_REPORT_003 Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_003 + TP Id TP_MBR_ITSS_SEND_MB_REPORT_004 Test objective "Check that the IUT generates a MB report when requested (Class 3)." @@ -193,7 +216,7 @@ Package mbr { Reference "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" - Config Id CFG_ITS_MBR_01_01 + Config Id CFG_ITS_MBR_01 PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 @@ -205,31 +228,42 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity isTriggeredToSend a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS3 + the IUT entity is triggered to send a MB report containing + report containing + aid corresponding to Psid, + content containing + aid corresponding to Psid, + content containing + observations containing + tgtId corresponding to C_OBS_PDU_ID, + observations indicating value TODO + ;, + v2xPduEvidence containing + type_ indicating value TODO, + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value PX_MBR_OBSERVATIONS_CLASS3 + ; + ; ; ; ; from the TEST_SYSTEM entity } then { - the IUT entity sends a MbrMessage containing + the IUT entity sends a EtsiTs103759Data containing version indicating value 1, - generationTime indicating value MBR_GEN_TIME, - observationLocation indicating value MBR_GEN_LOC, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, report containing - aid indicating value AID_CAM, + aid corresponding to Psid, content containing v2xPduEvidence containing type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS3 - ; - certificate_ indicating value TODO - ; + ;, + certificate indicating value TODO + ;, nonV2xPduEvidence containing id indicating value TODO, evidence indicating value TODO @@ -240,10 +274,10 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_003 + } // End of TP_MBR_ITSS_SEND_MB_REPORT_004 Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_004 + TP Id TP_MBR_ITSS_SEND_MB_REPORT_005 Test objective "Check that the IUT generates a MB report when requested (Class 4)." @@ -251,7 +285,7 @@ Package mbr { Reference "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" - Config Id CFG_ITS_MBR_01_01 + Config Id CFG_ITS_MBR_01 PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 @@ -263,45 +297,56 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity isTriggeredToSend a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS4 + the IUT entity is triggered to send a MB report containing + report containing + aid corresponding to Psid, + content containing + aid corresponding to Psid, + content containing + observations containing + tgtId corresponding to C_OBS_PDU_ID, + observations indicating value TODO + ;, + v2xPduEvidence containing + type_ indicating value TODO, + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value PX_MBR_OBSERVATIONS_CLASS4 + ; + ; ; ; ; from the TEST_SYSTEM entity } then { - the IUT entity sends a MbrMessage containing + the IUT entity sends a EtsiTs103759Data containing version indicating value 1, - generationTime indicating value MBR_GEN_TIME, - observationLocation indicating value MBR_GEN_LOC, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, report containing - aid indicating value AID_CAM, + aid corresponding to Psid, content containing v2xPduEvidence containing type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS4 - ; - certificate_ indicating value TODO - ; - nonV2xPduEvidence containing - id indicating value TODO, - evidence indicating value TODO + ;, + certificate indicating value TODO ; +// nonV2xPduEvidence containing +// id indicating value TODO, +// evidence indicating value TODO +// ; ; ; ; to the MA entity } } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_004 + } // End of TP_MBR_ITSS_SEND_MB_REPORT_005 Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_005 + TP Id TP_MBR_ITSS_SEND_MB_REPORT_006 Test objective "Check that the IUT generates a MB report when requested (Class 5)." @@ -309,7 +354,7 @@ Package mbr { Reference "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" - Config Id CFG_ITS_MBR_01_01 + Config Id CFG_ITS_MBR_01 PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 @@ -321,31 +366,42 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity isTriggeredToSend a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS5 + the IUT entity is triggered to send a MB report containing + report containing + aid corresponding to Psid, + content containing + aid corresponding to Psid, + content containing + observations containing + tgtId corresponding to C_OBS_PDU_ID, + observations indicating value TODO + ;, + v2xPduEvidence containing + type_ indicating value TODO, + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, + observations indicating value PX_MBR_OBSERVATIONS_CLASS5 + ; + ; ; ; ; from the TEST_SYSTEM entity } then { - the IUT entity sends a MbrMessage containing + the IUT entity sends a EtsiTs103759Data containing version indicating value 1, - generationTime indicating value MBR_GEN_TIME, - observationLocation indicating value MBR_GEN_LOC, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, report containing - aid indicating value AID_CAM, + aid corresponding to Psid, content containing v2xPduEvidence containing type_ indicating value TODO, v2xPdus containing subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, observations indicating value MBR_OBSERVATIONS_CLASS5 - ; - certificate_ indicating value TODO - ; + ;, + certificate indicating value TODO + ;, nonV2xPduEvidence containing id indicating value TODO, evidence indicating value TODO @@ -356,86 +412,113 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_005 + } // End of TP_MBR_ITSS_SEND_MB_REPORT_006 } // End of Group "send_mb_report" - Group "security_mb_report" { + Group "forwarding_misbehvior_messages" { + + import all from its_mbr_commons; + Test Purpose { + TP Id TP_MBR_ITSS_FORWARDING_MB_REPORT_001 + + Test objective + "Check that the IUT forwards a received MB report." + + Reference + "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_RSU + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity received a EtsiTs103759Data + from the ITS_S entity + } then { + the IUT entity forwards the EtsiTs103759Data + to the MA entity + } + } + } // End of TP_MBR_ITSS_FORWARDING_MB_REPORT_001 + + } // End of Group "detect_misbehvior_messages" + + Group "detect_misbehvior_messages" { + import all from its_mbr_commons; Test Purpose { - TP Id TP_MBR_ITSS_SEC_MB_REPORT_001 + TP Id TP_MBR_ITSS_DETECT_MB_REPORT_001 Test objective - "Check that the IUT generates an encrypted MBR message." + "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID." Reference - "ETSI TS 103 759 [3], Clauses 7.1" + "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" - Config Id CFG_ITS_MBR_01_01 + Config Id CFG_ITS_MBR_01 - PICS Selection PICS_IUT_ITS_S + PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 Initial conditions with { - the IUT entity being_in the initial_state and, - the IUT is authorized with AT certificate_ CERT_IUT_A_AT - containing encryptionKey - ; + the IUT entity being_in the initial_state } Expected behaviour ensure that { when { - the IUT entity isTriggeredToSend a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS1 - ; - ; + the IUT entity receives a CA message containing + StationID indicating value PX_STATIONID, + Speed indicating value PX_IMPLAUSIBLE_SPEED_1 ; from the TEST_SYSTEM entity } then { - the IUT entity sends a message of type_ EtsiTs103097Data-SignedAndEncrypted containing - protocolVersion indicating value 3, - content containing - encryptedData containing - recipients containing, - recipientInfo containing - certRecipInfo containing - recipientId indicating value CERT_MA_HASGEDID8, - encKey indicationg value MBR_ENC_KEY - ; - ; - ; - cyphertext containing - EtsiTs103097Data-Signed containing - content.signedData containing - hashId indicating value HASH_ALGORITHM - ; - signer containing - digest indicating value CERT_AT_HASHEDID8 - ; - tbsData containing - payload containing - EtsiTs102941Data containing - v2xPduEvidence containing - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS1 - ; - ; + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, + obs indicating value NULL ; ; - headerInfo containing - psid indicatingvalue MBR_PSID, - generationTime + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus indicating value GN_PACKET, + certificate indicating value omit, + subjectPduIndex indicating value 0 ; ; - signature indicating value Signature - ; + ;, + nonV2xPduEvidence indicating value empty ; ; ; @@ -443,87 +526,123 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEC_MB_REPORT_001 + } // End of TP_MBR_ITSS_DETECT_MB_REPORT_001 - } // End of Group "security_mb_report" + } // End of Group "detect_misbehvior_messages" + + Group "security_mb_report" { - Group "forwarding_misbehvior_messages" { - import all from its_mbr_commons; Test Purpose { - TP Id TP_MBR_ITSS_FORWARDING_MB_REPORT_001 + TP Id TP_MBR_ITSS_SEC_MB_REPORT_001 Test objective - "Check that the IUT forwards a received MB report." + "Check that the IUT generates an encrypted MBR message." Reference - "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" + "ETSI TS 103 759 [3], Clauses 7.1" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MBR_01 - PICS Selection PICS_IUT_RSU + PICS Selection PICS_IUT_ITS_S Initial conditions with { - the IUT entity being_in the initial_state + the IUT entity being_in the initial_state and + the IUT isAuthorizedWith PX_CERT_IUT_A_AT } Expected behaviour ensure that { when { - the IUT entity received a MbrMessage - from the ITS_S entity + the IUT entity is triggered to send a MB report + from the TEST_SYSTEM entity } then { - the IUT entity forwards the MbrMessage + the IUT entity sends a message EtsiTs103097Data_SignedAndEncrypted containing + protocolVersion indicating value 3, + content containing + encryptedData containing + recipients containing + recipientInfo containing + certRecipInfo containing + recipientId indicating value CERT_MA_HASGEDID8, + encKey indicating value MBR_ENC_KEY + ; + ; + ;, + cyphertext containing + EtsiTs103097Data_Signed containing + signedData containing + hashId indicating value HASH_ALGORITHM + ;, + signer containing + digest indicating value CERT_AT_HASHEDID8 + ;, + tbsData containing + payload corresponding to EtsiTs102941Data, + headerInfo containing + psid indicating value PX_MBR_PSID, + generationTime corresponding to Time64 + ; + ;, + signature indicating value Signature + ; + ; + ; + ; + ; to the MA entity } } - } // End of TP_MBR_ITSS_FORWARDING_MB_REPORT_001 - - } // End of Group "detect_misbehvior_messages" - - Group "detect_misbehvior_messages" { - - import all from its_mbr_commons; + } // End of TP_MBR_ITSS_SEC_MB_REPORT_001 Test Purpose { - TP Id TP_MBR_ITSS_DETECT_MB_REPORT_001 + TP Id TP_MBR_ITSS_SEC_MB_REPORT_002 Test objective - "Check that the IUT generates a MB report when receiving non coherent CAM/DENM messages from the same StationID." + "Check that the IUT provides the certificate when the invalid secured geonetworking packet does not contain the AT certificate." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" - Config Id CFG_ITS_MBR_01_01 + Config Id CFG_ITS_MBR_01 - PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED Initial conditions with { - the IUT entity being_in the initial_state and, - the IUT is configured to trigger a MbrMessage after PX_SUBJECT_PDU_INDEX class1 CA message + the IUT entity being_in the initial_state } Expected behaviour ensure that { when { - the IUT entity received PX_SUBJECT_PDU_INDEX CA message containing - StationID indicating value PX_STATIONID, - Position indicating value PX_IMPLAUSIBLE_POSITION_1 - ; + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET containing + digest indicating value DIGEST_CERT_IUT_A_AT; } then { - the IUT entity sends a MbrMessage containing - v2xPduEvidence containing - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations containing - CA message containing - StationID indicating value PX_STATIONID, - Position indicating value PX_IMPLAUSIBLE_POSITION_1 - ; + the IUT entity sends a EtsiTs103759Data containing + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content containing + observations, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus indicating value SEC_GN_PACKET, + certificate indicating value CERT_IUT_A_AT, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty ; ; ; @@ -531,8 +650,8 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_DETECT_MB_REPORT_001 + } // End of TP_MBR_ITSS_SEC_MB_REPORT_002 - } // End of Group "detect_misbehvior_messages" + } // End of Group "security_mb_report" } // End of Package mbr -- GitLab From fd172c7cdd0cf561c6dbd352e2be0534a9f75578 Mon Sep 17 00:00:00 2001 From: Denis Filatov Date: Wed, 25 Jan 2023 20:11:02 +0100 Subject: [PATCH 16/21] synch devel branch with recent changes in ASN.1 files --- lib/asn1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asn1 b/lib/asn1 index df1c315..3d3ac26 160000 --- a/lib/asn1 +++ b/lib/asn1 @@ -1 +1 @@ -Subproject commit df1c3156b32fa9d1bf45cafe53e990a29bd66af9 +Subproject commit 3d3ac26ae673de0237d277af6f8e056ff69c6435 -- GitLab From 2f77be9ff033946ad302e9fed0a3c141028bd4b9 Mon Sep 17 00:00:00 2001 From: Denis Filatov Date: Fri, 27 Jan 2023 09:06:14 +0100 Subject: [PATCH 17/21] construct asn1 file list dynamically. Check presense. --- lib/module.mk | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/module.mk b/lib/module.mk index b1d31f5..80fdb00 100644 --- a/lib/module.mk +++ b/lib/module.mk @@ -1,21 +1,24 @@ sources := \ LibItsMbr_TypesAndValues.ttcn \ - LibItsMbr_Templates.ttcn \ - asn1/EtsiTs103759.asn \ + LibItsMbr_Templates.ttcn + +ifeq (,$(findstring EtsiTs103759Core.asn,$(all_sources))) +sources += \ + asn1/EtsiTs103759Core.asn \ asn1/EtsiTs103759BaseTypes.asn \ asn1/EtsiTs103759AsrAppAgnostic.asn \ asn1/EtsiTs103759AsrCam.asn \ asn1/EtsiTs103759AsrDenm.asn \ asn1/EtsiTs103759CommonObservations.asn \ asn1/SaeJ3287AsrBsm.asn \ - asn1/ieee1609.2/Ieee1609Dot2.asn \ - asn1/ieee1609.2/Ieee1609Dot2CrlBaseTypes.asn \ - asn1/ieee1609.2/Ieee1609Dot2Crl.asn \ - asn1/ieee1609.2/Ieee1609Dot2BaseTypes.asn \ - asn1/sec_ts103097/EtsiTs103097ExtensionModule.asn \ - asn1/sec_ts103097/EtsiTs103097Module.asn \ +endif + +ifeq (,$(findstring EtsiTs103097Module.asn,$(all_sources))) +sources += asn1/sec_ts103097/EtsiTs103097ExtensionModule.asn \ + asn1/sec_ts103097/EtsiTs103097Module.asn +endif -# asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2.asn \ -# asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2BaseTypes.asn \ -# asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2Crl.asn \ -# asn1/sec_ts103097/ieee1609dot2/Ieee1609Dot2CrlBaseTypes.asn +ifeq (,$(findstring Ieee1609Dot2.asn,$(all_sources))) +sources += asn1/ieee1609.2/Ieee1609Dot2.asn \ + asn1/ieee1609.2/Ieee1609Dot2BaseTypes.asn +endif -- GitLab From 53f9a54b2b980b87365c213f582df35cc66f752f Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Mon, 30 Jan 2023 14:46:03 +0100 Subject: [PATCH 18/21] Enhance TPs for Class1 and 2 --- test_purposes/its_mbr_commons.tplan2 | 35 +- test_purposes/itss.tplan2 | 1658 +++++++++++++++++++------- 2 files changed, 1254 insertions(+), 439 deletions(-) diff --git a/test_purposes/its_mbr_commons.tplan2 b/test_purposes/its_mbr_commons.tplan2 index 5bfe373..2deaf8f 100644 --- a/test_purposes/its_mbr_commons.tplan2 +++ b/test_purposes/its_mbr_commons.tplan2 @@ -16,10 +16,15 @@ file and shall not imply any sub-license right. Package its_mbr_commons { Domain { pics: // ETSI TS 103 759 [3], Clause 5 - - PICS_IUT_ITS_S // Is the IUT an ITS-S - - PICS_IUT_RSU // Is the IUT a RSU - - PICS_IUT_MA // Is the IUT an Misbehavior Authority - - PICS_DETECTOR_CAM_SPEED // CAM Speed misbehavior detector is supported + - PICS_IUT_ITS_S // Is the IUT an ITS-S + - PICS_IUT_RSU // Is the IUT a RSU + - PICS_IUT_MA // Is the IUT an Misbehavior Authority + - PICS_SHORT_RANGE // Short range transport mode is used (G5/LTE) + - PICS_DETECTOR_CAM_SPEED // CAM Speed misbehavior detector is supported + - PICS_DETECTOR_CAM_POSITION // CAM Position misbehavior detector is supported + - PICS_DETECTOR_CAM_ACC + - PICS_DETECTOR_CAM_STATIC + - PICS_DETECTOR_CAM_SECURITY ; // constant: // - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations @@ -73,6 +78,9 @@ Package its_mbr_commons { // - PX_STATION_ID // - SEC_GN_PACKET_CERT // Secured geonetworking packet containing CA/DEM message and certificate (signer certificate) // - SEC_GN_PACKET // Secured geonetworking packet containing CA/DEM message without certificate (digest) +// - PX_SPEED_1: Normal speed (e.g. 90 km/h) +// - PX_SPEED_2: Abnormal speed (e.g. 320 km/h) +// - PX_SPEED_3: Abnormal speed (e.g. 350 km/h) // } Data { @@ -81,6 +89,8 @@ Package its_mbr_commons { type Octetstring; type Time64; type ThreeDLocation; + type GeoNetworking; + type EtsiTs102941Data; type EtsiTs103759Data; // Misbehavior Reporting message. See ETSI TS 103 759 type AidSpecificReport; type AsrCam; @@ -91,17 +101,24 @@ Package its_mbr_commons { } // End of 'Data' statement Configuration { - Interface Type defaultGT accepts EtsiTs103759Data; - Component Type ItsComponent with gate g of type defaultGT; - Component Type ItsHttpComponent with gate g of type defaultGT; + Interface Type defaultGN accepts GeoNetworking; + Interface Type defaultDATA accepts EtsiTs103759Data; + Component Type ItsComponent with gate g of type defaultGN; + Component Type ItsHttpComponent with gate g of type defaultDATA; - Test Configuration CFG_ITS_MBR_01 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements\ + Test Configuration CFG_ITS_MBR_01 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Long Range + containing + Tester component MA of type ItsHttpComponent + SUT component IUT of type ItsHttpComponent + connection between MA.g and IUT.g; + + Test Configuration CFG_ITS_MBR_02 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Short Range containing Tester component MA of type ItsComponent SUT component IUT of type ItsComponent connection between MA.g and IUT.g; - Test Configuration CFG_ITS_MBR_02 + Test Configuration CFG_ITS_MBR_03 containing Tester component MA of type ItsHttpComponent Tester component ITS_S of type ItsComponent diff --git a/test_purposes/itss.tplan2 b/test_purposes/itss.tplan2 index 9b70b3d..7e2e19b 100644 --- a/test_purposes/itss.tplan2 +++ b/test_purposes/itss.tplan2 @@ -15,26 +15,27 @@ file and shall not imply any sub-license right. Package mbr { - Group "send_mb_report" { + Group "security_mb_report" { import all from its_mbr_commons; Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_001 + TP Id TP_MBR_ITSS_SEC_001 Test objective - "Check that the IUT generates a MB report when requested." + "Check that the IUT generates an encrypted MBR message." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + "ETSI TS 103 759 [3], Clauses 7.1" - Config Id CFG_ITS_MBR_01 + Config Id CFG_ITS_MBR_02 PICS Selection PICS_IUT_ITS_S Initial conditions with { - the IUT entity being_in the initial_state + the IUT entity being_in the initial_state and + the IUT isAuthorizedWith PX_CERT_IUT_A_AT } Expected behaviour @@ -43,376 +44,998 @@ Package mbr { the IUT entity is triggered to send a MB report from the TEST_SYSTEM entity } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report corresponding to AidSpecificReport + the IUT entity sends a message EtsiTs103097Data_SignedAndEncrypted containing + protocolVersion indicating value 3, + content containing + encryptedData containing + recipients containing + recipientInfo containing + certRecipInfo containing + recipientId indicating value CERT_MA_HASGEDID8 + ; + ; + ;, + cyphertext containing + EtsiTs103097Data_Signed containing + signedData containing + hashId indicating value HASH_ALGORITHM + ;, + signer containing + digest indicating value CERT_AT_HASHEDID8 + ;, + tbsData containing + payload corresponding to EtsiTs103759Data, + payload containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report corresponding to AidSpecificReport + ;, + headerInfo containing + psid indicating value PX_MBR_PSID, + generationTime corresponding to Time64 + ; + ;, + signature indicating value Signature + ; + ; + ; + ; ; to the MA entity } } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_001 + } // End of TP_MBR_ITSS_SEC_001 - Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_002 + } // End of Group "security_mb_report" - Test objective - "Check that the IUT generates an invalid speed value in CAM MB report when requested (Class 1)." + Group "send_mb_report" { + + Group "Class1" { - Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + import all from its_mbr_commons; - Config Id CFG_ITS_MBR_01 + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS1_001 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + Test objective + "Check that the IUT generates an invalid speed value in CAM MB report when requested (Class 1) - obs-Speed-ValueTooLarge-VehicleType." - Initial conditions - with { - the IUT entity being_in the initial_state - } + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a Misbehavior Report containing - targetId indicating value c_CamTgt_SpeedCommon, - cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; // Le TS envoie le PDU CAM with Certificate avec l'erreur Speed par l'accces layer - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Speed indicating value PX_INVALID_SPEED; - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value AID_CAM, - content corresponding to AsrCam, + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; + from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 corresponding to MbSingleObservation, + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing item0 containing - obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, - obs indicating value NULL + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus indicating value SEC_GN_PACKET_CERT, + certificate indicating value omit, + subjectPduIndex indicating value 0 ; ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + ;, + nonV2xPduEvidence indicating value empty + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_CLASS1_001 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS1_002 + + Test objective + "Check that the IUT provides the certificate when the invalid secured geonetworking packet does not contain the AT certificate." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; + from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET containing + digest indicating value DIGEST_CERT_IUT_A_AT; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content containing + observations, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus indicating value SEC_GN_PACKET, + certificate indicating value CERT_IUT_A_AT, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_CLASS1_002 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS1_003 + + Test objective + "Check that the IUT generates an invalid speed value in CAM MB report when requested (Class 1) - obs-Speed-ValueTooLarge-DriveDirectionReverse." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers; + from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED_DRIVE_DIRECTION;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - v2xPdus indicating value SEC_GN_PACKET_CERT, - certificate indicating value omit, - subjectPduIndex indicating value 0 + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers, + obs indicating value NULL + ; + ; ; - ; - ;, - nonV2xPduEvidence indicating value empty + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus indicating value SEC_GN_PACKET_CERT, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_002 + } // End of TP_MBR_ITSS_SEND_CLASS1_003 - Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_003 + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS1_004 - Test objective - "Check that the IUT generates some invalid static changes in CAM MB report when requested (Class 2)." + Test objective + "Check that the IUT generates an invalid acceleration changed value in CAM MB report when requested (Class 1) - obs-LongAcc-ValueTooLarge." - Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_01 + Config Id CFG_ITS_MBR_02 - PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_ACC - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MB report containing - report containing - aid indicating value AsrCam, - content containing - aid indicating value AID_CAM, - content containing // TemplateAsr - observations containing // ObservationsByTargetSequence - tgtId indicating value speed, - observations containing // ObservationsByTarget + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_LongAccCommon, + cause indicating value c_ObsLongAcc_ValueTooLarge; + from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Acc indicating value PX_INVALID_ACC_VALUE;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing item0 containing - SetMbObsTgtsCam indicating value MbObsCamStatic, - SetMbEvCam // ??? - ;, - item1 containing - SetMbObsTgtsCam indicating value SetMbObsEtsiOnlySpeed, - SetMbEvCam // ??? + tgtId indicating value c_CamTgt_LongAccCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsLongAcc_ValueTooLarge, + obs indicating value NULL + ; + ; ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX - ; - ;, - nonV2xPduEvidence indicating value empty + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus indicating value SEC_GN_PACKET_CERT, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid corresponding to Psid, - content containing - v2xPduEvidence containing - type_ indicating value TODO, - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS2 - ;, - certificate indicating value TODO + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_CLASS1_004 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS1_005 + + Test objective + "Check that the IUT generates an wrong HeaderInfo.Psid value in CAM MB report when requested (Class 1) - obs-Security-MessageIdIncWithHeaderInfo." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_MessageIdIncWithHeaderInfo; + from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + Psip indicating value PX_AID_DENM;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSecurity_MessageIdIncWithHeaderInfo, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus indicating value SEC_GN_PACKET_CERT, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_003 + } // End of TP_MBR_ITSS_SEND_CLASS1_005 - Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_004 + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS1_006_01 - Test objective - "Check that the IUT generates a MB report when requested (Class 3)." + Test objective + "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." - Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_01 + Config Id CFG_ITS_MBR_02 - PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MB report containing - report containing - aid corresponding to Psid, - content containing - aid corresponding to Psid, + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; + from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + not Psip;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, content containing - observations containing - tgtId corresponding to C_OBS_PDU_ID, - observations indicating value TODO - ;, - v2xPduEvidence containing - type_ indicating value TODO, - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value PX_MBR_OBSERVATIONS_CLASS3 + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSecurity_HeaderIncWithSecurityProfile, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus indicating value SEC_GN_PACKET_CERT, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty ; ; ; ; - ; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid corresponding to Psid, - content containing - v2xPduEvidence containing - type_ indicating value TODO, - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS3 - ;, - certificate indicating value TODO - ;, - nonV2xPduEvidence containing - id indicating value TODO, - evidence indicating value TODO + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_CLASS1_006_01 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS1_006_02 + + Test objective + "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; + from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + not GenerationTime;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSecurity_HeaderIncWithSecurityProfile, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus indicating value SEC_GN_PACKET_CERT, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_004 + } // End of TP_MBR_ITSS_SEND_CLASS1_006_02 - Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_005 + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS1_006_03 - Test objective - "Check that the IUT generates a MB report when requested (Class 4)." + Test objective + "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." - Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_01 + Config Id CFG_ITS_MBR_02 - PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MB report containing - report containing - aid corresponding to Psid, - content containing - aid corresponding to Psid, + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; + from the TEST_SYSTEM entity + and the IUT entity receives a SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + DEN message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + not GenerationLocation;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, content containing - observations containing - tgtId corresponding to C_OBS_PDU_ID, - observations indicating value TODO - ;, - v2xPduEvidence containing - type_ indicating value TODO, - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value PX_MBR_OBSERVATIONS_CLASS4 + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSecurity_HeaderIncWithSecurityProfile, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus indicating value SEC_GN_PACKET_CERT, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty ; ; ; ; - ; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid corresponding to Psid, - content containing - v2xPduEvidence containing - type_ indicating value TODO, - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS4 - ;, - certificate indicating value TODO + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_CLASS1_006_03 + + } // End of Group "Class1" + + Group "Class2" { + + import all from its_mbr_commons; + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS2_001 + + Test objective + "Check that the IUT generates an invalid speed changed value in consecutive CAMs MB report when requested (Class 2) - obs-Speed-ChangeTooLarge." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ChangeTooLarge; + from the TEST_SYSTEM entity + and the IUT entity receives several SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED_CHANGE;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSpeed_ChangeTooLarge, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 indicating value SEC_GN_PACKET_CERT_0, + PDUN indicating value SEC_GN_PACKET_CERT_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; ; -// nonV2xPduEvidence containing -// id indicating value TODO, -// evidence indicating value TODO -// ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_005 + } // End of TP_MBR_ITSS_SEND_CLASS2_001 - Test Purpose { - TP Id TP_MBR_ITSS_SEND_MB_REPORT_006 + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS2_002 - Test objective - "Check that the IUT generates a MB report when requested (Class 5)." + Test objective + "Check that the IUT generates an invalid position changed value in consecutive CAMs MB report when requested (Class 2) - obs-Position-ChangeTooLarge." - Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_01 + Config Id CFG_ITS_MBR_02 - PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MB report containing - report containing - aid corresponding to Psid, - content containing - aid corresponding to Psid, + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge; + from the TEST_SYSTEM entity + and the IUT entity receives several SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Position indicating value PX_INVALID_POSITION_CHANGE;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, content containing - observations containing - tgtId corresponding to C_OBS_PDU_ID, - observations indicating value TODO - ;, - v2xPduEvidence containing - type_ indicating value TODO, - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value PX_MBR_OBSERVATIONS_CLASS5 + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 indicating value SEC_GN_PACKET_CERT_0, + PDUN indicating value SEC_GN_PACKET_CERT_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; + ; + ;, + nonV2xPduEvidence indicating value empty ; ; ; ; - ; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid corresponding to Psid, - content containing - v2xPduEvidence containing - type_ indicating value TODO, - v2xPdus containing - subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX, - observations indicating value MBR_OBSERVATIONS_CLASS5 - ;, - certificate indicating value TODO - ;, - nonV2xPduEvidence containing - id indicating value TODO, - evidence indicating value TODO + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_CLASS2_002 + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_CLASS2_003 + + Test objective + "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change\; + from the TEST_SYSTEM entity + and the IUT entity receives several SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 indicating value SEC_GN_PACKET_CERT_0, + PDUN indicating value SEC_GN_PACKET_CERT_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MBR_ITSS_SEND_MB_REPORT_006 + } // End of TP_MBR_ITSS_SEND_CLASS2_003 + + } // End of Group "Class2" + + Group "MultipleClasses" { + + import all from its_mbr_commons; + + Test Purpose { + TP Id TP_MBR_ITSS_SEND_001 + + Test objective + "Check that the IUT generates an invalid speed and position changed values in consecutive CAMs MB report when requested (both Class1, Class 2)." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED and PICS_DETECTOR_CAM_POSITION and PICS_DETECTOR_CAM_ACC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a Misbehavior Report containing + item0 containing + targetId indicating value c_CamTgt_SpeedCommon, // Class2 + cause indicating value c_ObsSpeed_ChangeTooLarge;, + item1 containing + targetId indicating value c_CamTgt_PositionCommon, // Class2 + cause indicating value c_ObsPosition_ChangeTooLarge;, + item2 containing + targetId indicating value c_CamTgt_LongAccCommon, // Class1 + cause indicating value c_ObsLongAcc_ValueTooLarge; + ; + from the TEST_SYSTEM entity + and the IUT entity receives several SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED_CHANGE, + Position indicating value PX_INVALID_POSITION_CHANGE;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSpeed_ChangeTooLarge, + obs indicating value NULL + ; + ;, + item1 containing + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL + ; + ; + ;, + item2 containing + tgtId indicating value c_CamTgt_LongAccCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsLongAcc_ValueTooLarge, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 indicating value SEC_GN_PACKET_CERT_0, + PDUN indicating value SEC_GN_PACKET_CERT_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_SEND_001 + + } // End of Group "MultipleClasses" } // End of Group "send_mb_report" @@ -421,7 +1044,7 @@ Package mbr { import all from its_mbr_commons; Test Purpose { - TP Id TP_MBR_ITSS_FORWARDING_MB_REPORT_001 + TP Id TP_MBR_RSU_FORWARDING_001 Test objective "Check that the IUT forwards a received MB report." @@ -429,9 +1052,9 @@ Package mbr { Reference "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MBR_03 - PICS Selection PICS_IUT_RSU + PICS Selection PICS_IUT_RSU and PICS_SHORT_RANGE Initial conditions with { @@ -448,26 +1071,26 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_FORWARDING_MB_REPORT_001 + } // End of TP_MBR_RSU_FORWARDING_001 - } // End of Group "detect_misbehvior_messages" + } // End of Group "forwarding_misbehvior_messages" + + Group "short_range_transport" { - Group "detect_misbehvior_messages" { - import all from its_mbr_commons; Test Purpose { - TP Id TP_MBR_ITSS_DETECT_MB_REPORT_001 + TP Id TP_MBR_ITSS_SRT_001 Test objective - "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID." + "Check that MBR message is encapsulated in BTP type B packet." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" Config Id CFG_ITS_MBR_01 - PICS Selection PICS_IUT_ITS_S and PICS_RADIO_G5 + PICS Selection PICS_IUT_ITS and PICS_SHORT_RANGE Initial conditions with { @@ -477,181 +1100,356 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity receives a CA message containing - StationID indicating value PX_STATIONID, - Speed indicating value PX_IMPLAUSIBLE_SPEED_1 - ; - from the TEST_SYSTEM entity + the IUT entity is triggered to send a Misbehavior Report + to the MA entity } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - report containing - aid indicating value AsrCam, - content containing - aid indicating value AID_CAM, - content corresponding to AsrCam, - content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - v2xPdus indicating value GN_PACKET, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; + the IUT entity sends a GeoNetorking packet containing + BTP_B packet ; to the MA entity } } - } // End of TP_MBR_ITSS_DETECT_MB_REPORT_001 - - } // End of Group "detect_misbehvior_messages" - - Group "security_mb_report" { - - import all from its_mbr_commons; + } // End of TP_MBR_ITSS_SRT_001 Test Purpose { - TP Id TP_MBR_ITSS_SEC_MB_REPORT_001 + TP Id TP_MBR_ITSS_SRT_002 Test objective - "Check that the IUT generates an encrypted MBR message." + "Check that MBR message is encapsulated in SHB packet." Reference - "ETSI TS 103 759 [3], Clauses 7.1" + "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" Config Id CFG_ITS_MBR_01 - PICS Selection PICS_IUT_ITS_S + PICS Selection PICS_IUT_ITS and PICS_SHORT_RANGE Initial conditions with { - the IUT entity being_in the initial_state and - the IUT isAuthorizedWith PX_CERT_IUT_A_AT + the IUT entity being_in the initial_state } Expected behaviour ensure that { when { - the IUT entity is triggered to send a MB report - from the TEST_SYSTEM entity + the IUT entity is triggered to send a Misbehavior Report + to the MA entity } then { - the IUT entity sends a message EtsiTs103097Data_SignedAndEncrypted containing - protocolVersion indicating value 3, - content containing - encryptedData containing - recipients containing - recipientInfo containing - certRecipInfo containing - recipientId indicating value CERT_MA_HASGEDID8, - encKey indicating value MBR_ENC_KEY - ; + the IUT entity sends a SHB GeoNetorking packet + to the MA entity + } + } + } // End of TP_MBR_ITSS_SRT_002 + + } // End of Group "short_range_transport" + + Group "detect_misbehvior_messages" { + + Group "Class1" { + + import all from its_mbr_commons; + + Test Purpose { + TP Id TP_MBR_ITSS_DETECT_CLASS1_001 + + Test objective + "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ValueTooLarge-VehicleType." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a CA message containing + StationID indicating value PX_STATIONID, + Speed indicating value PX_IMPLAUSIBLE_SPEED_1; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, + obs indicating value NULL + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus indicating value GN_PACKET, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty ; - ;, - cyphertext containing - EtsiTs103097Data_Signed containing - signedData containing - hashId indicating value HASH_ALGORITHM + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_DETECT_CLASS1_001 + + Test Purpose { + TP Id TP_MBR_ITSS_DETECT_CLASS1_002 + + Test objective + "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ValueTooLarge-VehicleType-DriveDirectionRevers." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a CA message containing + StationID indicating value PX_STATIONID, + Speed indicating value PX_IMPLAUSIBLE_SPEED_1; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers, + obs indicating value NULL + ; + ; + ; ;, - signer containing - digest indicating value CERT_AT_HASHEDID8 + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus indicating value GN_PACKET, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; ;, - tbsData containing - payload corresponding to EtsiTs102941Data, - headerInfo containing - psid indicating value PX_MBR_PSID, - generationTime corresponding to Time64 + nonV2xPduEvidence indicating value empty + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MBR_ITSS_DETECT_CLASS1_002 + + Test Purpose { + TP Id TP_MBR_ITSS_DETECT_CLASS1_003 + + Test objective + "Check that the IUT generates a MB report when receiving CA messages with invalid acceleration from the same StationID - obs-LongAcc-ValueTooLarge." + + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_ACC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a CA message containing + StationID indicating value PX_STATIONID, + Acc indicating value PX_INVALID_ACC_VALUE; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_LongAccCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsLongAcc_ValueTooLarge, + obs indicating value NULL + ; + ; ; ;, - signature indicating value Signature + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus indicating value GN_PACKET, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; + ; + ;, + nonV2xPduEvidence indicating value empty ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MBR_ITSS_SEC_MB_REPORT_001 + } // End of TP_MBR_ITSS_DETECT_CLASS1_003 - Test Purpose { - TP Id TP_MBR_ITSS_SEC_MB_REPORT_002 + } // End of Group "detect_misbehvior_messages" - Test objective - "Check that the IUT provides the certificate when the invalid secured geonetworking packet does not contain the AT certificate." + } // End of Group "Class1" - Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2 and Clause 7.2" + Group "Class2" { - Config Id CFG_ITS_MBR_01 + import all from its_mbr_commons; - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + Test Purpose { + TP Id TP_MBR_ITSS_DETECT_CLASS2_001 - Initial conditions - with { - the IUT entity being_in the initial_state - } + Test objective + "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ChangeTooLarge." - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a Misbehavior Report containing - targetId indicating value c_CamTgt_SpeedCommon, - cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET containing - digest indicating value DIGEST_CERT_IUT_A_AT; - } then { - the IUT entity sends a EtsiTs103759Data containing - report containing - aid indicating value AsrCam, - content containing - aid indicating value AID_CAM, + Reference + "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + + Config Id CFG_ITS_MBR_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a CA_0 message containing + StationID indicating value PX_STATIONID, + Speed indicating value PX_SPEED_1; + from the TEST_SYSTEM entity + and the IUT entity receives a CA_1 message containing + StationID indicating value PX_STATIONID, + Speed indicating value PX_SPEED_2; + from the TEST_SYSTEM entity + and the IUT entity receives a CA_2 message containing + StationID indicating value PX_STATIONID, + Speed indicating value PX_SPEED_3; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 1, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, content containing - observations, - v2xPduEvidence containing - V2xPduStream containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus indicating value SEC_GN_PACKET, - certificate indicating value CERT_IUT_A_AT, - subjectPduIndex indicating value 0 + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 containing + obsId indicating value c_ObsSpeed_ChangeTooLarge, + obs indicating value NULL + ;, + item1 containing + obsId indicating value c_ObsSpeed_ChangeTooLarge, + obs indicating value NULL + ; + ; ; - ; - ;, - nonV2xPduEvidence indicating value empty + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus containing + PDU0 indicating value GN_PACKET_1, + PDU1 indicating value GN_PACKET_2;, + certificate indicating value omit, + subjectPduIndex indicating value 2 + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MBR_ITSS_SEC_MB_REPORT_002 + } // End of TP_MBR_ITSS_DETECT_CLASS2_001 - } // End of Group "security_mb_report" + } // End of Group "Class2" } // End of Package mbr -- GitLab From b04c8b20b0c69d6110f56ca3a410f09f01a593d3 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Thu, 9 Feb 2023 08:16:34 +0100 Subject: [PATCH 19/21] Add comments from Brigitte --- test_purposes/References.txt | 13 +- test_purposes/its_mbr_commons.tplan2 | 131 ------ test_purposes/itss.tplan2 | 635 ++++++++++++++++++++------- 3 files changed, 486 insertions(+), 293 deletions(-) delete mode 100644 test_purposes/its_mbr_commons.tplan2 diff --git a/test_purposes/References.txt b/test_purposes/References.txt index e0ffd36..ed3507d 100644 --- a/test_purposes/References.txt +++ b/test_purposes/References.txt @@ -1,4 +1,9 @@ -[1] ETSI TS 102 940: "Intelligent Transport Systems (ITS); Security; ITS communications security architecture and security management; Release 2". -[2] ETSI EN 302 665: "Intelligent Transport Systems (ITS); Communications Architecture". -[3] ETSI TS 102 941: "Intelligent Transport Systems (ITS); Security; Trust and Privacy Management". -[4] ETSI TS 103 759: "Intelligent Transport Systems (ITS); Security; Misbehaviour Reporting service". +[1] ETSI TS 1032 759 (V2.1.1): " Intelligent Transport Systems (ITS); Security; Misbehaviour Reporting service; Release 2". +[2] ETSI TS 103 097 (V21.14.1): "Intelligent Transport Systems (ITS); Security; Security header and certificate formats". +[3] IEEE Std 1609.2™-2016: "IEEE Standard for Wireless Access in Vehicular Environments -Security Services for Applications and Management Messages", as amended by IEEE Std 1609.2a™-2017: "IEEE Standard for Wireless Access In Vehicular Environments - Security Services for Applications and Management Messages Amendment 1". +[4] ETSI TS 103 868-1 (V2.11.2.12): "Intelligent Transport Systems (ITS); Testing; Conformance test specifications for ITS MBR management; Part 1: Protocol Implementation Conformance Statement (PICS)". . +[5] ETSI TS 103 096-2 (V1.5.2): "Intelligent Transport Systems (ITS); Testing; Conformance test specifications for ITS Security; Part 2: Test Suite Structure and Test Purposes (TSS & TP)". +[6] ETSI TS 103 601 (V1.1.1): "Intelligent Transport Systems (ITS); Security; Security management messages communication requirements and distribution protocols". +[7] Certificate Policy for Deployment and Operation of European Cooperative Intelligent Transport Systems (C-ITS) v1.1. +[8] Certificate Policy for Deployment and Operation of European Cooperative Intelligent Transport Systems (C-ITS) v1.1. + diff --git a/test_purposes/its_mbr_commons.tplan2 b/test_purposes/its_mbr_commons.tplan2 deleted file mode 100644 index 2deaf8f..0000000 --- a/test_purposes/its_mbr_commons.tplan2 +++ /dev/null @@ -1,131 +0,0 @@ -/* -Copyright (c) ETSI 2022. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use. This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package its_mbr_commons { - Domain { - pics: // ETSI TS 103 759 [3], Clause 5 - - PICS_IUT_ITS_S // Is the IUT an ITS-S - - PICS_IUT_RSU // Is the IUT a RSU - - PICS_IUT_MA // Is the IUT an Misbehavior Authority - - PICS_SHORT_RANGE // Short range transport mode is used (G5/LTE) - - PICS_DETECTOR_CAM_SPEED // CAM Speed misbehavior detector is supported - - PICS_DETECTOR_CAM_POSITION // CAM Position misbehavior detector is supported - - PICS_DETECTOR_CAM_ACC - - PICS_DETECTOR_CAM_STATIC - - PICS_DETECTOR_CAM_SECURITY - ; -// constant: -// - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations -// - PX_IMPLAUSIBLE_POSITION_1 // Invalid position in CA message (e.g. wrong latitude) -// - TODO // PIXIT to be defined -// ; - entities: - - IUT // Implementation Under Test - - ITS_S // Onboard Unit - - RSU // Road Side Unit - - MA // Misbehavior Authority - - TEST_SYSTEM // Test System entity -// - MBR_OBSERVATIONS_CLASS1 -// // A set of observations of class1 (Implausible values within the incoming message) -// - MBR_OBSERVATIONS_CLASS2 -// // A set of observations of class2 (Inconsistencies of the incoming message with previous messages of the same type emitted from the same station) -// - MBR_OBSERVATIONS_CLASS3 -// // A set of observations of class3 (Inconsistencies of the incoming message with the knowledge of the local environment of the ego vehicle) -// - MBR_OBSERVATIONS_CLASS4 -// // A set of observations of class4 (Inconsistencies of the incoming message with the on-board sensors’ perception) -// - MBR_OBSERVATIONS_CLASS5 -// // A set of observations of class5 (Inconsistencies of the incoming message with previous messages of other types from the same station or with messages (of the same type or not) emitted by other stations) -// - AID_MBR // AID of MBR Service -// - CERT_IUT_A_AT // Default IUT AT certificate -// - CERT_MA // Defaut MA certificate -// - CERT_MA_HASHEDID8 -// // Hashed Id 8 of the CERT_MA -// - MBR_ENC_KEY // TODO -// - MBR_GEN_TIME // The time the MBR messsage is generated -// - MBR_GEN_LOC // The location of the OBU when the MBR messsage is generated - ; - events: - - connect - - receives - - received - - forwards - - awaits - - sent - - sends - - send - - having - - being_in - - times_out - - isAuthorizedWith - ; - } // End of 'Domain' statement - -// const { -// - PX_CAM_MBR_OBSERVATIONS_CLASS1 // CAM observation -// - AID_CAM // Psid for CAM, 36 -// - PX_STATION_ID -// - SEC_GN_PACKET_CERT // Secured geonetworking packet containing CA/DEM message and certificate (signer certificate) -// - SEC_GN_PACKET // Secured geonetworking packet containing CA/DEM message without certificate (digest) -// - PX_SPEED_1: Normal speed (e.g. 90 km/h) -// - PX_SPEED_2: Abnormal speed (e.g. 320 km/h) -// - PX_SPEED_3: Abnormal speed (e.g. 350 km/h) -// } - - Data { - type Int16; - type Charstring; - type Octetstring; - type Time64; - type ThreeDLocation; - type GeoNetworking; - type EtsiTs102941Data; - type EtsiTs103759Data; // Misbehavior Reporting message. See ETSI TS 103 759 - type AidSpecificReport; - type AsrCam; - type CamObservationsByTarget; - type MbSingleObservation; - type ObsPduEtsiGn; - type Psid; - } // End of 'Data' statement - - Configuration { - Interface Type defaultGN accepts GeoNetworking; - Interface Type defaultDATA accepts EtsiTs103759Data; - Component Type ItsComponent with gate g of type defaultGN; - Component Type ItsHttpComponent with gate g of type defaultDATA; - - Test Configuration CFG_ITS_MBR_01 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Long Range - containing - Tester component MA of type ItsHttpComponent - SUT component IUT of type ItsHttpComponent - connection between MA.g and IUT.g; - - Test Configuration CFG_ITS_MBR_02 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Short Range - containing - Tester component MA of type ItsComponent - SUT component IUT of type ItsComponent - connection between MA.g and IUT.g; - - Test Configuration CFG_ITS_MBR_03 - containing - Tester component MA of type ItsHttpComponent - Tester component ITS_S of type ItsComponent - SUT component IUT of type ItsHttpComponent - connection between MA.g and IUT.g - connection between ITS_S.g and IUT.g; - - } // End of 'Configuration' statement - -} // End of Package its_mbr_commons diff --git a/test_purposes/itss.tplan2 b/test_purposes/itss.tplan2 index 7e2e19b..88579e7 100644 --- a/test_purposes/itss.tplan2 +++ b/test_purposes/itss.tplan2 @@ -13,22 +13,22 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package mbr { +Package mrs { Group "security_mb_report" { - import all from its_mbr_commons; + import all from its_mrs_commons; Test Purpose { - TP Id TP_MBR_ITSS_SEC_001 + TP Id TP_MRS_ITSS_SEC_001 Test objective "Check that the IUT generates an encrypted MBR message." Reference - "ETSI TS 103 759 [3], Clauses 7.1" + "ETSI TS 103 759 [1], Clauses 7.1" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S @@ -51,7 +51,7 @@ Package mbr { recipients containing recipientInfo containing certRecipInfo containing - recipientId indicating value CERT_MA_HASGEDID8 + recipientId indicating value CERT_MA_HASHEDID8 ; ; ;, @@ -66,13 +66,13 @@ Package mbr { tbsData containing payload corresponding to EtsiTs103759Data, payload containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report corresponding to AidSpecificReport ;, headerInfo containing - psid indicating value PX_MBR_PSID, + psid indicating value PX_MRS_PSID, generationTime corresponding to Time64 ; ;, @@ -85,7 +85,7 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEC_001 + } // End of TP_MRS_ITSS_SEC_001 } // End of Group "security_mb_report" @@ -93,18 +93,18 @@ Package mbr { Group "Class1" { - import all from its_mbr_commons; + import all from its_mrs_commons; Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS1_001 + TP Id TP_MRS_ITSS_SEND_CLASS1_001 Test objective - "Check that the IUT generates an invalid speed value in CAM MB report when requested (Class 1) - obs-Speed-ValueTooLarge-VehicleType." + "Check that the IUT generates an invalid speed value observation on a CAM in the MR message when requested (Class 1) - obs-Speed-ValueTooLarge-VehicleType." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED @@ -116,7 +116,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SpeedCommon, cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; from the TEST_SYSTEM entity @@ -128,13 +128,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing - aid indicating value AsrCam, + aid indicating value c_AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -169,18 +169,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS1_001 + } // End of TP_MRS_ITSS_SEND_CLASS1_001 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS1_002 + TP Id TP_MRS_ITSS_SEND_CLASS1_002 Test objective - "Check that the IUT provides the certificate when the invalid secured geonetworking packet does not contain the AT certificate." + "Check that the IUT provides the certificate of the reported ITS-S when the invalid secured geonetworking packet does not contain the AT certificate." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED @@ -192,7 +192,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SpeedCommon, cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; from the TEST_SYSTEM entity @@ -204,7 +204,7 @@ Package mbr { report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content containing observations, v2xPduEvidence containing @@ -225,18 +225,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS1_002 + } // End of TP_MRS_ITSS_SEND_CLASS1_002 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS1_003 + TP Id TP_MRS_ITSS_SEND_CLASS1_003 Test objective - "Check that the IUT generates an invalid speed value in CAM MB report when requested (Class 1) - obs-Speed-ValueTooLarge-DriveDirectionReverse." + "Check that the IUT generates an invalid speed value in reverse driving on a CAM in the MR message when requested (Class 1) - obs-Speed-ValueTooLarge-DriveDirectionReverse." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED @@ -248,7 +248,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SpeedCommon, cause indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers; from the TEST_SYSTEM entity @@ -260,13 +260,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -301,18 +301,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS1_003 + } // End of TP_MRS_ITSS_SEND_CLASS1_003 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS1_004 + TP Id TP_MRS_ITSS_SEND_CLASS1_004 Test objective - "Check that the IUT generates an invalid acceleration changed value in CAM MB report when requested (Class 1) - obs-LongAcc-ValueTooLarge." + "Check that the IUT generates an invalid acceleration value observation on a CAM in the MR message when requested (Class 1) - obs-LongAcc-ValueTooLarge." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_ACC @@ -324,7 +324,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_LongAccCommon, cause indicating value c_ObsLongAcc_ValueTooLarge; from the TEST_SYSTEM entity @@ -336,13 +336,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -376,18 +376,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS1_004 + } // End of TP_MRS_ITSS_SEND_CLASS1_004 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS1_005 + TP Id TP_MRS_ITSS_SEND_CLASS1_005 Test objective "Check that the IUT generates an wrong HeaderInfo.Psid value in CAM MB report when requested (Class 1) - obs-Security-MessageIdIncWithHeaderInfo." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC @@ -399,7 +399,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SecurityCommon, cause indicating value c_ObsSecurity_MessageIdIncWithHeaderInfo; from the TEST_SYSTEM entity @@ -408,17 +408,17 @@ Package mbr { CA message containing StationID indicating value PX_STATION_ID;, HeaderInfo containing - Psip indicating value PX_AID_DENM;; + Psid indicating value PX_AID_DENM;; from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -452,18 +452,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS1_005 + } // End of TP_MRS_ITSS_SEND_CLASS1_005 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS1_006_01 + TP Id TP_MRS_ITSS_SEND_CLASS1_006_01 Test objective "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC @@ -475,7 +475,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SecurityCommon, cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; from the TEST_SYSTEM entity @@ -484,17 +484,17 @@ Package mbr { CA message containing StationID indicating value PX_STATION_ID;, HeaderInfo containing - not Psip;; + not Psid;; from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -528,18 +528,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS1_006_01 + } // End of TP_MRS_ITSS_SEND_CLASS1_006_01 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS1_006_02 + TP Id TP_MRS_ITSS_SEND_CLASS1_006_02 Test objective "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC @@ -551,7 +551,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SecurityCommon, cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; from the TEST_SYSTEM entity @@ -564,13 +564,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -604,18 +604,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS1_006_02 + } // End of TP_MRS_ITSS_SEND_CLASS1_006_02 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS1_006_03 + TP Id TP_MRS_ITSS_SEND_CLASS1_006_03 Test objective "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC @@ -627,7 +627,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SecurityCommon, cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; from the TEST_SYSTEM entity @@ -640,13 +640,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -680,24 +680,24 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS1_006_03 + } // End of TP_MRS_ITSS_SEND_CLASS1_006_03 } // End of Group "Class1" Group "Class2" { - import all from its_mbr_commons; + import all from its_mrs_commons; Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS2_001 + TP Id TP_MRS_ITSS_SEND_CLASS2_001 Test objective - "Check that the IUT generates an invalid speed changed value in consecutive CAMs MB report when requested (Class 2) - obs-Speed-ChangeTooLarge." + "Check that the IUT generates a MR message with an observation of an invalid speed change in consecutive CAMs when requested (Class 2) - obs-Speed-ChangeTooLarge." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED @@ -709,11 +709,11 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SpeedCommon, cause indicating value c_ObsSpeed_ChangeTooLarge; from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing + and the IUT entity receives several SEC_GN_PACKET_CERT containing // How to explain two successive certificate indicating value CERT_IUT_A_AT, CA message containing StationID indicating value PX_STATION_ID, @@ -721,13 +721,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -764,18 +764,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS2_001 + } // End of TP_MRS_ITSS_SEND_CLASS2_001 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS2_002 + TP Id TP_MRS_ITSS_SEND_CLASS2_002 Test objective "Check that the IUT generates an invalid position changed value in consecutive CAMs MB report when requested (Class 2) - obs-Position-ChangeTooLarge." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION @@ -787,7 +787,7 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_PositionCommon, cause indicating value c_ObsPosition_ChangeTooLarge; from the TEST_SYSTEM entity @@ -799,13 +799,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -842,18 +842,19 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS2_002 + } // End of TP_MRS_ITSS_SEND_CLASS2_002 Test Purpose { - TP Id TP_MBR_ITSS_SEND_CLASS2_003 + TP Id TP_MRS_ITSS_SEND_CLASS2_003_01 Test objective - "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change." + "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: SpecialTransport." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.40" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC @@ -865,25 +866,25 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_StaticCommon, - cause indicating value c_ObsStatic_Change\; + cause indicating value c_ObsStatic_Change; from the TEST_SYSTEM entity and the IUT entity receives several SEC_GN_PACKET_CERT containing certificate indicating value CERT_IUT_A_AT, CA message containing StationID indicating value PX_STATION_ID, - Static indicating value PX_INVALID_STATIC_CHANGE;; + Static indicating value PX_INVALID_STATIC_CHANGE_SPECIALTRANSPORT;; from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -894,7 +895,165 @@ Package mbr { item0 corresponding to MbSingleObservation, item0 containing obsId indicating value c_ObsStatic_Change, - obs indicating value NULL + obs indicating value '0001'B // TODO To be updated + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 indicating value SEC_GN_PACKET_CERT_0, + PDUN indicating value SEC_GN_PACKET_CERT_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MRS_ITSS_SEND_CLASS2_003_01 + + Test Purpose { + TP Id TP_MRS_ITSS_SEND_CLASS2_003_02 + + Test objective + "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: StationType." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.18" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + and the IUT entity receives several SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_STATIONTYPE;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value c_AsrCam, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0010'B // TODO To be updated + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 indicating value SEC_GN_PACKET_CERT_0, + PDUN indicating value SEC_GN_PACKET_CERT_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MRS_ITSS_SEND_CLASS2_003_02 + + Test Purpose { + TP Id TP_MRS_ITSS_SEND_CLASS2_003_03 + + Test objective + "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleLength." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.35" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + and the IUT entity receives several SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLELENGTH;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value c_AsrCam, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0100'B // TODO To be updated ; ; ; @@ -920,24 +1079,185 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_CLASS2_003 + } // End of TP_MRS_ITSS_SEND_CLASS2_003_03 + + Test Purpose { + TP Id TP_MRS_ITSS_SEND_CLASS2_003_04 + + Test objective + "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleRole." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.23" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + and the IUT entity receives several SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLEROLE;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value c_AsrCam, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0100'B // TODO To be updated + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 indicating value SEC_GN_PACKET_CERT_0, + PDUN indicating value SEC_GN_PACKET_CERT_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MRS_ITSS_SEND_CLASS2_003_04 + + Test Purpose { + TP Id TP_MRS_ITSS_SEND_CLASS2_003_05 + + Test objective + "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleWidth." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.36" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state + } + + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + and the IUT entity receives several SEC_GN_PACKET_CERT containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLEWIDTH;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to Time64, + observationLocation corresponding to ThreeDLocation, + report containing + aid indicating value AsrCam, + content containing + aid indicating value c_AsrCam, + content corresponding to AsrCam, + content containing + observations corresponding to CamObservationsByTarget, + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 corresponding to MbSingleObservation, + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0101'B // TODO To be updated + ; + ; + ; + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 indicating value SEC_GN_PACKET_CERT_0, + PDUN indicating value SEC_GN_PACKET_CERT_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; + ; + ;, + nonV2xPduEvidence indicating value empty + ; + ; + ; + ; + to the MA entity + } + } + } // End of TP_MRS_ITSS_SEND_CLASS2_003_05 + + + // TODO Add CAM Beacon Interval } // End of Group "Class2" Group "MultipleClasses" { - import all from its_mbr_commons; + import all from its_mrs_commons; Test Purpose { - TP Id TP_MBR_ITSS_SEND_001 + TP Id TP_MRS_ITSS_SEND_001 Test objective - "Check that the IUT generates an invalid speed and position changed values in consecutive CAMs MB report when requested (both Class1, Class 2)." + "Check that the IUT generates a single MR containing observations of an invalid speed change, an invalid position change and an invalid longitudinal acceleration value in consecutive CAMs when requested (both Class1, Class 2)." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED and PICS_DETECTOR_CAM_POSITION and PICS_DETECTOR_CAM_ACC @@ -949,16 +1269,16 @@ Package mbr { Expected behaviour ensure that { when { - the IUT entity is triggered to send a Misbehavior Report containing + the IUT entity is triggered to send a MR message containing item0 containing - targetId indicating value c_CamTgt_SpeedCommon, // Class2 - cause indicating value c_ObsSpeed_ChangeTooLarge;, + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ChangeTooLarge;, // Class2 observation item1 containing - targetId indicating value c_CamTgt_PositionCommon, // Class2 - cause indicating value c_ObsPosition_ChangeTooLarge;, + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge;, // Class2 observation item2 containing - targetId indicating value c_CamTgt_LongAccCommon, // Class1 - cause indicating value c_ObsLongAcc_ValueTooLarge; + targetId indicating value c_CamTgt_LongAccCommon, + cause indicating value c_ObsLongAcc_ValueTooLarge; // Class1 observation ; from the TEST_SYSTEM entity and the IUT entity receives several SEC_GN_PACKET_CERT containing @@ -970,13 +1290,12 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -1033,7 +1352,7 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SEND_001 + } // End of TP_MRS_ITSS_SEND_001 } // End of Group "MultipleClasses" @@ -1041,18 +1360,18 @@ Package mbr { Group "forwarding_misbehvior_messages" { - import all from its_mbr_commons; + import all from its_mrs_commons; Test Purpose { - TP Id TP_MBR_RSU_FORWARDING_001 + TP Id TP_MRS_RSU_FORWARDING_001 Test objective "Check that the IUT forwards a received MB report." Reference - "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" + "ETSI TS 103 759 [1], Clause 5 and Clause 7.2" - Config Id CFG_ITS_MBR_03 + Config Id CFG_ITS_MRS_03 PICS Selection PICS_IUT_RSU and PICS_SHORT_RANGE @@ -1071,24 +1390,24 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_RSU_FORWARDING_001 + } // End of TP_MRS_RSU_FORWARDING_001 } // End of Group "forwarding_misbehvior_messages" Group "short_range_transport" { - import all from its_mbr_commons; + import all from its_mrs_commons; Test Purpose { - TP Id TP_MBR_ITSS_SRT_001 + TP Id TP_MRS_ITSS_SRT_001 Test objective "Check that MBR message is encapsulated in BTP type B packet." Reference - "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" + "ETSI TS 103 759 [1], Clause 5 and Clause 7.2" - Config Id CFG_ITS_MBR_01 + Config Id CFG_ITS_MRS_01 PICS Selection PICS_IUT_ITS and PICS_SHORT_RANGE @@ -1109,18 +1428,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SRT_001 + } // End of TP_MRS_ITSS_SRT_001 Test Purpose { - TP Id TP_MBR_ITSS_SRT_002 + TP Id TP_MRS_ITSS_SRT_002 Test objective "Check that MBR message is encapsulated in SHB packet." Reference - "ETSI TS 103 759 [3], Clause 5 and Clause 7.2" + "ETSI TS 103 759 [1], Clause 5 and Clause 7.2" - Config Id CFG_ITS_MBR_01 + Config Id CFG_ITS_MRS_01 PICS Selection PICS_IUT_ITS and PICS_SHORT_RANGE @@ -1139,26 +1458,26 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_SRT_002 + } // End of TP_MRS_ITSS_SRT_002 } // End of Group "short_range_transport" - Group "detect_misbehvior_messages" { + Group "decide_misbehvior_messages" { Group "Class1" { - import all from its_mbr_commons; + import all from its_mrs_commons; Test Purpose { - TP Id TP_MBR_ITSS_DETECT_CLASS1_001 + TP Id TP_MRS_ITSS_DECIDE_CLASS1_001 Test objective "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ValueTooLarge-VehicleType." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + "ETSI TS 103 759 [1], Clauses 4.2.3, D.1 Individual detectors for CAMs" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED @@ -1176,13 +1495,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -1217,18 +1536,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_DETECT_CLASS1_001 + } // End of TP_MRS_ITSS_DECIDE_CLASS1_001 Test Purpose { - TP Id TP_MBR_ITSS_DETECT_CLASS1_002 + TP Id TP_MRS_ITSS_DECIDE_CLASS1_002 Test objective "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ValueTooLarge-VehicleType-DriveDirectionRevers." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + "ETSI TS 103 759 [1], Clauses 4.2.3, D.1 Individual detectors for CAMs" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED @@ -1246,13 +1565,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -1287,18 +1606,18 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_DETECT_CLASS1_002 + } // End of TP_MRS_ITSS_DECIDE_CLASS1_002 Test Purpose { - TP Id TP_MBR_ITSS_DETECT_CLASS1_003 + TP Id TP_MRS_ITSS_DECIDE_CLASS1_003 Test objective "Check that the IUT generates a MB report when receiving CA messages with invalid acceleration from the same StationID - obs-LongAcc-ValueTooLarge." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + "ETSI TS 103 759 [1], Clauses 4.2.3, D.1 Individual detectors for CAMs" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_ACC @@ -1316,13 +1635,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -1357,26 +1676,26 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_DETECT_CLASS1_003 + } // End of TP_MRS_ITSS_DECIDE_CLASS1_003 - } // End of Group "detect_misbehvior_messages" + } // End of Group "decide_misbehvior_messages" } // End of Group "Class1" Group "Class2" { - import all from its_mbr_commons; + import all from its_mrs_commons; Test Purpose { - TP Id TP_MBR_ITSS_DETECT_CLASS2_001 + TP Id TP_MRS_ITSS_DECIDE_CLASS2_001 Test objective "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ChangeTooLarge." Reference - "ETSI TS 103 759 [3], Clauses 4.2.3, D.1 Individual detectors for CAMs" + "ETSI TS 103 759 [1], Clauses 4.2.3, D.1 Individual detectors for CAMs" - Config Id CFG_ITS_MBR_02 + Config Id CFG_ITS_MRS_02 PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED @@ -1402,13 +1721,13 @@ Package mbr { from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 1, + version indicating value 2, generationTime corresponding to Time64, observationLocation corresponding to ThreeDLocation, report containing aid indicating value AsrCam, content containing - aid indicating value AID_CAM, + aid indicating value c_AsrCam, content corresponding to AsrCam, content containing observations corresponding to CamObservationsByTarget, @@ -1448,8 +1767,8 @@ Package mbr { to the MA entity } } - } // End of TP_MBR_ITSS_DETECT_CLASS2_001 + } // End of TP_MRS_ITSS_DECIDE_CLASS2_001 } // End of Group "Class2" -} // End of Package mbr +} // End of Package mrs -- GitLab From 3505eed5ac4672410c4f6fb4d820926abf431ca4 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Thu, 9 Feb 2023 08:18:28 +0100 Subject: [PATCH 20/21] Add comments from Brigitte --- test_purposes/its_mrs_commons.tplan2 | 111 +++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 test_purposes/its_mrs_commons.tplan2 diff --git a/test_purposes/its_mrs_commons.tplan2 b/test_purposes/its_mrs_commons.tplan2 new file mode 100644 index 0000000..ed7d01c --- /dev/null +++ b/test_purposes/its_mrs_commons.tplan2 @@ -0,0 +1,111 @@ +/* +Copyright (c) ETSI 2022. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use. This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package its_mrs_commons { + Domain { + pics: // ETSI TS 103 759 [3], Clause 5 + - PICS_IUT_ITS_S // Is the IUT an ITS-S + - PICS_IUT_RSU // Is the IUT a RSU + - PICS_IUT_MA // Is the IUT an Misbehavior Authority + - PICS_SHORT_RANGE // Short range transport mode is used (G5/LTE) + - PICS_DETECTOR_CAM_SPEED // CAM Speed misbehavior detector is supported + - PICS_DETECTOR_CAM_POSITION // CAM Position misbehavior detector is supported + - PICS_DETECTOR_CAM_ACC + - PICS_DETECTOR_CAM_STATIC + - PICS_DETECTOR_CAM_SECURITY + ; + entities: + - IUT // Implementation Under Test + - ITS_S // Onboard Unit + - RSU // Road Side Unit + - MA // Misbehavior Authority + - TEST_SYSTEM // Test System entity + ; + events: + - connect + - receives + - received + - forwards + - awaits + - sent + - sends + - send + - having + - being_in + - times_out + - isAuthorizedWith + ; + } // End of 'Domain' statement + +// const { +// - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations +// - PX_IMPLAUSIBLE_POSITION_1 // Invalid position in CA message (e.g. wrong latitude) +// - PX_CAM_MBR_OBSERVATIONS_CLASS1 // CAM observation +// - AID_CAM // Psid for CAM, 36 +// - PX_STATION_ID +// - SEC_GN_PACKET_CERT // Secured geonetworking packet containing CA/DEM message and certificate (signer certificate) +// - SEC_GN_PACKET // Secured geonetworking packet containing CA/DEM message without certificate (digest) +// - PX_SPEED_1: Normal speed (e.g. 90 km/h) +// - PX_SPEED_2: Abnormal speed (e.g. 320 km/h) +// - PX_SPEED_3: Abnormal speed (e.g. 350 km/h) +// - TODO // PIXIT to be defined +// } + + Data { + type Int16; + type Charstring; + type Octetstring; + type Time64; + type ThreeDLocation; + type GeoNetworking; + type EtsiTs102941Data; + type EtsiTs103759Data; // Misbehavior Reporting message. See ETSI TS 103 759 + type AidSpecificReport; + type AsrCam; + type CamObservationsByTarget; + type MbSingleObservation; + type ObsPduEtsiGn; + type Psid; + } // End of 'Data' statement + + Configuration { + Interface Type defaultGN accepts GeoNetworking; + Interface Type defaultDATA accepts EtsiTs103759Data; + Component Type ItsComponent with gate g of type defaultGN; + Component Type ItsHttpComponent with gate g of type defaultDATA; + + Test Configuration CFG_ITS_MBR_01 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Long Range + containing + Tester component MA of type ItsHttpComponent + SUT component IUT of type ItsHttpComponent + connection between MA.g and IUT.g; + + Test Configuration CFG_ITS_MBR_02 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Short Range + containing + Tester component MA of type ItsComponent + SUT component IUT of type ItsComponent + connection between MA.g and IUT.g; + + Test Configuration CFG_ITS_MBR_03 + containing + Tester component MA of type ItsHttpComponent + Tester component ITS_S of type ItsComponent + SUT component IUT of type ItsHttpComponent + connection between MA.g and IUT.g + connection between ITS_S.g and IUT.g; + + } // End of 'Configuration' statement + +} // End of Package its_mrs_commons -- GitLab From d2893d2b57add5bea68a7ebaaf302437a507bca0 Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Tue, 21 Feb 2023 10:55:52 +0100 Subject: [PATCH 21/21] Finalyze first round of TPs --- test_purposes/its_mrs_commons.tplan2 | 170 +- test_purposes/itss.tplan2 | 3323 +++++++++++++++----------- 2 files changed, 2067 insertions(+), 1426 deletions(-) diff --git a/test_purposes/its_mrs_commons.tplan2 b/test_purposes/its_mrs_commons.tplan2 index ed7d01c..4d92ec0 100644 --- a/test_purposes/its_mrs_commons.tplan2 +++ b/test_purposes/its_mrs_commons.tplan2 @@ -16,95 +16,137 @@ file and shall not imply any sub-license right. Package its_mrs_commons { Domain { pics: // ETSI TS 103 759 [3], Clause 5 - - PICS_IUT_ITS_S // Is the IUT an ITS-S - - PICS_IUT_RSU // Is the IUT a RSU - - PICS_IUT_MA // Is the IUT an Misbehavior Authority - - PICS_SHORT_RANGE // Short range transport mode is used (G5/LTE) - - PICS_DETECTOR_CAM_SPEED // CAM Speed misbehavior detector is supported - - PICS_DETECTOR_CAM_POSITION // CAM Position misbehavior detector is supported - - PICS_DETECTOR_CAM_ACC - - PICS_DETECTOR_CAM_STATIC - - PICS_DETECTOR_CAM_SECURITY + - PICS_IUT_ITS_S // Is the IUT an ITS-S + - PICS_IUT_RSU // Is the IUT a RSU + - PICS_IUT_MA // Is the IUT an Misbehavior Authority + - PICS_SHORT_RANGE // Short range transport mode is used (G5/LTE) + - PICS_DETECTOR_CAM_BEACON // CAM Speed misbehavior detector is supported + - PICS_DETECTOR_CAM_SPEED // CAM Speed misbehavior detector is supported + - PICS_DETECTOR_CAM_POSITION // CAM Position misbehavior detector is supported + - PICS_DETECTOR_CAM_LONG_ACC + - PICS_DETECTOR_CAM_HEADING + - PICS_DETECTOR_CAM_CURVATURE + - PICS_DETECTOR_CAM_YAWRATE + - PICS_DETECTOR_CAM_STATIC + - PICS_DETECTOR_CAM_BEACON + - PICS_DETECTOR_CAM_SECURITY ; entities: - - IUT // Implementation Under Test - - ITS_S // Onboard Unit - - RSU // Road Side Unit - - MA // Misbehavior Authority - - TEST_SYSTEM // Test System entity + - IUT // Implementation Under Test + - ITS_S // Onboard Unit + - RSU // Road Side Unit + - MA // Misbehavior Authority + - TEST_SYSTEM // Test System entity ; events: - - connect - - receives - - received - - forwards - - awaits - - sent - - sends - - send - - having - - being_in - - times_out - - isAuthorizedWith + - connect + - receives + - received + - forwards + - awaits + - sent + - sends + - send + - having + - being_in + - any_value + - isAuthorizedWithATCertificate + - atFrequencyOf20Hz ; } // End of 'Domain' statement -// const { -// - PX_SUBJECT_PDU_INDEX // Number of invalid messages observations -// - PX_IMPLAUSIBLE_POSITION_1 // Invalid position in CA message (e.g. wrong latitude) -// - PX_CAM_MBR_OBSERVATIONS_CLASS1 // CAM observation -// - AID_CAM // Psid for CAM, 36 -// - PX_STATION_ID -// - SEC_GN_PACKET_CERT // Secured geonetworking packet containing CA/DEM message and certificate (signer certificate) -// - SEC_GN_PACKET // Secured geonetworking packet containing CA/DEM message without certificate (digest) -// - PX_SPEED_1: Normal speed (e.g. 90 km/h) -// - PX_SPEED_2: Abnormal speed (e.g. 320 km/h) -// - PX_SPEED_3: Abnormal speed (e.g. 350 km/h) -// - TODO // PIXIT to be defined -// } - Data { + type integer; + type UInt8; type Int16; type Charstring; type Octetstring; type Time64; + type TwoDLocation; type ThreeDLocation; - type GeoNetworking; - type EtsiTs102941Data; - type EtsiTs103759Data; // Misbehavior Reporting message. See ETSI TS 103 759 + type Certifcate; + type EtsiTs102941Data; // Secured message. See ETSI TS 102 941 + type EtsiTs103759Data; // Misbehavior Reporting message. See ETSI TS 103 759 type AidSpecificReport; type AsrCam; type CamObservationsByTarget; type MbSingleObservation; type ObsPduEtsiGn; type Psid; + type GeoNetworkingPdu; + + // Values + Time64 CURRENT_TIME; // Current time when the IUT generate the MR + ThreeDLocation CURRENT_POS; // Current position of the IUT + + // Messages + GeoNetworkingPdu PDU_IN_ERR; // Secured GeoNetworking packet containing inconsistent CA/DEN message and signer certificate + GeoNetworkingPdu PDU_IN_ERR_0; // First secured GeoNetworking packet containing inconsistent CA/DEN message and signer certificate + GeoNetworkingPdu PDU_IN_ERR_N; // Last secured GeoNetworking packet containing inconsistent CA/DEN message and signer certificate + AidSpecificReport AidSpecificReport; // AidSpecificReport packet + AsrCam AsrCam; // AsrCam packet + ObsPduEtsiGn ObsPduEtsiGn; + + // Constants + UInt8 AID_CAM; // AID for CAM, 36 + UInt8 AID_DENM; // AID for DENM, 37 + UInt8 INVALID_AID; // Invalid AID, e.g. 0 + integer PX_INVALID_CAM_SSP; // Invalid CAM SSPs + UInt8 PX_SUBJECT_PDU_INDEX; // Number of invalid messages observations + + // PIXITs + Certifcate PX_CERT_IUT_A_AT; // Regular signing certificate + Certifcate PX_INVALID_CAM_SSP_CERTIFICATE; // Signing certificate with inconsistent CAM SSPs + Certifcate PX_CERTIFICATE_EXPIRED; // Signing certificate expired + Certifcate PX_CERTIFICATE_OUTSIDE; // Signing certificate with a region outside of the IUT area + integer PX_STATION_ID; // StationID of a neighbor IUT + integer PX_INVALID_CURVATURE_VALUE; // e.g. ??? + integer PX_INVALID_YAWRATE_VALUE; // e.g. ??? + integer PX_NORMAL_ACC_VALUE; // e.g??? + integer PX_INVALID_ACC_CHANGE; + integer PX_INVALID_HEADING_CHANGE; // e.g. ??? + integer PX_NORMAL_HEADING_VALUE; // e.g. ??? + integer PX_NORMAL_SPEED_VALUE; //e.g. 90 km/h + integer PX_SPEED_1; // Normal speed. e.g. 90 km/h + integer PX_SPEED_2; // Abnormal speed. e.g. 320 km/h + integer PX_SPEED_3; // Abnormal speed. e.g. 350 km/h + integer PX_INVALID_SPEED_DRIVE_DIRECTION; + integer PX_INVALID_SPEED_CHANGE; + integer PX_HEADING_1; // Normal heading. e.g. ??? + integer PX_HEADING_2; // Abnormal heading. e.g. ??? + integer PX_HEADING_3; // Abnormal heading. e.g. ??? + ThreeDLocation PX_INVALID_POSITION_VALUE_VS_COMM_COVERAGE;// e.g. ??? + ThreeDLocation PX_POSITION_OUT_OF_ROAD; // The position of the neighbor is outside of the road + ThreeDLocation PX_POSITION_IN_BUILDING; // e.g. the position of the neighbor is in a building + ThreeDLocation PX_INVALID_MAX_POSITION; // Position greater than maximal position range + ThreeDLocation PX_POSITION_FIXED; // Identical position for several IUT's neighbors + ThreeDLocation PX_LOCATION_OUTSIDE_OF_CERTIFICATE; + Time64 PX_TIME_OUTSIDE_OF_CERTIFICATE; } // End of 'Data' statement Configuration { - Interface Type defaultGN accepts GeoNetworking; - Interface Type defaultDATA accepts EtsiTs103759Data; - Component Type ItsComponent with gate g of type defaultGN; - Component Type ItsHttpComponent with gate g of type defaultDATA; + Interface Type gnPort accepts EtsiTs102941Data; + Interface Type httpPort accepts EtsiTs103759Data; + + Component Type ItsComponent with gate g of type gnPort; + Component Type ItsHttpComponent with gate g of type httpPort; - Test Configuration CFG_ITS_MBR_01 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Long Range - containing - Tester component MA of type ItsHttpComponent - SUT component IUT of type ItsHttpComponent - connection between MA.g and IUT.g; + Test Configuration CFG_ITS_MRS_01 containing // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Long Range + Tester component MA of type ItsHttpComponent + SUT component IUT of type ItsHttpComponent + connection between MA.g and IUT.g; - Test Configuration CFG_ITS_MBR_02 // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Short Range - containing - Tester component MA of type ItsComponent - SUT component IUT of type ItsComponent - connection between MA.g and IUT.g; + Test Configuration CFG_ITS_MRS_02 containing // ETSI TS 103 759 [3], Clause 5.2 Communication assumptions and requirements - Short Range + Tester component MA of type ItsComponent + SUT component IUT of type ItsComponent + connection between MA.g and IUT.g; - Test Configuration CFG_ITS_MBR_03 - containing - Tester component MA of type ItsHttpComponent - Tester component ITS_S of type ItsComponent - SUT component IUT of type ItsHttpComponent - connection between MA.g and IUT.g - connection between ITS_S.g and IUT.g; + Test Configuration CFG_ITS_MRS_03 containing + Tester component MA of type ItsHttpComponent + Tester component ITS_S of type ItsComponent + SUT component IUT of type ItsHttpComponent + connection between MA.g and IUT.g + connection between ITS_S.g and IUT.g; } // End of 'Configuration' statement diff --git a/test_purposes/itss.tplan2 b/test_purposes/itss.tplan2 index 88579e7..609aca4 100644 --- a/test_purposes/itss.tplan2 +++ b/test_purposes/itss.tplan2 @@ -15,7 +15,9 @@ file and shall not imply any sub-license right. Package mrs { - Group "security_mb_report" { + import all from its_mrs_commons; + + Group "security_messages_report" { import all from its_mrs_commons; @@ -35,7 +37,7 @@ Package mrs { Initial conditions with { the IUT entity being_in the initial_state and - the IUT isAuthorizedWith PX_CERT_IUT_A_AT + the IUT entity isAuthorizedWithATCertificate } Expected behaviour @@ -64,16 +66,15 @@ Package mrs { digest indicating value CERT_AT_HASHEDID8 ;, tbsData containing - payload corresponding to EtsiTs103759Data, payload containing version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, report corresponding to AidSpecificReport ;, headerInfo containing psid indicating value PX_MRS_PSID, - generationTime corresponding to Time64 + generationTime corresponding to CURRENT_TIME ; ;, signature indicating value Signature @@ -87,19 +88,19 @@ Package mrs { } } // End of TP_MRS_ITSS_SEC_001 - } // End of Group "security_mb_report" + } // End of Group "security_messages_report" - Group "send_mb_report" { - - Group "Class1" { + Group "messages" { + + Group "General" { import all from its_mrs_commons; Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS1_001 + TP Id TP_MRS_ITSS_MESSAGES_001 Test objective - "Check that the IUT generates an invalid speed value observation on a CAM in the MR message when requested (Class 1) - obs-Speed-ValueTooLarge-VehicleType." + "Check that the IUT provides the certificate of the reported ITS-S when the invalid secured geonetworking packet does not contain the AT certificate." Reference "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" @@ -110,1253 +111,2157 @@ Package mrs { Initial conditions with { - the IUT entity being_in the initial_state + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate } Expected behaviour ensure that { when { - the IUT entity is triggered to send a MR message containing + the IUT entity receives a SEC_GN_PACKET containing + content containing + signedData containing + signer containing + digest indicating value DIGEST_CERT_IUT_A_AT;;;, + + toBeSigned containing + unsecuredData containing + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED;;;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing targetId indicating value c_CamTgt_SpeedCommon, cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Speed indicating value PX_INVALID_SPEED;; - from the TEST_SYSTEM entity } then { the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, report containing - aid indicating value c_AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, - content containing - observations corresponding to CamObservationsByTarget, - observations containing + aid indicating value AID_CAM, + content corresponding to AsrCam, + content containing + observations, + v2xPduEvidence containing + V2xPduStream containing item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - v2xPdus indicating value SEC_GN_PACKET_CERT, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus indicating value SEC_GN_PACKET, + certificate indicating value CERT_IUT_A_AT, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty ; ; ; to the MA entity } } - } // End of TP_MRS_ITSS_SEND_CLASS1_001 + } // End of TP_MRS_ITSS_MESSAGES_001 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS1_002 - Test objective - "Check that the IUT provides the certificate of the reported ITS-S when the invalid secured geonetworking packet does not contain the AT certificate." + } // End of Group "General" - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Group "CAM" { - Config Id CFG_ITS_MRS_02 + import all from its_mrs_commons; - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + Group "Class1" { - Initial conditions - with { - the IUT entity being_in the initial_state - } + import all from its_mrs_commons; - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_SpeedCommon, - cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET containing - digest indicating value DIGEST_CERT_IUT_A_AT; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - report containing - aid indicating value AsrCam, - content containing + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_001 + + Test objective + "Check that the IUT generates an invalid speed value observation on a CAM in the MR message when requested (Class 1) - obs-Speed-ValueTooLarge-VehicleType." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_SPEED_3;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing aid indicating value c_AsrCam, content containing - observations, - v2xPduEvidence containing - V2xPduStream containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus indicating value SEC_GN_PACKET, - certificate indicating value CERT_IUT_A_AT, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS1_002 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_001 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS1_003 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_003 - Test objective - "Check that the IUT generates an invalid speed value in reverse driving on a CAM in the MR message when requested (Class 1) - obs-Speed-ValueTooLarge-DriveDirectionReverse." + Test objective + "Check that the IUT generates an invalid speed value in reverse driving observation on a CAM in the MR message when requested (Class 1) - obs-Speed-ValueTooLarge-DriveDirectionReverse." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_SpeedCommon, - cause indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers; - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Speed indicating value PX_INVALID_SPEED_DRIVE_DIRECTION;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED_DRIVE_DIRECTION;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - v2xPdus indicating value SEC_GN_PACKET_CERT, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS1_003 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_003 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS1_004 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_004 - Test objective - "Check that the IUT generates an invalid acceleration value observation on a CAM in the MR message when requested (Class 1) - obs-LongAcc-ValueTooLarge." + Test objective + "Check that the IUT generates an invalid acceleration value observation on a CAM in the MR message when requested (Class 1) - obs-LongAcc-ValueTooLarge." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_ACC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_LONG_ACC - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_LongAccCommon, - cause indicating value c_ObsLongAcc_ValueTooLarge; - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Acc indicating value PX_INVALID_ACC_VALUE;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Acc indicating value PX_INVALID_ACC_VALUE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_LongAccCommon, + cause indicating value c_ObsLongAcc_ValueTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_LongAccCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsLongAcc_ValueTooLarge, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus indicating value SEC_GN_PACKET_CERT, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_LongAccCommon, + observations containing + item0 containing + obsId indicating value c_ObsLongAcc_ValueTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS1_004 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_004 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS1_005 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_005 - Test objective - "Check that the IUT generates an wrong HeaderInfo.Psid value in CAM MB report when requested (Class 1) - obs-Security-MessageIdIncWithHeaderInfo." + Test objective + "Check that the IUT generates an inconsistent position value observation (regarding own communication coverage observation) on a CAM in the MR message when requested (Class 1) - obs-Position-ChangeTooLarge." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_SecurityCommon, - cause indicating value c_ObsSecurity_MessageIdIncWithHeaderInfo; - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID;, - HeaderInfo containing - Psid indicating value PX_AID_DENM;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Position indicating value PX_INVALID_POSITION_VALUE_VS_COMM_COVERAGE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_Position_ChangeTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SecurityCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSecurity_MessageIdIncWithHeaderInfo, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus indicating value SEC_GN_PACKET_CERT, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 containing + obsId indicating value c_Position_ChangeTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS1_005 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_005 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS1_006_01 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_006 - Test objective - "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." + Test objective + "Check that the IUT generates an inconsistent curvature value observation on a CAM in the MR message when requested (Class 1) - ???." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_CURVATURE - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_SecurityCommon, - cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID;, - HeaderInfo containing - not Psid;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Curvature indicating value PX_INVALID_CURVATURE_VALUE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value ???, // TODO + cause indicating value ???; // TODO + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SecurityCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSecurity_HeaderIncWithSecurityProfile, - obs indicating value NULL + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value ???, // TODO + observations containing + item0 containing + obsId indicating value ???, // TODO + obs indicating value NULL + ; ; ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus indicating value SEC_GN_PACKET_CERT, - certificate indicating value omit, - subjectPduIndex indicating value 0 + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; ; - ; - ;, - nonV2xPduEvidence indicating value empty + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS1_006_01 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_006 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS1_006_02 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_007 - Test objective - "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." + Test objective + "Check that the IUT generates an inconsistent curvature value observation on a CAM in the MR message when requested (Class 1) - ???." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_YAWRATE - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_SecurityCommon, - cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID;, - HeaderInfo containing - not GenerationTime;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + YawRate indicating value PX_INVALID_YAWRATE_VALUE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value ???, // TODO + cause indicating value ???; // TODO + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SecurityCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSecurity_HeaderIncWithSecurityProfile, - obs indicating value NULL + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value ???, // TODO + observations containing + item0 containing + obsId indicating value ???, // TODO + obs indicating value NULL + ; ; ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus indicating value SEC_GN_PACKET_CERT, - certificate indicating value omit, - subjectPduIndex indicating value 0 + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0 + ; ; - ; - ;, - nonV2xPduEvidence indicating value empty + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS1_006_02 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_007 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS1_006_03 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_01 - Test objective - "Check that the IUT generates a security HeaderInfo with missing fields in CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." + Test objective + "Check that the IUT generates a security HeaderInfo with missing fields observation on a CAM MB report when requested (Class 1) - obs-Security-MessageIdIncWithHeaderInfo." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SEC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SECURITY - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_SecurityCommon, - cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; - from the TEST_SYSTEM entity - and the IUT entity receives a SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - DEN message containing - StationID indicating value PX_STATION_ID;, - HeaderInfo containing - not GenerationLocation;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + not Psid;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_MessageIdIncWithHeaderInfo; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SecurityCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSecurity_HeaderIncWithSecurityProfile, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus indicating value SEC_GN_PACKET_CERT, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 containing + obsId indicating value c_ObsSecurity_MessageIdIncWithHeaderInfo, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS1_006_03 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_01 - } // End of Group "Class1" + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_02 - Group "Class2" { + Test objective + "Check that the IUT generates a inconsistent security profile observation (psid set to DENM) on a CAM MB report when requested (Class 1) - obs-Security-HeaderIncWithSecurityProfile." - import all from its_mrs_commons; + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS2_001 + Config Id CFG_ITS_MRS_02 - Test objective - "Check that the IUT generates a MR message with an observation of an invalid speed change in consecutive CAMs when requested (Class 2) - obs-Speed-ChangeTooLarge." + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SECURITY - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Config Id CFG_ITS_MRS_02 + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + Psid indicating value AID_DENM;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_HeaderIncWithSecurityProfile; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 containing + obsId indicating value c_ObsSecurity_HeaderIncWithSecurityProfile, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_03 - Initial conditions - with { - the IUT entity being_in the initial_state - } + Test objective + "Check that the IUT generates an inconsistent PSID observation (invalid PSID value) on a CAM MB report when requested (Class 1) - obs-Security-HeaderPsidIncWithCertificate." - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_SpeedCommon, - cause indicating value c_ObsSpeed_ChangeTooLarge; - from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing // How to explain two successive - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Speed indicating value PX_INVALID_SPEED_CHANGE;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SECURITY + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CAM message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + Psid indicating value PX_INVALID_PSID;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_HeaderPsidIncWithCertificate; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 corresponding to MbSingleObservation, + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 containing + obsId indicating value c_ObsSecurity_HeaderPsidIncWithCertificate, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing item0 containing - obsId indicating value c_ObsSpeed_ChangeTooLarge, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_03 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_04 + + Test objective + "Check that the IUT generates an invalid AppPermissions observation on a CAM MB report when requested (Class 1) - obs-Security-MessageIncWithSsp." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SECURITY + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CAM message containing + StationID indicating value PX_STATION_ID;, + signer indicating value PX_INVALID_CAM_SSP_CERTIFICATE; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_MessageIncWithSsp; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus containing - PDU0 indicating value SEC_GN_PACKET_CERT_0, - PDUN indicating value SEC_GN_PACKET_CERT_N - ;, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_IDX - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 containing + obsId indicating value c_ObsSecurity_MessageIncWithSsp, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS2_001 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_04 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS2_002 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_05 - Test objective - "Check that the IUT generates an invalid position changed value in consecutive CAMs MB report when requested (Class 2) - obs-Position-ChangeTooLarge." + Test objective + "Check that the IUT generates an inconsistent certificate time observation on a CAM MB report when requested (Class 1) - obs-Security-HeaderTimeOutsideCertificateValidity." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SECURITY - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_PositionCommon, - cause indicating value c_ObsPosition_ChangeTooLarge; - from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Position indicating value PX_INVALID_POSITION_CHANGE;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CAM message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + GenerationTime indicating value PX_TIME_OUTSIDE_OF_CERTIFICATE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_HeaderTimeOutsideCertificateValidity; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_PositionCommon, - observations containing - item0 corresponding to MbSingleObservation, + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 containing + obsId indicating value c_ObsSecurity_HeaderTimeOutsideCertificateValidity, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing item0 containing - obsId indicating value c_ObsPosition_ChangeTooLarge, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_05 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_06 + + Test objective + "Check that the IUT generates an inconsistent certificate location outside observation on a CAM MB report when requested (Class 1) - obs-Security-MessageLocationOutsideCertificateValidity." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SECURITY + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CAM message containing + StationID indicating value PX_STATION_ID;, + HeaderInfo containing + GenerationLocation indicating value PX_LOCATION_OUTSIDE_OF_CERTIFICATE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_MessageLocationOutsideCertificateValidity; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus containing - PDU0 indicating value SEC_GN_PACKET_CERT_0, - PDUN indicating value SEC_GN_PACKET_CERT_N - ;, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_IDX - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 containing + obsId indicating value c_ObsSecurity_MessageLocationOutsideCertificateValidity, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS2_002 + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_06 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS2_003_01 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_07 - Test objective - "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: SpecialTransport." + Test objective + "Check that the IUT generates an inconsistent certificate location outside observation on a CAM MB report when requested (Class 1) - obs-Security-HeaderLocationOutsideCertificateValidity." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", - "ETSI EN 302 637-2 [8], Annex B.40" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SECURITY - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_StaticCommon, - cause indicating value c_ObsStatic_Change; - from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Static indicating value PX_INVALID_STATIC_CHANGE_SPECIALTRANSPORT;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CAM message containing + StationID indicating value PX_STATION_ID;, + signer indicating value PX_CERTIFICATE_OUTSIDE; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SecurityCommon, + cause indicating value c_ObsSecurity_HeaderLocationOutsideCertificateValidity; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_StaticCommon, - observations containing - item0 corresponding to MbSingleObservation, + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_SecurityCommon, + observations containing + item0 containing + obsId indicating value c_ObsSecurity_HeaderLocationOutsideCertificateValidity, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing item0 containing - obsId indicating value c_ObsStatic_Change, - obs indicating value '0001'B // TODO To be updated - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS1_CAM_009_07 + + } // End of Group "Class1" + + Group "Class2" { + + import all from its_mrs_commons; + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_001 + + Test objective + "Check that the IUT generates a MR message with an observation of an inconsistent speed change (regarding acceleration) in consecutive CAMs when requested (Class 2) - obs-Speed-ChangeTooLarge." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Acc indicating value PX_NORMAL_ACC_VALUE, + Speed indicating value PX_INVALID_SPEED_CHANGE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ChangeTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus containing - PDU0 indicating value SEC_GN_PACKET_CERT_0, - PDUN indicating value SEC_GN_PACKET_CERT_N - ;, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_IDX - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 containing + obsId indicating value c_ObsSpeed_ChangeTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS2_003_01 + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_001 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS2_003_02 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_002 - Test objective - "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: StationType." + Test objective + "Check that the IUT generates an inconsistent position changed value (regarding heading changes) in consecutive CAMs MB report when requested (Class 2) - obs-Position-ChangeTooLarge." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", - "ETSI EN 302 637-2 [8], Annex B.18" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_StaticCommon, - cause indicating value c_ObsStatic_Change; - from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Static indicating value PX_INVALID_STATIC_CHANGE_STATIONTYPE;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Heading indicating value PX_NORMAL_HEADING_VALUE, + Position indicating value PX_INVALID_POSITION_CHANGE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_StaticCommon, - observations containing - item0 corresponding to MbSingleObservation, + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing item0 containing - obsId indicating value c_ObsStatic_Change, - obs indicating value '0010'B // TODO To be updated + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_002 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_003 + + Test objective + "Check that the IUT generates an inconsistent heading changed value (regarding speed changes) in consecutive CAMs MB report when requested (Class 2) - ???." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_HEADING + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Heading indicating value PX_INVALID_HEADING_CHANGE, + Speed indicating value PX_NORMAL_SPEED_VALUE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value ???, // TODO + cause indicating value ???; // TODO + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + oobservations containing + item0 containing + tgtId indicating value ???, // TODO + observations containing + item0 containing + obsId indicating value ???, // TODO + obs indicating value NULL + ; ; ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus containing - PDU0 indicating value SEC_GN_PACKET_CERT_0, - PDUN indicating value SEC_GN_PACKET_CERT_N - ;, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX + ; ; - ; - ;, - nonV2xPduEvidence indicating value empty + ;, + nonV2xPduEvidence indicating value empty + ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS2_003_02 + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_003 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS2_003_03 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_004 - Test objective - "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleLength." + Test objective + "Check that the IUT generates a MR message with an observation of an inconsistent acceleration change (regarding the vehicle type) in consecutive CAMs when requested (Class 2) - obs-LongAcc-ValueTooLarge." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", - "ETSI EN 302 637-2 [8], Annex B.35" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_LONG_ACC - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_StaticCommon, - cause indicating value c_ObsStatic_Change; - from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLELENGTH;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Acc indicating value PX_INVALID_ACC_CHANGE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_LongAccCommon, + cause indicating value c_ObsLongAcc_ValueTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_StaticCommon, - observations containing - item0 corresponding to MbSingleObservation, + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_LongAccCommon, + observations containing + item0 containing + obsId indicating value c_ObsLongAcc_ValueTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing item0 containing - obsId indicating value c_ObsStatic_Change, - obs indicating value '0100'B // TODO To be updated - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_004 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_005 + + Test objective + "Check that the IUT generates a MR message with an observation of an inconsistent CAM frequency greater than 10Hz(Class 2) - obs-Beacon-IntervalTooSmall." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_BEACON + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple CAM atFrequencyOf20Hz + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_BeaconCommon, + cause indicating value c_ObsBeacon_IntervalTooSmall; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus containing - PDU0 indicating value SEC_GN_PACKET_CERT_0, - PDUN indicating value SEC_GN_PACKET_CERT_N - ;, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_IDX - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_BeaconCommon, + observations containing + item0 containing + obsId indicating value c_ObsBeacon_IntervalTooSmall, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS2_003_03 + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_005 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS2_003_04 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_01 - Test objective - "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleRole." + Test objective + "Check that the IUT generates an invalid static changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: SpecialTransport." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", - "ETSI EN 302 637-2 [8], Annex B.23" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.40" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_StaticCommon, - cause indicating value c_ObsStatic_Change; - from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLEROLE;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_SPECIALTRANSPORT;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0001'B;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_01 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_02 + + Test objective + "Check that the IUT generates an invalid static changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: StationType." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.18" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_STATIONTYPE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0010'B;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_003_02 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_03 + + Test objective + "Check that the IUT generates an invalid static changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleLength." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.35" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLELENGTH;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0100'B;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_03 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_04 + + Test objective + "Check that the IUT generates an invalid static changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleRole." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.23" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLEROLE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0100'B;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_04 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_05 + + Test objective + "Check that the IUT generates an invalid static changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleWidth." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", + "ETSI EN 302 637-2 [8], Annex B.36" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLEWIDTH;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_StaticCommon, + cause indicating value c_ObsStatic_Change; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_StaticCommon, + observations containing + item0 containing + obsId indicating value c_ObsStatic_Change, + obs indicating value '0101'B;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS2_CAM_010_05 + + } // End of Group "Class2" + + Group "Class3" { + + import all from its_mrs_commons; + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS3_CAM_001 + + Test objective + "Check that the IUT generates a MR message with an observation of an neighbor position (outside of the road) in consecutive CAMs when requested (Class 3) - obs-Position-ChangeTooLarge." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value any_value, + Position indicating value PX_POSITION_OUT_OF_ROAD;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence containing + id indicating value any_value, // TODO To be refined + evidence indicating value any_value;;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS3_CAM_001 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS3_CAM_002 + + Test objective + "Check that the IUT generates a MR message with an observation of an neighbor position (identical to the IUT position) in consecutive CAMs when requested (Class 3) - obs-Position-ChangeTooLarge." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value any_value, + Position indicating value PX_POSITION_IN_BUILDING;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence containing + id indicating value any_value, // TODO To be refined + evidence indicating value any_value;;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS3_CAM_002 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS3_CAM_003 + + Test objective + "Check that the IUT generates an inconsistent speed value observation (with road plausible speed) on a CAM in the MR message when requested (Class 3) - obs-Speed-ValueTooLarge-VehicleType." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value any_value, + Speed indicating value PX_SPEED_3;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_VehicleType; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing aid indicating value c_AsrCam, - content corresponding to AsrCam, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_StaticCommon, - observations containing - item0 corresponding to MbSingleObservation, + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing item0 containing - obsId indicating value c_ObsStatic_Change, - obs indicating value '0100'B // TODO To be updated - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence containing + id indicating value any_value, // TODO To be refined + evidence indicating value any_value;;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS3_CAM_003 + + } // End of Group "Class3" + + Group "Class4" { + + import all from its_mrs_commons; + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS4_CAM_001 + + Test objective + "Check that the IUT generates a MR message with some observations of neighbors with inconsistent position (regarding communication area) in consecutive CAMs when requested (Class 4) - obs-Position-ChangeTooLarge." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value any_value, + Position indicating value PX_INVALID_POSITION_VALUE_VS_COMM_COVERAGE;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus containing - PDU0 indicating value SEC_GN_PACKET_CERT_0, - PDUN indicating value SEC_GN_PACKET_CERT_N - ;, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_IDX - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence containing + id indicating value any_value, // TODO To be refined + evidence indicating value any_value;;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS2_003_04 + } // End of TP_MRS_ITSS_MESSAGES_CLASS4_CAM_001 - Test Purpose { - TP Id TP_MRS_ITSS_SEND_CLASS2_003_05 + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS4_CAM_002 - Test objective - "Check that the IUT generates an invalid statis changed value in consecutive CAMs MB report when requested (Class 2) - obs-Static-Change: VehicleWidth." + Test objective + "Check that the IUT generates a MR message with some observations of neighbors with inconsistent position in consecutive CAMs when requested (Class 4) - obs-Position-ChangeTooLarge." - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A", - "ETSI EN 302 637-2 [8], Annex B.36" + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value any_value, + Position indicating value PX_INVALID_MAX_POSITION;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence containing + id indicating value any_value, // TODO To be refined + evidence indicating value any_value;;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS4_CAM_002 + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS4_CAM_003 + + Test objective + "Check that the IUT generates an inconsistent speed direction value observation on a CAM in the MR message when requested (Class 5) - obs-Speed-ValueTooLarge_DriveDirectionReverse." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" + + Config Id CFG_ITS_MRS_02 + + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED + + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED_DRIVE_DIRECTION;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionReverse; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value c_AsrCam, + content containing + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 containing + obsId indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionReverse, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus corresponding to ObsPduEtsiGn, + v2xPdus corresponding to PDU_IN_ERR, + certificate indicating value omit, + subjectPduIndex indicating value 0;;;, + nonV2xPduEvidence indicating value empty;;;; + to the MA entity + } + } + } // End of TP_MRS_ITSS_MESSAGES_CLASS4_CAM_003 + + } // End of Group "Class4" + + Group "Class5" { + + import all from its_mrs_commons; + + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_CLASS5_CAM_001 + + Test objective + "Check that the IUT generates a MR message with some observations of neighbors with same position in consecutive CAMs when requested (Class 3) - obs-Position-ChangeTooLarge." + + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_STATIC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_POSITION - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - targetId indicating value c_CamTgt_StaticCommon, - cause indicating value c_ObsStatic_Change; - from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Static indicating value PX_INVALID_STATIC_CHANGE_VEHICLEWIDTH;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value any_value, + Position indicating value PX_POSITION_FIXED;; + from the TEST_SYSTEM entity + and the IUT entity is triggered to send a MR message containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_StaticCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsStatic_Change, - obs indicating value '0101'B // TODO To be updated - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing + content corresponding to AsrCam, + content containing + observations containing item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus containing - PDU0 indicating value SEC_GN_PACKET_CERT_0, - PDUN indicating value SEC_GN_PACKET_CERT_N - ;, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_IDX - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL;;;;, + v2xPduEvidence containing + V2xPduStream containing + item0 containing + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_INDEX;;;, + nonV2xPduEvidence containing + id indicating value any_value, // TODO To be refined + evidence indicating value any_value;;;;; + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_CLASS2_003_05 + } // End of TP_MRS_ITSS_MESSAGES_CLASS5_CAM_002 + } // End of Group "Class5" - // TODO Add CAM Beacon Interval + Group "MultipleClasses" { - } // End of Group "Class2" + import all from its_mrs_commons; - Group "MultipleClasses" { + Test Purpose { + TP Id TP_MRS_ITSS_MESSAGES_001 - import all from its_mrs_commons; + Test objective + "Check that the IUT generates a single MR message containing observations of an invalid speed change, an invalid position change and an invalid longitudinal acceleration value in consecutive CAMs when requested (both Class1, Class 2)." - Test Purpose { - TP Id TP_MRS_ITSS_SEND_001 - - Test objective - "Check that the IUT generates a single MR containing observations of an invalid speed change, an invalid position change and an invalid longitudinal acceleration value in consecutive CAMs when requested (both Class1, Class 2)." + Reference + "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, Clause 6.2, Clause 7.2 and Annex A" - - Config Id CFG_ITS_MRS_02 + Config Id CFG_ITS_MRS_02 - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED and PICS_DETECTOR_CAM_POSITION and PICS_DETECTOR_CAM_ACC + PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED and PICS_DETECTOR_CAM_POSITION and PICS_DETECTOR_CAM_LONG_ACC - Initial conditions - with { - the IUT entity being_in the initial_state - } + Initial conditions + with { + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate + } - Expected behaviour - ensure that { - when { - the IUT entity is triggered to send a MR message containing - item0 containing - targetId indicating value c_CamTgt_SpeedCommon, - cause indicating value c_ObsSpeed_ChangeTooLarge;, // Class2 observation - item1 containing - targetId indicating value c_CamTgt_PositionCommon, - cause indicating value c_ObsPosition_ChangeTooLarge;, // Class2 observation - item2 containing - targetId indicating value c_CamTgt_LongAccCommon, - cause indicating value c_ObsLongAcc_ValueTooLarge; // Class1 observation - ; - from the TEST_SYSTEM entity - and the IUT entity receives several SEC_GN_PACKET_CERT containing - certificate indicating value CERT_IUT_A_AT, - CA message containing - StationID indicating value PX_STATION_ID, - Speed indicating value PX_INVALID_SPEED_CHANGE, - Position indicating value PX_INVALID_POSITION_CHANGE;; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - content corresponding to AsrCam, + Expected behaviour + ensure that { + when { + the IUT entity is triggered to send a MR message containing + item0 containing + targetId indicating value c_CamTgt_SpeedCommon, + cause indicating value c_ObsSpeed_ChangeTooLarge;, // Class2 observation + item1 containing + targetId indicating value c_CamTgt_PositionCommon, + cause indicating value c_ObsPosition_ChangeTooLarge;, // Class2 observation + item2 containing + targetId indicating value c_CamTgt_LongAccCommon, + cause indicating value c_ObsLongAcc_ValueTooLarge; // Class1 observation + ; + from the TEST_SYSTEM entity + and the IUT entity receives multiple PDU_IN_ERR containing + certificate indicating value CERT_IUT_A_AT, + CA message containing + StationID indicating value PX_STATION_ID, + Speed indicating value PX_INVALID_SPEED_CHANGE, + Position indicating value PX_INVALID_POSITION_CHANGE;; + from the TEST_SYSTEM entity + } then { + the IUT entity sends a EtsiTs103759Data containing + version indicating value 2, + generationTime corresponding to CURRENT_TIME, + observationLocation corresponding to CURRENT_POS, + report containing + aid indicating value AID_CAM, content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSpeed_ChangeTooLarge, - obs indicating value NULL + content corresponding to AsrCam, + content containing + observations containing + item0 containing + tgtId indicating value c_CamTgt_SpeedCommon, + observations containing + item0 containing + obsId indicating value c_ObsSpeed_ChangeTooLarge, + obs indicating value NULL + ; + ;, + item1 containing + tgtId indicating value c_CamTgt_PositionCommon, + observations containing + item0 containing + obsId indicating value c_ObsPosition_ChangeTooLarge, + obs indicating value NULL + ; ; ;, - item1 containing - tgtId indicating value c_CamTgt_PositionCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsPosition_ChangeTooLarge, - obs indicating value NULL + item2 containing + tgtId indicating value c_CamTgt_LongAccCommon, + observations containing + item0 containing + obsId indicating value c_ObsLongAcc_ValueTooLarge, + obs indicating value NULL + ; ; ; ;, - item2 containing - tgtId indicating value c_CamTgt_LongAccCommon, - observations containing - item0 corresponding to MbSingleObservation, + v2xPduEvidence containing + V2xPduStream containing item0 containing - obsId indicating value c_ObsLongAcc_ValueTooLarge, - obs indicating value NULL + type_ indicating value c_ObsPdu_etsiGn, + v2xPdus containing + PDU0 corresponding to PDU_IN_ERR_0, + PDUN corresponding to PDU_IN_ERR_N + ;, + certificate indicating value omit, + subjectPduIndex indicating value PX_SUBJECT_PDU_IDX ; ; + ;, + nonV2xPduEvidence indicating value empty ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus containing - PDU0 indicating value SEC_GN_PACKET_CERT_0, - PDUN indicating value SEC_GN_PACKET_CERT_N - ;, - certificate indicating value omit, - subjectPduIndex indicating value PX_SUBJECT_PDU_IDX - ; - ; - ;, - nonV2xPduEvidence indicating value empty ; ; ; ; - ; - to the MA entity + to the MA entity + } } - } - } // End of TP_MRS_ITSS_SEND_001 + } // End of TP_MRS_ITSS_MESSAGES_001 - } // End of Group "MultipleClasses" + } // End of Group "MultipleClasses" - } // End of Group "send_mb_report" + } // End of Group "CAM" + + Group "DENM" { + + import all from its_mrs_commons; + + } // End of Group "DENM" + + } // End of Group "messages" Group "forwarding_misbehvior_messages" { @@ -1377,7 +2282,8 @@ Package mrs { Initial conditions with { - the IUT entity being_in the initial_state + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate } Expected behaviour @@ -1409,11 +2315,12 @@ Package mrs { Config Id CFG_ITS_MRS_01 - PICS Selection PICS_IUT_ITS and PICS_SHORT_RANGE + PICS Selection PICS_IUT_ITS_S and PICS_SHORT_RANGE Initial conditions with { - the IUT entity being_in the initial_state + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate } Expected behaviour @@ -1441,11 +2348,12 @@ Package mrs { Config Id CFG_ITS_MRS_01 - PICS Selection PICS_IUT_ITS and PICS_SHORT_RANGE + PICS Selection PICS_IUT_ITS_S and PICS_SHORT_RANGE Initial conditions with { - the IUT entity being_in the initial_state + the IUT entity being_in the initial_state and + the IUT entity isAuthorizedWithATCertificate } Expected behaviour @@ -1462,313 +2370,4 @@ Package mrs { } // End of Group "short_range_transport" - Group "decide_misbehvior_messages" { - - Group "Class1" { - - import all from its_mrs_commons; - - Test Purpose { - TP Id TP_MRS_ITSS_DECIDE_CLASS1_001 - - Test objective - "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ValueTooLarge-VehicleType." - - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, D.1 Individual detectors for CAMs" - - Config Id CFG_ITS_MRS_02 - - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED - - Initial conditions - with { - the IUT entity being_in the initial_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a CA message containing - StationID indicating value PX_STATIONID, - Speed indicating value PX_IMPLAUSIBLE_SPEED_1; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, - content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSpeed_ValueTooLarge_VehicleType, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - v2xPdus indicating value GN_PACKET, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity - } - } - } // End of TP_MRS_ITSS_DECIDE_CLASS1_001 - - Test Purpose { - TP Id TP_MRS_ITSS_DECIDE_CLASS1_002 - - Test objective - "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ValueTooLarge-VehicleType-DriveDirectionRevers." - - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, D.1 Individual detectors for CAMs" - - Config Id CFG_ITS_MRS_02 - - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED - - Initial conditions - with { - the IUT entity being_in the initial_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a CA message containing - StationID indicating value PX_STATIONID, - Speed indicating value PX_IMPLAUSIBLE_SPEED_1; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, - content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsSpeed_ValueTooLarge_DriveDirectionRevers, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - v2xPdus indicating value GN_PACKET, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity - } - } - } // End of TP_MRS_ITSS_DECIDE_CLASS1_002 - - Test Purpose { - TP Id TP_MRS_ITSS_DECIDE_CLASS1_003 - - Test objective - "Check that the IUT generates a MB report when receiving CA messages with invalid acceleration from the same StationID - obs-LongAcc-ValueTooLarge." - - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, D.1 Individual detectors for CAMs" - - Config Id CFG_ITS_MRS_02 - - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_ACC - - Initial conditions - with { - the IUT entity being_in the initial_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a CA message containing - StationID indicating value PX_STATIONID, - Acc indicating value PX_INVALID_ACC_VALUE; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, - content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_LongAccCommon, - observations containing - item0 corresponding to MbSingleObservation, - item0 containing - obsId indicating value c_ObsLongAcc_ValueTooLarge, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - v2xPdus indicating value GN_PACKET, - certificate indicating value omit, - subjectPduIndex indicating value 0 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity - } - } - } // End of TP_MRS_ITSS_DECIDE_CLASS1_003 - - } // End of Group "decide_misbehvior_messages" - - } // End of Group "Class1" - - Group "Class2" { - - import all from its_mrs_commons; - - Test Purpose { - TP Id TP_MRS_ITSS_DECIDE_CLASS2_001 - - Test objective - "Check that the IUT generates a MB report when receiving CA messages with invalid speed from the same StationID - obs-Speed-ChangeTooLarge." - - Reference - "ETSI TS 103 759 [1], Clauses 4.2.3, D.1 Individual detectors for CAMs" - - Config Id CFG_ITS_MRS_02 - - PICS Selection PICS_IUT_ITS_S and PICS_DETECTOR_CAM_SPEED - - Initial conditions - with { - the IUT entity being_in the initial_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a CA_0 message containing - StationID indicating value PX_STATIONID, - Speed indicating value PX_SPEED_1; - from the TEST_SYSTEM entity - and the IUT entity receives a CA_1 message containing - StationID indicating value PX_STATIONID, - Speed indicating value PX_SPEED_2; - from the TEST_SYSTEM entity - and the IUT entity receives a CA_2 message containing - StationID indicating value PX_STATIONID, - Speed indicating value PX_SPEED_3; - from the TEST_SYSTEM entity - } then { - the IUT entity sends a EtsiTs103759Data containing - version indicating value 2, - generationTime corresponding to Time64, - observationLocation corresponding to ThreeDLocation, - report containing - aid indicating value AsrCam, - content containing - aid indicating value c_AsrCam, - content corresponding to AsrCam, - content containing - observations corresponding to CamObservationsByTarget, - observations containing - item0 containing - tgtId indicating value c_CamTgt_SpeedCommon, - observations containing - item0 containing - obsId indicating value c_ObsSpeed_ChangeTooLarge, - obs indicating value NULL - ;, - item1 containing - obsId indicating value c_ObsSpeed_ChangeTooLarge, - obs indicating value NULL - ; - ; - ; - ;, - v2xPduEvidence containing - V2xPduStream containing - item0 containing - type_ indicating value c_ObsPdu_etsiGn, - v2xPdus corresponding to ObsPduEtsiGn, - v2xPdus containing - PDU0 indicating value GN_PACKET_1, - PDU1 indicating value GN_PACKET_2;, - certificate indicating value omit, - subjectPduIndex indicating value 2 - ; - ; - ;, - nonV2xPduEvidence indicating value empty - ; - ; - ; - ; - to the MA entity - } - } - } // End of TP_MRS_ITSS_DECIDE_CLASS2_001 - - } // End of Group "Class2" - } // End of Package mrs -- GitLab