Skip to content

Commit

Permalink
Fixes yaml script issues Oct 13 (project-chip#29747)
Browse files Browse the repository at this point in the history
* Fixes issue: 677, 678, 679, 680, 689
DGWIFI-1.1
BRBINFO-2.1
FAN-1.1
MOD-1.1
ALOGIN-12.1

* Auto generated files

* Restyled by whitespace

* Fixes issue: 987, 675
TC-AUDIOOUTPUT-1.8
TC-BINFO-2.2

* Restyled by whitespace

* Modified tests
TC-DRLK-2.1
TC-DRLK-2.10

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
manjunath-grl and restyled-commits authored Oct 18, 2023
1 parent 3fb86f8 commit f47aed4
Show file tree
Hide file tree
Showing 11 changed files with 236 additions and 158 deletions.
37 changes: 37 additions & 0 deletions src/app/tests/suites/certification/Test_TC_ALOGIN_12_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,43 @@ tests:
- label: "Preconditions"
verification: |
Commission TH to DUT, if not done so already. In some cases, such as with a Casting Video Player, the TH commissions the DUT.
Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner) or tv-casting-app (when DUT is a commissionee):
The following command on the example tv-app will launch a content app on endpoint 4:
./chip-tool applicationlauncher launch-app '{"catalogVendorID": 123, "applicationID": "exampleid"}' 1 1
./chip-tv-casting-app applicationlauncher launch-app '{"catalogVendorID": 123, "applicationID": "exampleid"}' 1 1
On TH (tv-app), Verify the launch app command is received successfully.
1666779708.066501][24994:24994] CHIP:DMG: InvokeRequestMessage =
[1666779708.066504][24994:24994] CHIP:DMG: {
[1666779708.066507][24994:24994] CHIP:DMG: suppressResponse = false,
[1666779708.066509][24994:24994] CHIP:DMG: timedRequest = false,
[1666779708.066512][24994:24994] CHIP:DMG: InvokeRequests =
[1666779708.066517][24994:24994] CHIP:DMG: [
[1666779708.066520][24994:24994] CHIP:DMG: CommandDataIB =
[1666779708.066524][24994:24994] CHIP:DMG: {
[1666779708.066527][24994:24994] CHIP:DMG: CommandPathIB =
[1666779708.066532][24994:24994] CHIP:DMG: {
[1666779708.066536][24994:24994] CHIP:DMG: EndpointId = 0x1,
[1666779708.066540][24994:24994] CHIP:DMG: ClusterId = 0x50c,
[1666779708.066545][24994:24994] CHIP:DMG: CommandId = 0x0,
[1666779708.066547][24994:24994] CHIP:DMG: },
[1666779708.066551][24994:24994] CHIP:DMG:
[1666779708.066553][24994:24994] CHIP:DMG: CommandFields =
[1666779708.066555][24994:24994] CHIP:DMG: {
[1666779708.066557][24994:24994] CHIP:DMG: 0x0 =
[1666779708.066560][24994:24994] CHIP:DMG: {
[1666779708.066566][24994:24994] CHIP:DMG: 0x0 = 123,
[1666779708.066569][24994:24994] CHIP:DMG: 0x1 = "exampleid" (9 chars),
[1666779708.066572][24994:24994] CHIP:DMG: },
[1666779708.066575][24994:24994] CHIP:DMG: },
[1666779708.066578][24994:24994] CHIP:DMG: },
[1666779708.066581][24994:24994] CHIP:DMG:
[1666779708.066583][24994:24994] CHIP:DMG: ],
[1666779708.066586][24994:24994] CHIP:DMG:
[1666779708.066588][24994:24994] CHIP:DMG: InteractionModelRevision = 1
[1666779708.066590][24994:24994] CHIP:DMG: },
[1666779708.066602][24994:24994] CHIP:DMG: AccessControl: checking f=2 a=c s=0x000000000001B669 t= c=0x0000_050C e=1 p=o
disabled: true

- label: "Step 1: DUT sends GetSetupPIN command to TH"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tests:
response:
constraints:
type: bitmap32
hasMasksSet: [0x2]
hasMasksSet: [0x1]

