From b5ff34757d4d7cd26a31761495aca205816f3aca Mon Sep 17 00:00:00 2001 From: Tennessee Carmel-Veilleux Date: Mon, 5 Aug 2024 11:11:44 -0400 Subject: [PATCH] Remove obsolete TC_OCC_XXX YAML files (#34756) - Tests were replaced by Python --- .../suites/certification/Test_TC_OCC_2_1.yaml | 180 ------------------ .../suites/certification/Test_TC_OCC_2_3.yaml | 55 ------ .../Test_TC_OCC_2_4_Simulated.yaml | 40 ---- .../suites/certification/Test_TC_OCC_3_1.yaml | 59 ------ 4 files changed, 334 deletions(-) delete mode 100644 src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_OCC_2_3.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_OCC_2_4_Simulated.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml deleted file mode 100644 index fba27160989231..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml +++ /dev/null @@ -1,180 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: 30.2.1. [TC-OCC-2.1] Attributes with server as DUT - -PICS: - - OCC.S - -config: - nodeId: 0x12344321 - cluster: "Occupancy Sensing" - endpoint: 1 - -tests: - - label: "Step 1: Commission DUT to TH" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the (0x0000) Occupancy attribute" - PICS: OCC.S.A0000 - command: "readAttribute" - attribute: "Occupancy" - response: - constraints: - type: bitmap8 - minValue: 0 - maxValue: 1 - - - label: - "Step 3: TH reads from the DUT the (0x0001) OccupancySensorType - attribute" - PICS: OCC.S.A0001 - command: "readAttribute" - attribute: "OccupancySensorType" - response: - constraints: - type: enum8 - minValue: 0 - maxValue: 3 - - - label: - "Step 4:TH reads from the DUT the (0x0002) OccupancySensorTypeBitmap - attribute" - PICS: OCC.S.A0002 - command: "readAttribute" - attribute: "OccupancySensorTypeBitmap" - response: - constraints: - type: bitmap8 - minValue: 1 - maxValue: 7 - - - label: - "Step 5: TH reads from the DUT the (0x0010) - PIROccupiedToUnoccupiedDelay optional attribute, if PIR sensor" - PICS: OCC.S.A0010 - command: "readAttribute" - attribute: "PIROccupiedToUnoccupiedDelay" - response: - constraints: - type: int16u - minValue: 0 - maxValue: 65535 - - - label: - "Step 6: TH reads from the DUT the (0x0011) - PIRUnoccupiedToOccupiedDelay optional attribute, if PIR sensor" - PICS: OCC.S.A0011 - command: "readAttribute" - attribute: "PIRUnoccupiedToOccupiedDelay" - response: - constraints: - type: int16u - minValue: 0 - maxValue: 65535 - - - label: - "Step 7: TH reads from the DUT the (0x0012) - PIRUnoccupiedToOccupiedThreshold optional attribute, if PIR sensor" - PICS: OCC.S.A0012 - command: "readAttribute" - attribute: "PIRUnoccupiedToOccupiedThreshold" - response: - constraints: - type: int8u - minValue: 1 - maxValue: 254 - - - label: - "Step 8: TH reads from the DUT the (0x0020) - UltrasonicOccupiedToUnoccupiedDelay optional attribute, if ultrasonic - sensor" - PICS: OCC.S.A0020 - command: "readAttribute" - attribute: "UltrasonicOccupiedToUnoccupiedDelay" - response: - constraints: - type: int16u - minValue: 0 - maxValue: 65535 - - - label: - "Step 9: TH reads from the DUT the (0x0021) - UltrasonicUnoccupiedToOccupiedDelay optional attribute, if ultrasonic - sensor" - PICS: OCC.S.A0021 - command: "readAttribute" - attribute: "UltrasonicUnoccupiedToOccupiedDelay" - response: - constraints: - type: int16u - minValue: 0 - maxValue: 65535 - - - label: - "Step 10: TH reads from the DUT the (0x0022) - UltrasonicUnoccupiedToOccupiedThreshold optional attribute, if - ultrasonic sensor" - PICS: OCC.S.A0022 - command: "readAttribute" - attribute: "UltrasonicUnoccupiedToOccupiedThreshold" - response: - constraints: - type: int8u - minValue: 1 - maxValue: 254 - - - label: - "Step 11:TH reads from the DUT the (0x0030) - PhysicalContactOccupiedToUnoccupiedDelay optional attribute, if - Physical Contact sensor" - PICS: OCC.S.A0030 - command: "readAttribute" - attribute: "PhysicalContactOccupiedToUnoccupiedDelay" - response: - constraints: - type: int16u - minValue: 0 - maxValue: 65535 - - - label: - "Step 12: TH reads from the DUT the (0x0031) - PhysicalContactUnoccupiedToOccupiedDelay optional attribute, if - Physical Contact sensor" - PICS: OCC.S.A0031 - command: "readAttribute" - attribute: "PhysicalContactUnoccupiedToOccupiedDelay" - response: - constraints: - type: int16u - minValue: 0 - maxValue: 65535 - - - label: - "Step 13: TH reads from the DUT the (0x0032) - PhysicalContactUnoccupiedToOccupiedThreshold optional attribute, if - Physical Contact sensor" - PICS: OCC.S.A0032 - command: "readAttribute" - attribute: "PhysicalContactUnoccupiedToOccupiedThreshold" - response: - constraints: - type: int8u - minValue: 1 - maxValue: 254 diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_3.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_3.yaml deleted file mode 100644 index ae96e2e6309955..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_3.yaml +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: - 3.2.3. [TC-OCC-2.3] OccupancySensorTypeBitmap and OccupancySensorType - interdependency with server as DUT - -PICS: - - OCC.S - -config: - nodeId: 0x12344321 - cluster: "Occupancy Sensing" - endpoint: 1 - -tests: - - label: "Step 1: Commission DUT to TH" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads OccupancySensorType attribute from DUT" - PICS: OCC.S.A0001 - command: "readAttribute" - attribute: "OccupancySensorType" - response: - constraints: - type: enum8 - minValue: 0 - maxValue: 3 - - - label: "Step 3: TH reads OccupancySensorTypeBitmap attribute from DUT" - PICS: OCC.S.A0002 - command: "readAttribute" - attribute: "OccupancySensorTypeBitmap" - response: - constraints: - type: bitmap8 - minValue: 1 - maxValue: 7 diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_4_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_4_Simulated.yaml deleted file mode 100644 index 03d37bcd79bff2..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_4_Simulated.yaml +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: - 28.3.2. [TC-OCC-2.4] OccupancySensorTypeBitmap and OccupancySensorType - interdependency with client as DUT - -PICS: - - OCC.C - -config: - nodeId: 0x12344321 - cluster: "Occupancy Sensing" - endpoint: 1 - -tests: - #- label: "Wait for the device to be commissioned" - # cluster: "DelayCommands" - # command: "WaitForCommissioning" - - - label: "TH reads OccupancySensorType attribute from DUT" - PICS: OCC.C.A0001 - wait: "readAttribute" - attribute: "OccupancySensorType" - - - label: "TH reads OccupancySensorTypeBitmap attribute from DUT" - PICS: OCC.C.A0002 - wait: "readAttribute" - attribute: "OccupancySensorTypeBitmap" diff --git a/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml deleted file mode 100644 index c246342b18a448..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: 27.3.3. [TC-OCC-3.1] Primary functionality with server as DUT - -PICS: - - OCC.S - -config: - nodeId: 0x12344321 - cluster: "Occupancy Sensing" - endpoint: 1 - -tests: - - label: "Step 1: Commission DUT to TH" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads Occupancy attribute from DUT" - PICS: OCC.S.A0000 - command: "readAttribute" - attribute: "Occupancy" - response: - saveAs: OccupancyValue - - - label: "Step 3: Operate on DUT to change the occupancy status" - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT && OCC.M.OccupancyChange - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" - - - label: - "Step 4: after a few seconds, TH reads Occupancy attribute from DUT" - PICS: OCC.S.A0000 && OCC.M.OccupancyChange - command: "readAttribute" - attribute: "Occupancy" - response: - constraints: - notValue: OccupancyValue