forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TBRM Tests scripts consistency with te2 fixes (project-chip#35153)
* Add files via upload Add yaml test script for TBRM * Update TEST_TC_TBRM_2.2.yaml * Update TEST_TC_TBRM_2.3.yaml * Update TEST_TC_TBRM_2.4.yaml * Test script consitancy wit test plan after TE2 * Test script consitancy wit test plan after TE2 * Update src/app/tests/suites/certification/Test_TC_TBRM_2_3.yaml Co-authored-by: Karsten Sperling <[email protected]> * Update src/app/tests/suites/certification/Test_TC_TBRM_2_2.yaml Co-authored-by: Karsten Sperling <[email protected]> * Restyled by whitespace * Restyled by prettier-yaml * Test_TC_TBRM_2_4. synchronisation with TC-THNETDIR-2.3 according test Plan * Restyled by whitespace * Test tweaks to get CI to pass - Use pairing payload matching the other parameters - Check response of ArmFailSafe commands - Fix bad merge in commissioner_commands.py * Restyled by prettier-yaml --------- Co-authored-by: StephaneGUELEC <[email protected]> Co-authored-by: Karsten Sperling <[email protected]> Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Karsten Sperling <[email protected]>
- Loading branch information
Showing
4 changed files
with
170 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Copyright (c) 2024 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: | ||
"[TC-TBRM-2.4] Verify that getting Active or Pending Dataset in the PASE | ||
session results in unsupported access" | ||
|
||
PICS: | ||
- TBRM.S | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
|
||
payload: "MT:-24J0AFN00KA0648G00" | ||
discriminator: 3840 | ||
PakeVerifier: | ||
type: octet_string | ||
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf" | ||
|
||
tests: | ||
- label: "Wait for the commissioned device to be retrieved" | ||
cluster: DelayCommands | ||
command: WaitForCommissionee | ||
arguments: | ||
values: | ||
- name: nodeId | ||
value: nodeId | ||
|
||
- label: "Open Commissioning Window" | ||
endpoint: 0 | ||
cluster: Administrator Commissioning | ||
command: OpenCommissioningWindow | ||
timedInteractionTimeoutMs: 2000 | ||
arguments: | ||
values: | ||
- name: CommissioningTimeout | ||
value: 180 | ||
- name: PAKEPasscodeVerifier | ||
value: PakeVerifier | ||
- name: Discriminator | ||
value: discriminator | ||
- name: Iterations | ||
value: 1000 | ||
- name: Salt | ||
value: "SPAKE2P Key Salt" | ||
|
||
- label: "TH2 establishes a PASE session with the DUT" | ||
identity: beta | ||
cluster: CommissionerCommands | ||
endpoint: 0 | ||
command: EstablishPASESession | ||
arguments: | ||
values: | ||
- name: nodeId | ||
value: nodeId | ||
- name: payload | ||
value: payload | ||
|
||
- label: | ||
"TH2 send GetActiveDatasetRequest command to the DUT in PASE session" | ||
identity: beta | ||
cluster: Thread Border Router Management | ||
endpoint: 1 | ||
command: GetActiveDatasetRequest | ||
response: | ||
error: UNSUPPORTED_ACCESS | ||
|
||
- label: | ||
"TH2 send GetPendingDatasetRequest command to the DUT in PASE session" | ||
identity: beta | ||
cluster: Thread Border Router Management | ||
endpoint: 1 | ||
command: GetPendingDatasetRequest | ||
response: | ||
error: UNSUPPORTED_ACCESS |
44 changes: 44 additions & 0 deletions
44
src/app/tests/suites/certification/Test_TC_TBRM_3_1_Simulated.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (c) 2024 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: "[TC-TBRM-3.1] Functionality with client as DUT" | ||
|
||
PICS: | ||
- TBRM.C | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
cluster: Thread Border Router Management | ||
endpoint: 1 | ||
|
||
tests: | ||
# Step 1 | ||
- label: "DUT send SetActiveDatasetRequest to TH" | ||
PICS: TBRM.C.C03.Tx | ||
wait: "SetActiveDatasetRequest" | ||
|
||
# Step 2 | ||
- label: "DUT send SetPendingDatasetRequest to TH" | ||
PICS: TBRM.C.C04.Tx | ||
wait: "SetPendingDatasetRequest" | ||
|
||
# Step 3 | ||
- label: "DUT send GetActiveDatasetRequest to TH" | ||
PICS: TBRM.C.C00.Tx | ||
wait: "GetActiveDatasetRequest" | ||
|
||
# Step 4 | ||
- label: "DUT send GetPendingDatasetRequest to TH" | ||
PICS: TBRM.C.C01.Tx | ||
wait: "GetPendingDatasetRequest" |