- label: "Step 2b: Read the global attribute: FeatureMap"
PICS: " !AUDIOOUTPUT.S.F00 "
Expand All @@ -57,7 +57,7 @@ tests:
response:
constraints:
type: bitmap32
hasMasksClear: [0x2]
hasMasksClear: [0x1]

- label: "Step 3: Read the global attribute: AttributeList"
PICS: PICS_EVENT_LIST_ENABLED
Expand Down
28 changes: 26 additions & 2 deletions src/app/tests/suites/certification/Test_TC_BINFO_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,37 @@ tests:
minInterval: 30
maxInterval: 100

- label: "Verify that ShutDown event has priority set as CRITICAL"
- label:
"Shutdown the DUT and Verify that ShutDown event has priority set as
CRITICAL"
verification: |
To verify ShutDown event follow the below commands , Pls use equivalent command on the respective DUT
1. Launch chip-tool into interactive mode with the command
./chip-tool interactive start
2. run below command in interactive mode shell and Turn down the DUT
basicinformation subscribe-event shut-down 20 100 1 0
verify that ShutDown event as priority set has CRITICAL on TH(Chip-tool)
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0001
[1653050528.900202][119367:119372] CHIP:TOO: Event number: 5
[1653050528.900295][119367:119372] CHIP:TOO: Priority: Critical
[1653050528.900386][119367:119372] CHIP:TOO: Timestamp: 289436805
[1653050528.900630][119367:119372] CHIP:TOO: ShutDown: {
[1653050528.900732][119367:119372] CHIP:TOO: }
[1653050528.900892][119367:119372] CHIP:DMG: Refresh LivenessCheckTime for 28000 milliseconds with SubscriptionId = 0x27408c83 Peer = 01:0000000000000001
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && BINFO.S.E01
arguments:
values:
- name: "message"
value: "If priority set as CRITICAL enter 'y' for success"
value:
"Enter 'y' after successfully ShutDown DUT & priority set as
CRITICAL"
- name: "expectedValue"
value: "y"
13 changes: 8 additions & 5 deletions src/app/tests/suites/certification/Test_TC_BRBINFO_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ tests:
verification: |
./chip-tool bridgeddevicebasicinformation write node-label '"newnode"' 1 3
Verify response has unsupported write on TH(chip-tool) Log:
Via the TH (chip-tool), verify the SUCCESS response for NodeLabel attribute write function.
Current sample apps do not have this implementation. However, if the vendor has implemented it, the below response will be displayed.
NOTE the quotes: single-quote/double-quote/string/double-quote/single-quote
Expand All @@ -181,7 +183,7 @@ tests:
[1660839701.840505][2444:2449] CHIP:DMG:
[1660839701.840578][2444:2449] CHIP:DMG: StatusIB =
[1660839701.840661][2444:2449] CHIP:DMG: {
[1660839701.840742][2444:2449] CHIP:DMG: status = 0x88 (UNSUPPORTED_WRITE),
[1660839701.840742][2444:2449] CHIP:DMG: status = 0x00 (SUCCESS),
[1660839701.840827][2444:2449] CHIP:DMG: },
[1660839701.840905][2444:2449] CHIP:DMG:
[1660839701.840973][2444:2449] CHIP:DMG: },
Expand All @@ -199,11 +201,12 @@ tests:
verification: |
./chip-tool bridgeddevicebasicinformation read node-label 1 3
Verify the value of node-label is type of string and contains length between 0 and 32 in TH(chip-tool) Log:
Note: If the write access is implemented then the value of the of the Nodelabel will be changed into "newnode"
Via the TH (chip-tool), verify that the NodeLabel attribute value is changed to newnode.
Current sample apps do not have this implementation. However, if the vendor has implemented it, the below response will be displayed.
[1657696463.081741][15476:15481] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0039 Attribute 0x0000_0005 DataVersion: 2577979325
[1657696463.081791][15476:15481] CHIP:TOO: NodeLabel: Light 1
[1657696463.081791][15476:15481] CHIP:TOO: NodeLabel: newnode
cluster: "LogCommands"
command: "UserPrompt"
arguments:
Expand Down
67 changes: 35 additions & 32 deletions src/app/tests/suites/certification/Test_TC_DGWIFI_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,35 +122,7 @@ tests:
type: list
contains: [11]

