Skip to content

Commit 21f0bb4

Browse files
committed
Fix tests for data model updates
1 parent faf3c60 commit 21f0bb4

File tree

1 file changed

+49
-4
lines changed

1 file changed

+49
-4
lines changed

rs-matter/tests/data_model/long_reads.rs

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ use rs_matter::{
1919
data_model::{
2020
cluster_basic_information as basic_info, cluster_on_off as onoff,
2121
objects::{EncodeValue, GlobalElements},
22-
sdm::{admin_commissioning as adm_comm, general_commissioning as gen_comm, noc},
22+
sdm::{
23+
admin_commissioning as adm_comm, general_commissioning as gen_comm, noc,
24+
nw_commissioning,
25+
},
2326
system_model::{access_control as acl, descriptor},
2427
},
2528
interaction_model::{
@@ -130,6 +133,48 @@ fn wildcard_read_resp(part: u8) -> Vec<AttrResp<'static>> {
130133
),
131134
attr_data!(0, 49, GlobalElements::FeatureMap, dont_care.clone()),
132135
attr_data!(0, 49, GlobalElements::AttributeList, dont_care.clone()),
136+
attr_data!(
137+
0,
138+
49,
139+
nw_commissioning::Attributes::MaxNetworks,
140+
dont_care.clone()
141+
),
142+
attr_data!(
143+
0,
144+
49,
145+
nw_commissioning::Attributes::Networks,
146+
dont_care.clone()
147+
),
148+
attr_data!(
149+
0,
150+
49,
151+
nw_commissioning::Attributes::ConnectMaxTimeSecs,
152+
dont_care.clone()
153+
),
154+
attr_data!(
155+
0,
156+
49,
157+
nw_commissioning::Attributes::InterfaceEnabled,
158+
dont_care.clone()
159+
),
160+
attr_data!(
161+
0,
162+
49,
163+
nw_commissioning::Attributes::LastNetworkingStatus,
164+
dont_care.clone()
165+
),
166+
attr_data!(
167+
0,
168+
49,
169+
nw_commissioning::Attributes::LastNetworkID,
170+
dont_care.clone()
171+
),
172+
attr_data!(
173+
0,
174+
49,
175+
nw_commissioning::Attributes::LastConnectErrorValue,
176+
dont_care.clone()
177+
),
133178
attr_data!(0, 60, GlobalElements::FeatureMap, dont_care.clone()),
134179
attr_data!(0, 60, GlobalElements::AttributeList, dont_care.clone()),
135180
attr_data!(
@@ -158,6 +203,9 @@ fn wildcard_read_resp(part: u8) -> Vec<AttrResp<'static>> {
158203
noc::AttributesDiscriminants::CurrentFabricIndex,
159204
dont_care.clone()
160205
),
206+
];
207+
208+
let part2 = vec![
161209
attr_data!(
162210
0,
163211
62,
@@ -185,9 +233,6 @@ fn wildcard_read_resp(part: u8) -> Vec<AttrResp<'static>> {
185233
acl::AttributesDiscriminants::Extension,
186234
dont_care.clone()
187235
),
188-
];
189-
190-
let part2 = vec![
191236
attr_data!(
192237
0,
193238
31,

0 commit comments

Comments
 (0)