Skip to content

Commit

Permalink
Merge branch 'master' into idm-4.2-troubleshoot
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-marquez-csa authored Feb 16, 2024
2 parents 5750461 + f7494fa commit 53c1002
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 9 deletions.
56 changes: 47 additions & 9 deletions src/app/tests/suites/certification/Test_TC_S_2_6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ tests:
CHIP:TOO: }
disabled: true

- label: "Step 1b: Repeat Step 1a with TH2 and TH3."
- label: "Step 1b: Repeat Step 1a with TH2."
PICS: S.S.C03.Rsp
verification: |
./chip-tool scenesmanagement remove-all-scenes 0x0000 2 1 --commissioner-name beta
Expand All @@ -116,7 +116,11 @@ tests:
[1700826575.191974][15971:15973] CHIP:TOO: status: 0
[1700826575.191985][15971:15973] CHIP:TOO: groupID: 0
[1700826575.191995][15971:15973] CHIP:TOO: }
disabled: true

- label: "Step 1C: Repeat Step 1a with TH3."
PICS: S.S.C03.Rsp
verification: |
./chip-tool scenesmanagement remove-all-scenes 0x0000 3 1 --commissioner-name gamma
Verify the RemoveAllScenesResponse with following fields:
Expand Down Expand Up @@ -282,10 +286,10 @@ tests:
[1701242801.625919][7636:7638] CHIP:TOO: RemainingCapacity: 7
[1701242801.625930][7636:7638] CHIP:TOO: FabricIndex: 2
[1701242801.625941][7636:7638] CHIP:TOO: }
disabled: true

TH3:
- label: "Step 2e: Repeat Step 2b and 2c with TH3."
verification: |
Please use Interactive mode to Verify the subscription of an event
Here the command to enter interactive mode:--
./chip-tool interactive start
Expand Down Expand Up @@ -966,11 +970,11 @@ tests:
disabled: true

- label:
Verify that the DUT sends a report data to TH2 for FabricSceneInfo
after the MinIntervalFloor time; store the RemainingCapacity field
from this fabric’s entry reported in FabricSceneInfo into
Remaining2ndCapacity; verify Remaining2ndCapacity equals
(MaxRemainingCapacity).
"Step 10b: Verify that the DUT sends a report data to TH2 for
FabricSceneInfo after the MinIntervalFloor time; store the
RemainingCapacity field from this fabric’s entry reported in
FabricSceneInfo into Remaining2ndCapacity; verify Remaining2ndCapacity
equals (MaxRemainingCapacity)."
verification: |
./chip-tool scenesmanagement subscribe fabric-scene-info 100 200 2 1 --commissioner-name beta
Expand All @@ -989,3 +993,37 @@ tests:
[1705915866.717640][21433:21435] CHIP:TOO: }
disabled: true

- label:
"Step 11a: TH1 removes the TH2 fabric by sending the RemoveFabric
command to the DUT with the FabricIndex set to th2FabricIndex"
verification: |
./chip-tool operationalcredentials remove-fabric th2FabricIndex 1 0
On TH1(chip-tool) verify the success with the nocresponse with statuscode is success(0)
[1784416866.004187][21433:21435] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008
[1784416866.004214][21433:21435] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008
[1784416866.004236][21433:21435] CHIP:TOO: NOCResponse: {
[1784416866.004250][21433:21435] CHIP:TOO: statusCode: 0
[1784416866.004255][21433:21435] CHIP:TOO: fabricIndex: th2FabricIndex
[1784416866.004259][21433:21435] CHIP:TOO: }
[1784416866.004270][21433:21435] CHIP:DMG: ICR moving to [AwaitingDe]
disabled: true

- label:
"Step 11b: TH1 removes the TH3 fabric by sending the RemoveFabric
command to the DUT with the FabricIndex set to th3FabricIndex"
verification: |
./chip-tool operationalcredentials remove-fabric th3FabricIndex 1 0
On TH1(chip-tool) verify the success with the nocresponse with statuscode is success(0)
[1784416866.004187][21433:21435] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008
[1784416866.004214][21433:21435] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008
[1784416866.004236][21433:21435] CHIP:TOO: NOCResponse: {
[1784416866.004250][21433:21435] CHIP:TOO: statusCode: 0
[1784416866.004255][21433:21435] CHIP:TOO: fabricIndex: th3FabricIndex
[1784416866.004259][21433:21435] CHIP:TOO: }
[1784416866.004270][21433:21435] CHIP:DMG: ICR moving to [AwaitingDe]
disabled: true
27 changes: 27 additions & 0 deletions src/python_testing/spec_parsing_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,33 @@ def remove_problem(location: typing.Union[CommandPathLocation, FeaturePathLocati
clusters[id] = new

# TODO: All these fixups should be removed BEFORE SVE if at all possible
# Workaround for Color Control cluster - the spec uses a non-standard conformance. Set all to optional now, will need
# to implement either arithmetic conformance handling (once spec changes land here) or specific test
# https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/7808 for spec changes.
# see 3.2.8. Defined Primaries Information Attribute Set, affects Primary<#>X/Y/Intensity attributes.
cc_id = Clusters.ColorControl.id
cc_attr = Clusters.ColorControl.Attributes
affected_attributes = [cc_attr.Primary1X,
cc_attr.Primary1Y,
cc_attr.Primary1Intensity,
cc_attr.Primary2X,
cc_attr.Primary2Y,
cc_attr.Primary2Intensity,
cc_attr.Primary3X,
cc_attr.Primary3Y,
cc_attr.Primary3Intensity,
cc_attr.Primary4X,
cc_attr.Primary4Y,
cc_attr.Primary4Intensity,
cc_attr.Primary5X,
cc_attr.Primary5Y,
cc_attr.Primary5Intensity,
cc_attr.Primary6X,
cc_attr.Primary6Y,
cc_attr.Primary6Intensity,
]
for a in affected_attributes:
clusters[cc_id].attributes[a.attribute_id].conformance = optional()

# Workaround for temp control cluster - this is parsed incorrectly in the DM XML and is missing all its attributes
# Remove this workaround when https://github.com/csa-data-model/projects/issues/330 is fixed
Expand Down

0 comments on commit 53c1002

Please sign in to comment.