- label: "Step 5a: TH reads AcceptedCommandList from DUT"
PICS: " !DGWIFI.S.F01 "
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label:
"Step 5b: TH reads Feature dependent(DGWIFI.S.F01) command in
AcceptedCommandList from DUT"
PICS: DGWIFI.S.F01
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0]

- label: "Step 6: TH reads GeneratedCommandList from DUT"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list

- label: "Step 7a: TH reads EventList from DUT"
- label: "Step 5a: TH reads EventList from DUT"
PICS:
" !DGWIFI.S.E00 && !DGWIFI.S.E01 && !DGWIFI.S.E02 &&
PICS_EVENT_LIST_ENABLED"
Expand All @@ -160,8 +132,9 @@ tests:
value: []
constraints:
type: list

- label:
"Step 7b: TH reads optional attribute (Disconnection) in EventList
"Step 5b: TH reads optional attribute (Disconnection) in EventList
from DUT"
PICS: DGWIFI.S.E00 && PICS_EVENT_LIST_ENABLED
command: "readAttribute"
Expand All @@ -170,8 +143,9 @@ tests:
constraints:
type: list
contains: [0]

- label:
"Step 7c: TH reads optional attribute (AssociationFailure) in
"Step 5c: TH reads optional attribute (AssociationFailure) in
EventList from DUT"
PICS: DGWIFI.S.E01 && PICS_EVENT_LIST_ENABLED
command: "readAttribute"
Expand All @@ -180,8 +154,9 @@ tests:
constraints:
type: list
contains: [1]

- label:
"Step 7d: TH reads optional attribute (ConnectionStatus) in EventList
"Step 5d: TH reads optional attribute (ConnectionStatus) in EventList
from DUT"
PICS: DGWIFI.S.E02 && PICS_EVENT_LIST_ENABLED
command: "readAttribute"
Expand All @@ -190,3 +165,31 @@ tests:
constraints:
type: list
contains: [2]

- label: "Step 6a: TH reads AcceptedCommandList from DUT"
PICS: " !DGWIFI.S.F01 "
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label:
"Step 6b: TH reads Feature dependent(DGWIFI.S.F01) command in
AcceptedCommandList from DUT"
PICS: DGWIFI.S.F01
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0]

- label: "Step 7: TH reads GeneratedCommandList from DUT"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_DRLK_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ tests:
minValue: 0
maxValue: 11

- label: "Step 2c: TH writes LockType attribute as 10"
- label: "Step 2b: TH writes LockType attribute as 10"
PICS: DRLK.S.A0001
command: "writeAttribute"
attribute: "LockType"
Expand Down
13 changes: 2 additions & 11 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ tests:
0-Single"
PICS: DRLK.S.F08 && DRLK.S.C1a.Rsp
verification: |
./chip-tool doorlock set-user 0 2 xxx 6452 3 0 0 1 1 --timedInteractionTimeoutMs 1000
./chip-tool doorlock set-user 0 2 xxx 6452 1 0 0 1 1 --timedInteractionTimeoutMs 1000
Via the TH (chip-tool), verify the SUCCESS response for setting the users details.
Expand All @@ -459,15 +459,6 @@ tests:
[1658994912.123915][4290:4295] CHIP:DMG: status = 0x00 (SUCCESS),
[1658994912.123959][4290:4295] CHIP:DMG: },
[1658994912.124003][4290:4295] CHIP:DMG:
[1658994912.124039][4290:4295] CHIP:DMG: },
[1658994912.124079][4290:4295] CHIP:DMG:
[1658994912.124110][4290:4295] CHIP:DMG: },
[1658994912.124147][4290:4295] CHIP:DMG:
[1658994912.124176][4290:4295] CHIP:DMG: ],
[1658994912.124212][4290:4295] CHIP:DMG:
[1658994912.124241][4290:4295] CHIP:DMG: InteractionModelRevision = 1
[1658994912.124270][4290:4295] CHIP:DMG: },
[1658994912.124341][4290:4295] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0101 Command=0x0000_001A Status=0x0
disabled: true

