Skip to content

Commit

Permalink
Added updated Scripts (#18267)
Browse files Browse the repository at this point in the history
* Added updated Scripts

* Added Auto generated files

* Modified DM-2.2

* Added auto generated files

* Added Auto generated files

* modified js file

* Auto genrated files

Co-authored-by: manjunath-grl <manjunath.grl@outlook.com>
  • Loading branch information
2 people authored and pull[bot] committed Aug 29, 2023
1 parent aec89fe commit 2279952
Show file tree
Hide file tree
Showing 9 changed files with 1,582 additions and 2,839 deletions.
111 changes: 63 additions & 48 deletions src/app/tests/suites/certification/Test_TC_DM_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name: 3.2.2. [TC-DM-2.2] Operational Credential Attributes

config:
nodeId: 0x12344321
cluster: "Operational Credentials"
cluster: "Basic"
endpoint: 0

tests:
Expand All @@ -28,65 +28,80 @@ tests:
- name: "nodeId"
value: nodeId

- label: "Query NOCs"
- label: "Query SoftwareVersion"
command: "readAttribute"
# TODO: Enabled and update value when SDK supports this.
disabled: true
attribute: "NOCs"
PICS: DM_ICACERT
attribute: "SoftwareVersion"
response:
value: [{ NOC: 0 }]
saveAs: SoftwareVersionValue
constraints:
type: list

- label: "Query NOCs"
command:
"readAttribute"
# TODO: Enabled and update value when SDK supports this.
disabled: true
attribute: "NOCs"
PICS: DM_ICACERT
response:
value: [{ NOC: 0, ICAC: 0 }]
constraints:
type: list
type: uint8

- label: "Query fabrics list"
- label: "Query Reachable Fabrics"
command: "readAttribute"
attribute: "Fabrics"
attribute: "Reachable"
response:
value: [
{
# We really don't know what values to expect for any of
# the fields, except Label.
Label: "",
},
]
constraints:
type: list
type: bool

- label: "Query Supported Fabrics"
command: "readAttribute"
attribute: "SupportedFabrics"
response:
value: 16
constraints:
type: uint8
- label: "Reboot target device"
cluster: "SystemCommands"
command: "Reboot"

- label: "Query Commissioned Fabrics"
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Query SoftwareVersion"
command: "readAttribute"
attribute: "CommissionedFabrics"
attribute: "SoftwareVersion"
response:
value: 1
constraints:
type: uint8
value: SoftwareVersionValue

##Event 11343 implementation not done
- label: "Reboot target device"
cluster: "SystemCommands"
command: "Reboot"

- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Factory Reset the accessory"
cluster: "SystemCommands"
command: "FactoryReset"

- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Reboot target device"
cluster: "SystemCommands"
command: "Reboot"

- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Query User Trusted Root Certificates"
###Event 11343 implementation not done
- label: "Query Reachable Fabrics"
command: "readAttribute"
attribute: "TrustedRootCertificates"
attribute: "Reachable"
response:
# Can't check for the expected value here, since we don't know it.
# TODO: Check the length, at least?
# value: [237]
constraints:
type: list
type: bool
188 changes: 130 additions & 58 deletions src/app/tests/suites/certification/Test_TC_ETHDIAG_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ tests:
- name: "nodeId"
value: nodeId

#Disabled due to issue #16552 and #13648
- label: "Read PHYRate attribute"
disabled: true
command: "readAttribute"
attribute: "PHYRate"
response:
value: null

- label: "Read PHYRate attribute constraints"
command: "readAttribute"
attribute: "PHYRate"
Expand All @@ -45,40 +37,39 @@ tests:
minValue: 0
maxValue: 9

- label: "Read FullDuplex attribute"
disabled: true
command: "readAttribute"
attribute: "FullDuplex"
response:
value: null

- label: "Read FullDuplex attribute constraints"
command: "readAttribute"
attribute: "FullDuplex"
response:
constraints:
type: bool

- label: "Read PacketRxCount attribute"
disabled: true
command: "readAttribute"
attribute: "PacketRxCount"
response:
value: 0

#issue #13648
- label: "Read PacketRxCount attribute constraints"
command: "readAttribute"
attribute: "PacketRxCount"
response:
constraints:
type: uint64

- label: "Read PacketTxCount attribute"
disabled: true
command: "readAttribute"
attribute: "PacketTxCount"
response:
value: 0
- label:
"Read PacketRxCount value from DUT and verify the number of packets
received on ethernet network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read packet-rx-count 1 0
Verify the value of PacketRxCount is in range uint64
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0002 DataVersion: 3872576452
[1649663623.009973][8103:8108] CHIP:TOO: PacketRxCount: 3322
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read PacketTxCount attribute constraints"
command: "readAttribute"
Expand All @@ -87,12 +78,24 @@ tests:
constraints:
type: uint64

- label: "Read TxErrCount attribute"
disabled: true
command: "readAttribute"
attribute: "TxErrCount"
response:
value: 0
- label:
"Read PacketTxCount value from DUT and verify the number of packets
received on ethernet network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read packet-tx-count 1 0
Verify the value of PacketTxCount is in range uint64
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0003 DataVersion: 3872576452
[1649663793.192934][8117:8122] CHIP:TOO: PacketTxCount: 3220
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read TxErrCount attribute constraints"
command: "readAttribute"
Expand All @@ -101,12 +104,24 @@ tests:
constraints:
type: uint64

- label: "Read CollisionCount attribute"
disabled: true
command: "readAttribute"
attribute: "CollisionCount"
response:
value: 0
- label:
"Read TxErrCount value from DUT and verify value indicates the number
of failed packet transmission on ethernet network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read tx-err-count 1 1
Verify the value of TxErrCount is in range uint64
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0004 DataVersion: 3872576452
[1649663843.295395][8123:8128] CHIP:TOO: TxErrCount: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read CollisionCount attribute constraints"
command: "readAttribute"
Expand All @@ -115,12 +130,25 @@ tests:
constraints:
type: uint64

- label: "Read OverrunCount attribute"
disabled: true
command: "readAttribute"
attribute: "OverrunCount"
response:
value: 0
- label:
"Read CollisionCount value from DUT and verify value indicates the
number of collision occurred while transmitting packets on ethernet
network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read collision-count 1 1
Verify the value of CollisionCount is in range uint64
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0005 DataVersion: 3872576452
[1649663870.221742][8133:8138] CHIP:TOO: CollisionCount: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read OverrunCount attribute constraints"
command: "readAttribute"
Expand All @@ -129,12 +157,24 @@ tests:
constraints:
type: uint64

- label: "Read CarrierDetect attribute"
disabled: true
command: "readAttribute"
attribute: "CarrierDetect"
response:
value: null
- label:
"Read OverrunCount value from DUT and verify value indicates the
number of packets dropped due to lack of buffer memory on ethernet
network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read overrun-count 1 1
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0006 DataVersion: 3872576452
[1649663948.738274][8142:8147] CHIP:TOO: OverrunCount: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read CarrierDetect attribute constraints"
command: "readAttribute"
Expand All @@ -143,16 +183,48 @@ tests:
constraints:
type: bool

- label: "Read TimeSinceReset attribute"
disabled: true
command: "readAttribute"
attribute: "TimeSinceReset"
response:
value: 0
- label:
"Read CarrierDetect value from DUT and verify value indicates the
presence of carrier detect control signal on ethernet network
interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read carrier-detect 1 1
Verify the value of CarrierDetect is either bool or null
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0007 DataVersion: 3872576452
[1649663972.829304][8149:8154] CHIP:TOO: CarrierDetect: null
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read TimeSinceReset attribute constraints"
command: "readAttribute"
attribute: "TimeSinceReset"
response:
constraints:
type: uint64

- label:
"Read TimeSinceReset value from DUT and verify the value indicates the
duration of time, in minutes"
verification: |
./chip-tool ethernetnetworkdiagnostics read time-since-reset 1 1
Verify the value of TimeSinceReset is in range uint64
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0008 DataVersion: 3872576452
[1649664046.010810][8158:8163] CHIP:TOO: TimeSinceReset: 5219
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_MC_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ tests:
- name: "nodeId"
value: nodeId

- label: "Put the device into low power mode"
- label: "TH sends Sleep command to DUT"
command: "Sleep"
Loading

0 comments on commit 2279952

Please sign in to comment.