Skip to content

Commit 3263e40

Browse files
jlatusekarkqrestyled-commits
authored
Yaml for check for fabricSynchronization condition on Agregator device (#34629)
* Check for FabricSynchronization condition on Aggregator device * Update after code review * Restyled by prettier-yaml * Remove python changes * Exclude TestFabricSyncBridgedNode from required list * Update PICS according to conversation in CHIP-Specification --------- Co-authored-by: Arkadiusz Bokowy <a.bokowy@samsung.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 9fc8c77 commit 3263e40

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

scripts/tests/chiptest/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def _GetInDevelopmentTests() -> Set[str]:
157157
# TestEventTriggersEnabled is true, which it's not in CI.
158158
"Test_TC_SMOKECO_2_6.yaml", # chip-repl does not support local timeout (07/20/2023) and test assumes
159159
# TestEventTriggersEnabled is true, which it's not in CI.
160+
"TestFabricSyncBridgedNode.yaml", # [TODO] fabric-bridge-app lacks some feature so this test currently fails
160161
}
161162

162163

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Copyright (c) 2024 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Test Fabric Synchronization condition on Bridged Node Device Type
16+
17+
PICS:
18+
- MCORE.FS
19+
20+
config:
21+
nodeId: 0x12344321
22+
endpoint: 1
23+
endpointCommissionerControl: 0
24+
25+
tests:
26+
- label:
27+
"Read the DeviceTypeList attribute of the Descriptor cluster and check
28+
whether the device type is Aggregator."
29+
cluster: "Descriptor"
30+
command: "readAttribute"
31+
attribute: "DeviceTypeList"
32+
response:
33+
value: [
34+
{
35+
DeviceType: 14, # Aggregator
36+
},
37+
]
38+
39+
- label:
40+
"Read the ServerList attribute of the Descriptor cluster and check
41+
whether the Commissioner Control is present."
42+
endpoint: endpointCommissionerControl
43+
cluster: "Descriptor"
44+
command: "readAttribute"
45+
attribute: "ServerList"
46+
response:
47+
constraints:
48+
type: list
49+
contains: [
50+
0x0751, # Commissioner Control Cluster
51+
]
52+
53+
- label:
54+
"Read the SupportedDeviceCategories attribute of the Commissioner
55+
Control cluster and check whether the FabricSynchronization bit is
56+
set."
57+
endpoint: endpointCommissionerControl
58+
cluster: "CommissionerControl"
59+
command: "readAttribute"
60+
attribute: "SupportedDeviceCategories"
61+
response:
62+
constraints:
63+
type: bitmap32
64+
hasMasksSet: [0x01]

0 commit comments

Comments
 (0)