Skip to content

Commit

Permalink
Modified tests (#29883)
Browse files Browse the repository at this point in the history
TC-CADMIN-1.4
TC-CADMIN-1.6
TC-CADMIN-1.10
TC-CADMIN-1.16
TC-CADMIN-1.21
TC-CADMIN-1.22
TC-CADMIN-1.23
TC-CADMIN-1.24
  • Loading branch information
manjunath-grl authored and pull[bot] committed Dec 11, 2023
1 parent 882c45e commit 1671268
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 117 deletions.
42 changes: 22 additions & 20 deletions src/app/tests/suites/certification/Test_TC_CADMIN_1_10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ config:
incorrectSetupCodePayload:
type: char_string
defaultValue: "MT:-24J0AFN00I.0648G00"
PIXIT.CADMIN.CwDuration:
type: int16u
defaultValue: 180

tests:
- label: "Precondition: Reset Devices to factory defaults"
Expand All @@ -63,6 +66,17 @@ tests:
value: "y"

- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
cluster: "CommissionerCommands"
command: "PairWithCode"
PICS: CADMIN.S
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: correctPayload

- label: "Step 1a: TH_CR1 commissioned with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
PICS: CADMIN.S
Expand All @@ -79,37 +93,25 @@ tests:
arguments:
values:
- name: "CommissioningTimeout"
value: 900
value: PIXIT.CADMIN.CwDuration

- label: "Step 2a: Waiting after opening commissioning window"
PICS: CADMIN.S.C01.Rsp
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: waitAfterCommissioning

#Check for DNS-SD advertisement CM is not possible in YAML
- label: "Step 3: Verify that the DNS-SD advertisement shows CM=1"
verification: |
On TH_CR1 send the below command
ubuntu@ubuntu:~/may16_cntrl/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matterc._udp
+ eth0 IPv6 2664ED6939FC373C _matterc._udp local
= eth0 IPv6 2664ED6939FC373C _matterc._udp local
hostname = [E45F010F27530000.local]
address = [fe80::e65f:1ff:fe0f:2753]
port = [5540]
txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "SAI=300" "SII=5000" "VP=65521+32769"]
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
PICS: CADMIN.S.C01.Rsp
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "message"
value: "enter 'y' after success"
- name: "expectedValue"
value: "y"
- name: "commissioningMode"
value: 1

#As per issue https://github.com/CHIP-Specifications/chip-test-scripts/issues/495 adding --discover-once flag
- label:
Expand Down
73 changes: 39 additions & 34 deletions src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ config:
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
PIXIT.CADMIN.CwDuration:
type: int16u
defaultValue: 180

tests:
- label: "Precondition: Reset Devices to factory defaults"
Expand All @@ -56,6 +59,18 @@ tests:
value: "y"

- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
identity: "alpha"
cluster: "CommissionerCommands"
command: "PairWithCode"
PICS: CADMIN.S
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payload

- label: "Step 1: TH_CR1 commissioned with DUT_CE"
identity: "alpha"
cluster: "DelayCommands"
command: "WaitForCommissionee"
Expand All @@ -74,9 +89,10 @@ tests:
arguments:
values:
- name: "CommissioningTimeout"
value: 180
value: PIXIT.CADMIN.CwDuration

- label: "Step 2a: Waiting after opening commissioning window"
PICS: CADMIN.S.C01.Rsp
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
Expand Down Expand Up @@ -115,9 +131,10 @@ tests:
arguments:
values:
- name: "CommissioningTimeout"
value: 180
value: PIXIT.CADMIN.CwDuration

- label: "Step 4a: Waiting after opening commissioning window"
PICS: CADMIN.S.C01.Rsp
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
Expand Down Expand Up @@ -200,29 +217,16 @@ tests:
response:
error: FAILURE

#Issue https://github.com/project-chip/connectedhomeip/issues/21999
- label:
"Step 8b: TH_CR2 reads the Basic Information Clusters NodeLabel
mandatory attribute of DUT_CE"
PICS: BINFO.S.A0005 && PICS_USER_PROMPT
verification: |
Using TH_CR2 read attribute
Verify read command fail as expected since the DUT_CE is no longer on the network on TH_CR2 (chip-tool) log
./chip-tool basicinformation read node-label 2 0 --commissioner-name beta
[1678876803.495007][714337:714339] CHIP:SC: Received error (protocol code 1) during pairing process: ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1727: CHIP Error 0x000000C9: No shared trusted root
[1678876803.495018][714337:714339] CHIP:IN: SecureSession[0x7f2764026220]: Released - Type:2 LSID:16528
[1678876803.495040][714337:714339] CHIP:-: ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1727: CHIP Error 0x000000C9: No shared trusted root at ../../commands/clusters/ModelCommand.cpp:62
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
PICS: BINFO.S.A0005
identity: "beta"
command: "readAttribute"
cluster: "Basic Information"
attribute: "NodeLabel"
response:
error: FAILURE

