Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CERT-TEST-FAILURE] - TC-S-2.2- Test failed #33821

Closed
Ashwinigrl opened this issue Jun 10, 2024 · 0 comments · Fixed by #32632
Closed

[CERT-TEST-FAILURE] - TC-S-2.2- Test failed #33821

Ashwinigrl opened this issue Jun 10, 2024 · 0 comments · Fixed by #32632

Comments

@Ashwinigrl
Copy link

Ashwinigrl commented Jun 10, 2024

Feature Area

Area:Scenes

Test Case

TC-S-2.2

Reproduction steps

  1. Execute the below mentioned command to put DUT into a commissionable state : ./chip-all-clusters-app
  2. Once DUT reach the commission able state sent below mentioned command on TH. : ./chip-tool pairing onnetwork 1 20202021
  3. Once after successful pairing provide the below commands:

Precondition Steps for adding a Group:
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": "0x01a1","groupKeySecurityPolicy": 0, "epochKey0":"a0a1a2a3a4a5a6a7a8a9aaabacadaeaf","epochStartTime0": 1110000,"epochKey1":"b0b1b2b3b4b5b6b7b8b9babbbcbdbebf", "epochStartTime1": 1110001,"epochKey2":"c0c1c2c3c4c5c6c7c8c9cacbcccdcecf", "epochStartTime2": 1110002 }' 1 0

[1718021039.147785][36873:36875] CHIP:DMG: StatusIB =
[1718021039.147861][36873:36875] CHIP:DMG: {
[1718021039.147938][36873:36875] CHIP:DMG: status = 0x00 (SUCCESS),
[1718021039.148015][36873:36875] CHIP:DMG: },

./chip-tool groupkeymanagement write group-key-map '[{"groupId": "0x0001", "groupKeySetID": "0x01a1", "fabricIndex": 1}]' 1 0

[1718021089.747735][36877:36879] CHIP:DMG: StatusIB =
[1718021089.747812][36877:36879] CHIP:DMG: {
[1718021089.747912][36877:36879] CHIP:DMG: status = 0x00 (SUCCESS),
[1718021089.747981][36877:36879] CHIP:DMG: },

./chip-tool groups add-group 0x0001 Gp1 1 1

[1718021104.970199][36883:36885] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0004 Command=0x0000_0000
[1718021104.970377][36883:36885] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
[1718021104.970667][36883:36885] CHIP:TOO: AddGroupResponse: {
[1718021104.970734][36883:36885] CHIP:TOO: status: 0
[1718021104.970846][36883:36885] CHIP:TOO: groupID: 1
[1718021104.970948][36883:36885] CHIP:TOO: }

Send AddScene command to DUT with invalid ExtensionField (Invalid attribute ID for given cluster).
Here AttributeID 0x4011 is Invalid ID from Color Control Cluster

Actual Outcome:

./chip-tool scenesmanagement add-scene 0x0001 0x01 1000 "scene name" '[{"clusterID": "0x0300", "attributeValueList":[{"attributeID": "0x4011", "attributeValue": "0x01"}]}]' 1 1

[1718021138.581350][36889:36891] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0000
[1718021138.581539][36889:36891] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0000
[1718021138.581880][36889:36891] CHIP:TOO: AddSceneResponse: {
[1718021138.582027][36889:36891] CHIP:TOO: status: 0
[1718021138.582090][36889:36891] CHIP:TOO: groupID: 1
[1718021138.582200][36889:36891] CHIP:TOO: sceneID: 1
[1718021138.582252][36889:36891] CHIP:TOO: }

Expected Outcome:

./chip-tool scenesmanagement add-scene 0x0001 0x01 1000 "scene name" '[{"clusterID": "0x0300", "attributeValueList":[{"attributeID": "0x4011", "attributeValue": "0x01"}]}]' 1 1

[1718021138.581350][36889:36891] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0000
[1718021138.581539][36889:36891] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0000
[1718021138.581880][36889:36891] CHIP:TOO: AddSceneResponse: {
[1718021138.582027][36889:36891] CHIP:TOO: status: 133
[1718021138.582090][36889:36891] CHIP:TOO: groupID: 1
[1718021138.582200][36889:36891] CHIP:TOO: sceneID: 1
[1718021138.582252][36889:36891] CHIP:TOO: }

Bug prevalence

Whenever I do

GitHub hash of the SDK that was being used

c158260

Platform

raspi

Anything else?

As per the specification, In Add Scene Command If the ExtensionFieldSetStructs list is formatted invalid according to the ExtensionFieldSetStruct structure definition, then the status SHALL be INVALID_COMMAND in the AddSceneResponse,
But in current SDK the Status Response is "SUCCESS"

image

Step that require review:
Test step 8f

Reference log:
TC-S-2.2(DUT).txt
TC-S-2.2(CNTRL).txt

Spec References:

Test Plan References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants