Skip to content

Commit 1cb9424

Browse files
Restyle
1 parent 958dc3e commit 1cb9424

File tree

2 files changed

+240
-237
lines changed

2 files changed

+240
-237
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,116 @@
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: "[TC-TBRM-2.2] Initial Dataset configuration of Thread Border Router"
16-
17-
PICS:
18-
- TBRM.S
19-
20-
config:
21-
nodeId: 0x12344321
22-
cluster: Thread Border Router Management
23-
endpoint: 1
24-
PIXIT.TBRM.THREAD_ACTIVE_DATASET:
25-
type: octet_string
26-
defaultValue: "hex:0e080000000000010000000300001235060004001fffe002082ad51c02fe8f64f20708fddb8af85255f93a051083e2b9b2cc609b00125adbf823ea2ab20102c4d904100a133626c411d7de02a570ca3c3d80470c0402a0f7f8031054687265616441637469766554657374"
27-
# Active Timestamp ----^^^^^^^^^^^^^^^^
28-
PIXIT.TBRM.THREAD_ACTIVE_DATASET.ACTIVE_TIMESTAMP: 0x10000
29-
PIXIT.TBRM.THREAD_INVALID_DATASET:
30-
type: octet_string
31-
defaultValue: "hex:00112233"
32-
33-
# Precondition:
34-
# The DUT does not have an Active Dataset
35-
36-
tests:
37-
- label: "Wait for the commissioned device to be retrieved"
38-
cluster: DelayCommands
39-
command: WaitForCommissionee
40-
arguments:
41-
values:
42-
- name: nodeId
43-
value: nodeId
44-
45-
- label: "TH reads the ActiveDatasetTimestamp attribute from the DUT"
46-
command: readAttribute
47-
attribute: ActiveDatasetTimestamp
48-
response:
49-
value: null
50-
51-
- label: "TH reads the PendingDatasetTimestamp attribute from the DUT"
52-
command: readAttribute
53-
attribute: PendingDatasetTimestamp
54-
response:
55-
value: null
56-
57-
- label: "TH sends a valid ActiveDatasetRequest command to the DUT without having armed the fail-safe"
58-
command: SetActiveDatasetRequest
59-
arguments:
60-
values:
61-
- name: ActiveDataset
62-
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
63-
response:
64-
error: FAILSAFE_REQUIRED
65-
66-
- label: "TH sends ArmFailSafe command to the DUT"
67-
cluster: General Commissioning
68-
command: ArmFailSafe
69-
endpoint: 0
70-
arguments:
71-
values:
72-
- name: ExpiryLengthSeconds
73-
value: 900
74-
- name: Breadcrumb
75-
value: 1
76-
77-
- label: "TH sends an invalid ActiveDatasetRequest command to the DUT"
78-
command: SetActiveDatasetRequest
79-
arguments:
80-
values:
81-
- name: ActiveDataset
82-
value: PIXIT.TBRM.THREAD_INVALID_DATASET
83-
response:
84-
error: INVALID_COMMAND
85-
86-
- label: "TH sends a valid ActiveDatasetRequest command to the DUT"
87-
command: SetActiveDatasetRequest
88-
arguments:
89-
values:
90-
- name: ActiveDataset
91-
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
92-
93-
- label: "TH reads the InterfaceEnabled attribute from the DUT"
94-
command: readAttribute
95-
attribute: InterfaceEnabled
96-
response:
97-
value: true
98-
99-
- label: "TH reads the ActiveDatasetTimestamp attribute from the DUT"
100-
command: readAttribute
101-
attribute: ActiveDatasetTimestamp
102-
response:
103-
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET.ACTIVE_TIMESTAMP
104-
constraints:
105-
type: int64u
106-
107-
- label: "TH sends a valid GetActiveDatasetRequest command to the DUT"
108-
command: GetActiveDatasetRequest
109-
response:
110-
values:
111-
- name: Dataset
112-
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
113-
constraints:
114-
type: octet_string
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: "[TC-TBRM-2.2] Initial Dataset configuration of Thread Border Router"
16+
17+
PICS:
18+
- TBRM.S
19+
20+
config:
21+
nodeId: 0x12344321
22+
cluster: Thread Border Router Management
23+
endpoint: 1
24+
PIXIT.TBRM.THREAD_ACTIVE_DATASET:
25+
type: octet_string
26+
defaultValue: "hex:0e080000000000010000000300001235060004001fffe002082ad51c02fe8f64f20708fddb8af85255f93a051083e2b9b2cc609b00125adbf823ea2ab20102c4d904100a133626c411d7de02a570ca3c3d80470c0402a0f7f8031054687265616441637469766554657374"
27+
# Active Timestamp ----^^^^^^^^^^^^^^^^
28+
PIXIT.TBRM.THREAD_ACTIVE_DATASET.ACTIVE_TIMESTAMP: 0x10000
29+
PIXIT.TBRM.THREAD_INVALID_DATASET:
30+
type: octet_string
31+
defaultValue: "hex:00112233"
32+
33+
# Precondition:
34+
# The DUT does not have an Active Dataset
35+
36+
tests:
37+
- label: "Wait for the commissioned device to be retrieved"
38+
cluster: DelayCommands
39+
command: WaitForCommissionee
40+
arguments:
41+
values:
42+
- name: nodeId
43+
value: nodeId
44+
45+
- label: "TH reads the ActiveDatasetTimestamp attribute from the DUT"
46+
command: readAttribute
47+
attribute: ActiveDatasetTimestamp
48+
response:
49+
value: null
50+
51+
- label: "TH reads the PendingDatasetTimestamp attribute from the DUT"
52+
command: readAttribute
53+
attribute: PendingDatasetTimestamp
54+
response:
55+
value: null
56+
57+
- label:
58+
"TH sends a valid ActiveDatasetRequest command to the DUT without
59+
having armed the fail-safe"
60+
command: SetActiveDatasetRequest
61+
arguments:
62+
values:
63+
- name: ActiveDataset
64+
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
65+
response:
66+
error: FAILSAFE_REQUIRED
67+
68+
- label: "TH sends ArmFailSafe command to the DUT"
69+
cluster: General Commissioning
70+
command: ArmFailSafe
71+
endpoint: 0
72+
arguments:
73+
values:
74+
- name: ExpiryLengthSeconds
75+
value: 900
76+
- name: Breadcrumb
77+
value: 1
78+
79+
- label: "TH sends an invalid ActiveDatasetRequest command to the DUT"
80+
command: SetActiveDatasetRequest
81+
arguments:
82+
values:
83+
- name: ActiveDataset
84+
value: PIXIT.TBRM.THREAD_INVALID_DATASET
85+
response:
86+
error: INVALID_COMMAND
87+
88+
- label: "TH sends a valid ActiveDatasetRequest command to the DUT"
89+
command: SetActiveDatasetRequest
90+
arguments:
91+
values:
92+
- name: ActiveDataset
93+
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
94+
95+
- label: "TH reads the InterfaceEnabled attribute from the DUT"
96+
command: readAttribute
97+
attribute: InterfaceEnabled
98+
response:
99+
value: true
100+
101+
- label: "TH reads the ActiveDatasetTimestamp attribute from the DUT"
102+
command: readAttribute
103+
attribute: ActiveDatasetTimestamp
104+
response:
105+
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET.ACTIVE_TIMESTAMP
106+
constraints:
107+
type: int64u
108+
109+
- label: "TH sends a valid GetActiveDatasetRequest command to the DUT"
110+
command: GetActiveDatasetRequest
111+
response:
112+
values:
113+
- name: Dataset
114+
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
115+
constraints:
116+
type: octet_string

0 commit comments

Comments
 (0)