- label: "Step 9: TH_CR1 reads the list of Fabrics on DUT_CE"
identity: "alpha"
Expand All @@ -232,13 +236,13 @@ tests:
attribute: "Fabrics"
fabricFiltered: false
response:
value:
[
{ Label: "", FabricIndex: 1, NodeID: nodeId },
{ Label: "", FabricIndex: 3, NodeID: nodeId3 },
]
constraints:
type: list
contains:
[
{ Label: "", FabricIndex: 1, NodeID: nodeId },
{ Label: "", FabricIndex: 3, NodeID: nodeId3 },
]

- label: "Step 11: TH_CR1 opens a commissioning window on DUT_CE using BCM"
identity: "alpha"
Expand All @@ -249,9 +253,10 @@ tests:
arguments:
values:
- name: "CommissioningTimeout"
value: 180
value: PIXIT.CADMIN.CwDuration

- label: "Step 11a: Waiting after opening commissioning window"
PICS: CADMIN.S.C01.Rsp
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
Expand Down Expand Up @@ -299,14 +304,14 @@ tests:
attribute: "Fabrics"
fabricFiltered: false
response:
value:
[
{ Label: "", FabricIndex: 1, NodeID: nodeId },
{ Label: "", FabricIndex: 4, NodeID: nodeId2 },
{ Label: "", FabricIndex: 3, NodeID: nodeId3 },
]
constraints:
type: list
contains:
[
{ Label: "", FabricIndex: 1, NodeID: nodeId },
{ Label: "", FabricIndex: 4, NodeID: nodeId2 },
{ Label: "", FabricIndex: 3, NodeID: nodeId3 },
]

- label: "Step 13a: Remove TH2 FabricIndex"
PICS: OPCREDS.S.C0a.Rsp && CADMIN.S
Expand Down
15 changes: 15 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ config:
nodeId: 0x12344321
timeout: 950
endpoint: 0
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"

tests:
- label: "Precondition: Reset Devices to factory defaults"
Expand All @@ -45,6 +48,17 @@ tests:
value: "y"

- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
cluster: "CommissionerCommands"
command: "PairWithCode"
PICS: CADMIN.S
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payload

- label: "Step 1: TH_CR1 commissioned with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
PICS: CADMIN.S
Expand All @@ -66,6 +80,7 @@ tests:
value: 900

- label: "Step 3: Wait 901 seconds for commissioning Window to be closed"
PICS: CADMIN.S.C01.Rsp
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
Expand Down
15 changes: 15 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ config:
nodeId: 0x12344321
timeout: 950
endpoint: 0
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
discriminator:
type: int16u
defaultValue: 3840
Expand Down Expand Up @@ -50,6 +53,17 @@ tests:
value: "y"

- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
cluster: "CommissionerCommands"
command: "PairWithCode"
PICS: CADMIN.S
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payload

- label: "Step 1: TH_CR1 commissioned with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
PICS: CADMIN.S.C00.Rsp
Expand Down Expand Up @@ -110,6 +124,7 @@ tests:
value: "SPAKE2P Key Salt"

- label: "Step 3: Wait for commissioning Window to 901 seconds"
PICS: CADMIN.S.C00.Rsp
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
Expand Down
15 changes: 15 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ config:
nodeId: 0x12344321
timeout: 200
endpoint: 0
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"

tests:
- label: "Precondition: Reset Devices to factory defaults"
Expand All @@ -45,6 +48,17 @@ tests:
value: "y"

- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
cluster: "CommissionerCommands"
command: "PairWithCode"
PICS: CADMIN.S
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payload

- label: "Step 1: TH_CR1 commissioned with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
PICS: CADMIN.S.C01.Rsp
Expand All @@ -67,6 +81,7 @@ tests:

- label:
"Step 3: Wait for 181 seconds for commissioning Window to be closed"
PICS: CADMIN.S.C01.Rsp
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
Expand Down
15 changes: 15 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ config:
nodeId: 0x12344321
timeout: 200
endpoint: 0
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
discriminator:
type: int16u
defaultValue: 3840
Expand Down Expand Up @@ -50,6 +53,17 @@ tests:
value: "y"

- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
cluster: "CommissionerCommands"
command: "PairWithCode"
PICS: CADMIN.S
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payload

- label: "Step 1: TH_CR1 commissioned with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
PICS: CADMIN.S.C00.Rsp
Expand Down Expand Up @@ -110,6 +124,7 @@ tests:
value: "SPAKE2P Key Salt"

- label: "Step 3: Wait for commissioning Window to 181 seconds"
PICS: CADMIN.S.C00.Rsp
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
Expand Down
Loading

0 comments on commit 1671268

Please sign in to comment.