Skip to content

Commit

Permalink
Modified test Feb 10 (#24969)
Browse files Browse the repository at this point in the history
* Modified tests
TC-BINFO-2.1
TC-DGTHREAD-2.1
TC-DRLK-2.2
TC-DRLK-2.3
TC-DRLK-2.9
TC-TSTAT-2.2

* Auto generated files

* Restyled by whitespace

* Modifed SC tests
TC-SC-5.1
TC-SC-5.2

* Auto generated files

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
manjunath-grl and restyled-commits authored Feb 13, 2023
1 parent b3c599d commit 831fd05
Show file tree
Hide file tree
Showing 10 changed files with 505 additions and 431 deletions.
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_BINFO_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ tests:
"Verify that the Location is same as CountryCode value saved from
step1"
verification: |
./chip-tool basic read location 1 0
./chip-tool basicinformation read location 1 0
On TH, Verify that TH reads Location from the DUT successfully, the name should be string and length is less than or equal to 2 bytes.
[1656495999.760797][2249:2254] CHIP:DMG: }
Expand Down
8 changes: 4 additions & 4 deletions src/app/tests/suites/certification/Test_TC_DGTHREAD_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ tests:
"read NeighborTableList attribute from DUT and Verify that the
NeighborTable List size is Zero or greater and verify each node types"
verification: |
./chip-tool threadnetworkdiagnostics read neighbor-table-list 54 0
./chip-tool threadnetworkdiagnostics read neighbor-table 54 0
Verify "NeighborTableList value is Zero or greater " on the TH(Chip-tool) Log:
if the attribute has an entries verify the each node mentioned in the test plan.
Expand Down Expand Up @@ -250,10 +250,10 @@ tests:
value: "y"

- label:
"Read RouteTableList attribute from DUT and Verify that the
RouteTableList List size is Zero or greater and verify each node types"
"Read RouteTable attribute from DUT and Verify that the RouteTableList
List size is Zero or greater and verify each node types"
verification: |
./chip-tool threadnetworkdiagnostics read route-table-list 54 0
./chip-tool threadnetworkdiagnostics read route-table 54 0
Verify "RouteTableList value is Zero or greater " on the TH(Chip-tool) Log:
if the attribute has an entries verify the each node mentioned in the test plan.
Expand Down
6 changes: 3 additions & 3 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ tests:
Repeat this step PIXIT.DRLK.WrongCodeEntryLimit times and Verify that
DUT sends failure response to the TH"
verification: |
./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 1234568
./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PINCode 1234568
Verify " DUT sends failure response" on the TH(Chip-tool) Log:
Expand Down Expand Up @@ -276,7 +276,7 @@ tests:
"TH sends an Unlock Door Command from User1 to the DUT with the valid
PINCode and verify the DUT response"
verification: |
./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 123456
./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PINCode 123456
Verify " DUT sends failure response" on the TH(Chip-tool) Log:
Expand Down Expand Up @@ -316,7 +316,7 @@ tests:
[1661767967.006958][131055:131060] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0101 Attribute 0x0000_0031 DataVersion: 683420143
[1661767967.006988][131055:131060] CHIP:TOO: UserCodeTemporaryDisableTime: 10
./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 123456
./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PINCode 123456
Verify " DUT sends success response" on the TH(Chip-tool) Log:
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_DRLK_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ tests:
"TH sends the unlock Door command to the DUT with valid PINCode and
Verify that DUT sends SUCCESS response to the TH"
verification: |
./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 123456
./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PINCode 123456
Verify " DUT sends SUCCESS response" on the TH(Chip-tool) Log:
Expand Down
10 changes: 4 additions & 6 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ tests:
"TH sends Set Credential Command to DUT and Verify that the DUT sends
Set Credential Response command with status as DUPLICATE or OCCUPIED"
verification: |
./chip-tool doorlock set-credential 0 '{ "CredentialType" : 1, "CredentialIndex" : 1 }' 123456 1 null null 1 1 --timedInteractionTimeoutMs 1000
./chip-tool doorlock set-credential 0 '{ "credentialType" : 1, "credentialIndex" : 1 }' 123456 1 null null 1 1 --timedInteractionTimeoutMs 1000
Verify "DUT sends Set Credential Response command with response as DUPLICATE or OCCUPIED" on the TH(Chip-tool) Log:
Expand All @@ -227,16 +227,14 @@ tests:
Set Credential Response command with response as OCCUPIED if the
CredentialIndex is repeated"
verification: |
Mark as not applicable and proceed to next step
./chip-tool doorlock set-credential 0 '{ "CredentialType" : 1, "CredentialIndex" : 1 }' 123457 1 null null 1 1 --timedInteractionTimeoutMs 1000
./chip-tool doorlock set-credential 0 '{ "credentialType" : 1, "credentialIndex" : 1}' 123456 1 null null 1 1 --timedInteractionTimeoutMs 1000
Verify "DUT sends Set Credential Response command with response as DUPLICATE or OCCUPIED" on the TH(Chip-tool) Log:
[1660216276.191641][71849:71854] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0101 Command=0x0000_0023
[1660216276.191673][71849:71854] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0101 Command 0x0000_0023
[1660216276.191725][71849:71854] CHIP:TOO: SetCredentialResponse: {
[1660216276.191752][71849:71854] CHIP:TOO: status: 3
[1660216276.191752][71849:71854] CHIP:TOO: status: 2
[1660216276.191764][71849:71854] CHIP:TOO: userIndex: null
[1660216276.191776][71849:71854] CHIP:TOO: nextCredentialIndex: 2
[1660216276.191798][71849:71854] CHIP:TOO: }
Expand All @@ -258,7 +256,7 @@ tests:
verification: |
Mark as not applicable and proceed to next step
./chip-tool doorlock set-credential 2 '{ "CredentialType" : 1, "CredentialIndex" : 3 }' 123456 1 null null 1 1 --timedInteractionTimeoutMs 1000
./chip-tool doorlock set-credential 2 '{ "credentialType" : 1, "credentialIndex" : 3 }' 1234567 1 null null 1 1 --timedInteractionTimeoutMs 1000
Verify "DUT sends Set Credential Response command with response as OCCUPIED" on the TH(Chip-tool) Log:
Expand Down
9 changes: 9 additions & 0 deletions src/app/tests/suites/certification/Test_TC_SC_5_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@ tests:
EpochStartTime2: 2220002,
}

- label:
"TH reads GroupKeyMap Attribute from the GroupKeyManagement cluster"
cluster: "Group Key Management"
endpoint: 0
command: "readAttribute"
attribute: "GroupKeyMap"
response:
value: [{ FabricIndex: 1, GroupId: 0x0103, GroupKeySetID: 0x01a3 }]

- label: "TH reads GroupTable attribute"
cluster: "Group Key Management"
endpoint: 0
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_SC_5_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ tests:
},
{
FabricIndex: 1,
Privilege: 3,
Privilege: 4,
AuthMode: 3,
Subjects: [0x0103],
Targets: null,
Expand Down
Loading

0 comments on commit 831fd05

Please sign in to comment.