- label: "Step 5b: TH reads the LockUserChange event from DUT"
Expand Down Expand Up @@ -631,7 +622,7 @@ tests:
[1658995364.178185][4383:4388] CHIP:DMG: },
./chip-tool doorlock set-user 0 1 xxx 6452 3 0 0 1 1 --timedInteractionTimeoutMs 1000
./chip-tool doorlock set-user 0 1 xxx 6452 1 0 0 1 1 --timedInteractionTimeoutMs 1000
Via the TH (chip-tool), verify the SUCCESS response for setting the users details.
Expand Down
21 changes: 15 additions & 6 deletions src/app/tests/suites/certification/Test_TC_FAN_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ tests:
type: bitmap32
hasMasksSet: [0x20]

- label: "Step 4: Read the global attribute: AttributeList"
- label: "Step 4a: Read the global attribute: AttributeList"
PICS: PICS_EVENT_LIST_ENABLED
command: "readAttribute"
attribute: "AttributeList"
Expand All @@ -125,7 +125,7 @@ tests:
type: list
contains: [0, 1, 2, 3, 65528, 65529, 65530, 65531, 65532, 65533]

- label: "Step 4: Read the global attribute: AttributeList"
- label: "Step 4a: Read the global attribute: AttributeList"
PICS: "!PICS_EVENT_LIST_ENABLED"
command: "readAttribute"
attribute: "AttributeList"
Expand All @@ -135,7 +135,7 @@ tests:
contains: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]

- label:
"Step 4: Read the feature dependent FAN.S.F00 (SPD) attribute in
"Step 4c: Read the feature dependent FAN.S.F00 (SPD) attribute in
AttributeList"
PICS: FAN.S.F00
command: "readAttribute"
Expand All @@ -146,7 +146,7 @@ tests:
contains: [4, 5, 6]

- label:
"Step 4: Read the feature dependent FAN.S.F02(RCK) attribute in
"Step 4d: Read the feature dependent FAN.S.F02(RCK) attribute in
AttributeList"
PICS: FAN.S.F02
command: "readAttribute"
Expand All @@ -157,7 +157,7 @@ tests:
contains: [7, 8]

- label:
"Step 4: Read the feature dependent FAN.S.F03(WND) attribute in
"Step 4e: Read the feature dependent FAN.S.F03(WND) attribute in
AttributeList"
PICS: FAN.S.F03
command: "readAttribute"
Expand All @@ -168,7 +168,7 @@ tests:
contains: [9, 10]

- label:
"Step 4: Read the feature dependent FAN.S.F05(DIR) attribute in
"Step 4f: Read the feature dependent FAN.S.F05(DIR) attribute in
AttributeList"
PICS: FAN.S.F05
command: "readAttribute"
Expand All @@ -178,6 +178,15 @@ tests:
type: list
contains: [11]

- label: "Step 5: TH reads EventList attribute from DUT"
PICS: PICS_EVENT_LIST_ENABLED
command: "readAttribute"
attribute: "EventList"
response:
value: []
constraints:
type: list

- label: "Step 6: Read the global attribute: AcceptedCommandList"
PICS: " !FAN.S.C00.Rsp "
command: "readAttribute"
Expand Down
24 changes: 7 additions & 17 deletions src/app/tests/suites/certification/Test_TC_MOD_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,13 @@ tests:
- name: "nodeId"
value: nodeId

#Issue: https://github.com/project-chip/connectedhomeip/issues/26445
- label: "Step 2: TH reads the ClusterRevision attribute from the DUT"
verification: |
./chip-tool modeselect read cluster-revision 1 1
Verify the "ClusterRevision" value is of unit16 and reflects the highest revision number 2 on the TH(Chip-tool) and below is the sample log provided for the raspi platform:
[1645775623.658997][3277:3282] CHIP:TOO: ClusterRevision: 1
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "Step 2: Read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 2
constraints:
type: int16u

- label: "Step 3: TH reads the FeatureMap attribute from the DUT"
PICS: MOD.S.F00
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/ci-pics-values
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ AUDIOOUTPUT.S.C01.Rsp=1
AUDIOOUTPUT.C=1
AUDIOOUTPUT.C.C00.Tx=1
AUDIOOUTPUT.C.C01.Tx=1
AUDIOOUTPUT.S.F00=0
AUDIOOUTPUT.S.F00=1

TGTNAV.S=1
TGTNAV.S.A0000=1
Expand Down
Loading

0 comments on commit f47aed4

Please sign in to comment.