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

Cherry-pick: TC-RR-1.1: Fix for pre-existing fabric removal (#32921) #33596

Merged

Conversation

cecille
Copy link
Contributor

@cecille cecille commented May 24, 2024

  • TC-RR-1.1: Fix for pre-existing fabric removal

This test assumed that the client ordering matched to the ordering of the fabric table, but this is not the case if there is a fabric on the device before the test starts. In this case, the initial fabric is in table slot 1 with index 1, the test starts in table slot 2, with fabric index 2. Then the initial fabric is removed from table slot 1, and the test adds a new fabric. The new fabric is allocated fabric index 3, but appears in slot 1 in the table, and the order between the controllers and the fabric table as read off the device is now out of sync.

Instead, name the controllers based on the fabric index rather than the index in the fabric table.

TEST: commissioned all-clusters using chip-tool then ran RR-1.1.
Test now passes, whereas before there was a failure.

  • Update src/python_testing/TC_RR_1_1.py

  • Update src/python_testing/TC_RR_1_1.py

  • Address review comments, fix

* TC-RR-1.1: Fix for pre-existing fabric removal

This test assumed that the client ordering matched to the ordering
of the fabric table, but this is not the case if there is a fabric
on the device before the test starts. In this case, the initial
fabric is in table slot 1 with index 1, the test starts in table
slot 2, with fabric index 2. Then the initial fabric is removed
from table slot 1, and the test adds a new fabric. The new fabric
is allocated fabric index 3, but appears in slot 1 in the table,
and the order between the controllers and the fabric table as read
off the device is now out of sync.

Instead, name the controllers based on the fabric index rather
than the index in the fabric table.

TEST: commissioned all-clusters using chip-tool then ran RR-1.1.
      Test now passes, whereas before there was a failure.

* Update src/python_testing/TC_RR_1_1.py

Co-authored-by: Andrei Litvin <[email protected]>

* Update src/python_testing/TC_RR_1_1.py

* Address review comments, fix

---------

Co-authored-by: Andrei Litvin <[email protected]>
@github-actions github-actions bot added the tests label May 24, 2024
@andy31415 andy31415 merged commit aa1ecd2 into project-chip:v1.2-branch May 24, 2024
54 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants