Skip to content

Commit

Permalink
Removed prompt steps from 1.1 global attribute read testcase (#28944)
Browse files Browse the repository at this point in the history
* *_XX_1.1 tests reverted back to automated.
TC_ACFREMON_1_1
TC_ACL_1_1
TC_AIRQUAL_1_1
TC_BIND_1_1
TC_BINFO_1_1
TC_BRBINFO_1_1
TC_CC_1_1
TC_CDOCONC_1_1
TC_CMOCONC_1_1
TC_CNET_1_3
TC_DESC_1_1
TC_DGETH_1_1
TC_DGGEN_1_1
TC_DGSW_1_1
TC_DGTHREAD_1_1
TC_DLOG_1_1
TC_DRLK_1_1
TC_FAN_1_1
TC_FLABEL_1_1
TC_FLDCONC_1_1
TC_FLW_1_1
TC_GRPKEY_1_1
TC_HEPAFREMON_1_1
TC_ICDM_1_1
TC_ILL_1_1
TC_I_1_1
TC_I_2_2
TC_LWM_1_1
TC_MOD_1_1
TC_NDOCONC_1_1
TC_OO_1_1
TC_OPCREDS_1_2
TC_OPSTATE_1_1
TC_OZCONC_1_1
TC_PCC_1_1
TC_PMHCONC_1_1
TC_PMICONC_1_1
TC_PMKCONC_1_1
TC_PRS_1_1
TC_PSCFG_1_1
TC_PS_1_1
TC_REFALM_1_1
TC_RH_1_1
TC_RNCONC_1_1
TC_RVCCLEANM_1_1
TC_RVCRUNM_1_1
TC_TCCM_1_1
TC_TCTL_1_1
TC_TIMESYNC_1_1
TC_TMP_1_1
TC_TSTAT_1_1
TC_TSUIC_1_1
TC_TVOCCONC_1_1
TC_ULABEL_1_1

* Add auto generated files

* Updated ACT-1.1 test
  • Loading branch information
manjunath-grl authored and pull[bot] committed Oct 27, 2023
1 parent 24b9405 commit 4333281
Show file tree
Hide file tree
Showing 58 changed files with 1,824 additions and 11,336 deletions.
19 changes: 6 additions & 13 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,12 @@ PICS:
- label: "Does the DUT(server) support the TAGLIST attribute?"
id: DESC.S.A0004

#
#Feature
#
- label: "Does the device support the TagList command"
id: DESC.S.F00

#
# client / attributes
#
Expand Down Expand Up @@ -8835,19 +8841,6 @@ PICS:
id: OPSTATE.S.E01

#Server Commands Received
- label: "Does the device implement receiving the Pause command?"
id: OPSTATE.S.C00

- label: "Does the device implement receiving the Stop command?"
id: OPSTATE.S.C01

- label: "Does the device implement receiving the Start command?"
id: OPSTATE.S.C02

- label: "Does the device implement receiving the Resume command?"
id: OPSTATE.S.C03

#Commands recevied
- label: "Does the device implement receiving the Pause command?"
id: OPSTATE.S.C00.Rsp

Expand Down
140 changes: 4 additions & 136 deletions src/app/tests/suites/certification/Test_TC_ACFREMON_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,51 +143,7 @@ tests:
type: list
contains: [5]

#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
- label:
"Step 4f: TH reads AttributeList attribute from DUT. 1.The list SHALL
NOT contain any additional values in the standard or scoped range:
(0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 - 0x0000_FFFE). 2.The
list MAY contain values in the Manufacturer Extensible Identifier
(MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where XXXX is the allowed
MEI range (0x0001 - 0xFFF1), these values SHALL be ignored. 3.The list
SHALL NOT contain any values in the Test Vendor or invalid range:
(0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF), (0xXXXX_5000 -
0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the
allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool activatedcarbonfiltermonitoring read attribute-list 1 1
Via the TH (chip-tool), verify that the AttributeList attribute contains
- Mandatory entries:0x0002, 0xfff8, 0xfff9, 0xfffa, 0xfffb, 0xfffc & 0xfffd
- Optional entries:- 0x0003
- Based on feature support:- 0x0000, 0x0001
[1685958590.636044][11442:11444] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0072 Attribute 0x0000_FFFB DataVersion: 403478864
[1690179748.767756][7924:7926] CHIP:TOO: AttributeList: 12 entries
[1690179748.767825][7924:7926] CHIP:TOO: [1]: 0
[1690179748.767885][7924:7926] CHIP:TOO: [2]: 1
[1690179748.767943][7924:7926] CHIP:TOO: [3]: 2
[1690179748.767999][7924:7926] CHIP:TOO: [4]: 3
[1690179748.768056][7924:7926] CHIP:TOO: [5]: 4
[1690179748.768112][7924:7926] CHIP:TOO: [6]: 5
[1690179748.768170][7924:7926] CHIP:TOO: [7]: 65528
[1690179748.768227][7924:7926] CHIP:TOO: [8]: 65529
[1690179748.768283][7924:7926] CHIP:TOO: [9]: 65530
[1690179748.768340][7924:7926] CHIP:TOO: [10]: 65531
[1690179748.768397][7924:7926] CHIP:TOO: [11]: 65532
[1690179748.768454][7924:7926] CHIP:TOO: [12]: 65533
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Step 5a: TH reads EventList attribute from DUT"
- label: "Step 5: TH reads EventList attribute from DUT"
PICS: PICS_EVENT_LIST_ENABLED
command: "readAttribute"
attribute: "EventList"
Expand All @@ -196,36 +152,7 @@ tests:
constraints:
type: list

#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
- label:
"Step 5b: TH reads from the DUT the EventList attribute. 1.The list
SHALL NOT contain any additional values in the standard or scoped
range: (0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 - 0x0000_FFFE) 2.
The list MAY contain values in the Manufacturer Extensible Identifier
(MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where XXXX is the allowed
MEI range (0x0001 - 0xFFF1), these values SHALL be ignored. 3. The
list SHALL NOT contain any values in the Test Vendor or invalid range:
(0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF), (0xXXXX_5000 -
0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the
allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool activatedcarbonfiltermonitoring read event-list 1 1
Via the TH (chip-tool), verify that the EventList attribute. Below mentioned log is based on the RPI implementation, Value may vary on real DUT
[1685958846.723249][11454:11456] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0072 Attribute 0x0000_FFFA DataVersion: 403478864
[1685958846.723431][11454:11456] CHIP:TOO: EventList: 0 entries
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && PICS_EVENT_LIST_ENABLED
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Step 6a: Read the global attribute: AcceptedCommandList"
- label: "Step 6: Read the global attribute: AcceptedCommandList"
PICS: "!ACFREMON.S.C00.Rsp"
command: "readAttribute"
attribute: "AcceptedCommandList"
Expand All @@ -235,7 +162,7 @@ tests:
type: list

- label:
"Step 6a: Read the optional command (ResetCondition) in
"Step 6: Read the optional command (ResetCondition) in
AcceptedCommandList"
PICS: ACFREMON.S.C00.Rsp
command: "readAttribute"
Expand All @@ -245,69 +172,10 @@ tests:
type: list
contains: [0]

#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
- label:
"Step 6b: TH reads from the DUT the AcceptedCommandList attribute.
1.The list SHALL NOT contain any additional values in the standard or
scoped range: (0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 -
0x0000_FFFE). 2.The list MAY contain values in the Manufacturer
Extensible Identifier (MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where
XXXX is the allowed MEI range (0x0001 - 0xFFF1), these values SHALL be
ignored. 3.The list SHALL NOT contain any values in the Test Vendor or
invalid range: (0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF),
(0xXXXX_5000 - 0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where
XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool activatedcarbonfiltermonitoring read accepted-command-list 1 1
Via the TH (chip-tool), verify that the AcceptedCommandList attribute. Below mentioned log is based on the RPI implementation, Value may vary on real DUT
[1685959114.395290][11468:11470] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0072 Attribute 0x0000_FFF9 DataVersion: 403478864
[1685959114.395414][11468:11470] CHIP:TOO: AcceptedCommandList: 0 entries
[1690183785.805331][8169:8171] CHIP:TOO: [1]: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Step 7a: Read the global attribute: GeneratedCommandList"
- label: "Step 7: Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list

#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
- label:
"Step 7b: TH reads from the DUT the GeneratedCommandList attribute.
1.The list SHALL NOT contain any additional values in the standard or
scoped range: (0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 -
0x0000_FFFE). 2.The list MAY contain values in the Manufacturer
Extensible Identifier (MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where
XXXX is the allowed MEI range (0x0001 - 0xFFF1), these values SHALL be
ignored. 3.The list SHALL NOT contain any values in the Test Vendor or
invalid range: (0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF),
(0xXXXX_5000 - 0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where
XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool activatedcarbonfiltermonitoring read generated-command-list 1 1
Via the TH (chip-tool), verify that the GeneratedCommandList attribute. Below mentioned log is based on the RPI implementation, Value may vary on real DUT
[1685959192.277991][11472:11474] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0072 Attribute 0x0000_FFF8 DataVersion: 403478864
[1685959192.278115][11472:11474] CHIP:TOO: GeneratedCommandList: 0 entries
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
159 changes: 15 additions & 144 deletions src/app/tests/suites/certification/Test_TC_ACL_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,47 +74,7 @@ tests:
type: list
contains: [1]

#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
- label:
"Step 4c: TH reads AttributeList attribute from DUT. 1.The list SHALL
NOT contain any additional values in the standard or scoped range:
(0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 - 0x0000_FFFE). 2.The
list MAY contain values in the Manufacturer Extensible Identifier
(MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where XXXX is the allowed
MEI range (0x0001 - 0xFFF1), these values SHALL be ignored. 3.The list
SHALL NOT contain any values in the Test Vendor or invalid range:
(0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF), (0xXXXX_5000 -
0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the
allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool accesscontrol read attribute-list 1 0
Verify Successfully"AttributeList attribute " on the TH1(Chip-tool) Log:.
[1655960990.225266][2516:2521] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFFB DataVersion: 477297741
[1676270267.634187][20397:20399] CHIP:TOO: AttributeList: 11 entries
[1676270267.634206][20397:20399] CHIP:TOO: [1]: 0
[1676270267.634220][20397:20399] CHIP:TOO: [2]: 1
[1676270267.634233][20397:20399] CHIP:TOO: [3]: 2
[1676270267.634245][20397:20399] CHIP:TOO: [4]: 3
[1676270267.634258][20397:20399] CHIP:TOO: [5]: 4
[1676270267.634271][20397:20399] CHIP:TOO: [6]: 65528
[1676270267.634284][20397:20399] CHIP:TOO: [7]: 65529
[1676270267.634296][20397:20399] CHIP:TOO: [8]: 65530
[1676270267.634309][20397:20399] CHIP:TOO: [9]: 65531
[1676270267.634322][20397:20399] CHIP:TOO: [10]: 65532
[1676270267.634334][20397:20399] CHIP:TOO: [11]: 65533
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Step 5a: TH reads EventList attribute from DUT"
- label: "Step 5: TH reads EventList attribute from DUT"
PICS: PICS_EVENT_LIST_ENABLED
command: "readAttribute"
attribute: "EventList"
Expand All @@ -123,107 +83,18 @@ tests:
type: list
contains: [0, 1]

- label:
"Step 5b: TH reads EventList attribute from DUT. 1.The list SHALL NOT
contain any additional values in the standard or scoped range:
(0x0000_0000 - 0x0000_00FF). 2.The list MAY contain values in the
Manufacturer Extensible Identifier (MEI) range: (0xXXXX_0000 -
0xXXXX_00FF), where XXXX is the allowed MEI range (0x0001 - 0xFFF1),
these values SHALL be ignored. 3.The list SHALL NOT contain any values
in the Test Vendor or invalid range: (0x0000_0100 - 0x0000_FFFF),
(0xXXXX_0100 - 0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where
XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool accesscontrol read event-list 1 0
Via the TH (chip-tool), verify:
-that EventList attribute contains list of supported events.
-that list has two entries as value of 0 and 1 (if SAccessControlEntryChanged and AccessControlExtensionChanged event is supported).
[1676456597.556478][24006:24008] CHIP:DMG: }
[1676456597.556640][24006:24008] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFFA DataVersion: 3448736795
[1676456597.556677][24006:24008] CHIP:TOO: EventList: 2 entries
[1676456597.556687][24006:24008] CHIP:TOO: [1]: 0
[1676456597.556693][24006:24008] CHIP:TOO: [2]: 1
[1676456597.556763][24006:24008] CHIP:EM: <<< [E:51140i S:1376 M:55400435 (Ack:189635613)] (S) Msg TX to 1:0000000000000001 [110F] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1676456597.556778][24006:24008] CHIP:IN: (S) Sending msg 55400435 on secure session with LSID: 1376
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && PICS_EVENT_LIST_ENABLED
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

# List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
- label:
"Step 6: TH reads AcceptedCommandList attribute from DUT. 1. The list
MAY contain values in the Manufacturer Extensible Identifier (MEI)
range: (0xXXXX_0000 - 0xXXXX_00FF), where XXXX is the allowed MEI
range (0x0001 - 0xFFF1), these values SHALL be ignored. 2.The list
SHALL NOT contain any values in the Test Vendor or invalid range:
(0x0000_0100 - 0x0000_FFFF), (0xXXXX_0100 - 0xXXXX_FFFF) and
(0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the allowed MEI range
(0x0001 - 0xFFF1)"
verification: |
./chip-tool accesscontrol read accepted-command-list 1 0
Verify Successfully " AcceptedCommandList attribute " on the TH1(Chip-tool) Log:
[1656478328.210742][2458:2463] CHIP:DMG:
[1656478328.210767][2458:2463] CHIP:DMG: ],
[1656478328.210799][2458:2463] CHIP:DMG:
[1656478328.210826][2458:2463] CHIP:DMG: SuppressResponse = true,
[1656478328.210853][2458:2463] CHIP:DMG: InteractionModelRevision = 1
[1656478328.210877][2458:2463] CHIP:DMG: }
[1656478328.211032][2458:2463] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFF9 DataVersion: 3457122350
[1656478328.211099][2458:2463] CHIP:TOO: AcceptedCommandList: 0 entries
[1656478328.211245][2458:2463] CHIP:EM: Sending Standalone Ack for MessageCounter:163659373 on exchange 15270i
[1656478328.211313][2458:2463] CHIP:IN: Prepared secure message 0xffff8a2e3958 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 15270i with MessageCounter:229380798.
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

# List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
- label:
"Step 7: TH reads GeneratedCommandList attribute from DUT. 1.The list
MAY contain values in the Manufacturer Extensible Identifier (MEI)
range: (0xXXXX_0000 - 0xXXXX_00FF), where XXXX is the allowed MEI
range (0x0001 - 0xFFF1), these values SHALL be ignored. 2.The list
SHALL NOT contain any values in the Test Vendor or invalid range:
(0x0000_0100 - 0x0000_FFFF), (0xXXXX_0100 - 0xXXXX_FFFF) and
(0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the allowed MEI range
(0x0001 - 0xFFF1)"
verification: |
./chip-tool accesscontrol read generated-command-list 1 0
Verify Successfully" GeneratedCommandList attribute " on the TH1(Chip-tool) Log:
- label: "Step 6: TH reads AcceptedCommandList attribute from DUT"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

[[1656478396.324314][2467:2472] CHIP:DMG:
[1656478396.324346][2467:2472] CHIP:DMG: ],
[1656478396.324386][2467:2472] CHIP:DMG:
[1656478396.324419][2467:2472] CHIP:DMG: SuppressResponse = true,
[1656478396.324453][2467:2472] CHIP:DMG: InteractionModelRevision = 1
[1656478396.324484][2467:2472] CHIP:DMG: }
[1656478396.324673][2467:2472] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFF8 DataVersion: 3457122350
[1656478396.324752][2467:2472] CHIP:TOO: GeneratedCommandList: 0 entries
[1656478396.324843][2467:2472] CHIP:EM: Sending Standalone Ack for MessageCounter:73836177 on exchange 65471i
[1656478396.324920][2467:2472] CHIP:IN: Prepared secure message 0xffffab7ed958 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 65471i with MessageCounter:243106706.
[1656478396.324967][2467:2472] CHIP:IN: Sending encrypted msg 0xffffab7ed958 with MessageCounter:243106706
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "Step 7: TH reads GeneratedCommandList attribute from DUT"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list
1 change: 1 addition & 0 deletions src/app/tests/suites/certification/Test_TC_ACT_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ tests:
type: list
contains: [2]

#Issue: https://github.com/project-chip/connectedhomeip/issues/26721
- label: "Step 5: TH reads EventList attribute from DUT"
verification: |
./chip-tool actions read event-list 1 1
Expand Down
Loading

0 comments on commit 4333281

Please sign in to comment.