-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TC_CADMIN_1_9 and TC_CADMIN_1_10 tests to not be broken. (#21690)
There were several issues: * The values of the "payload" variable were mixed up between the two tests. as a result, "payload" actually had an incorrect setup code in both tests, and the tests testing that commissioning fails actually tested nothing at all, because it was guaranteed to fail. * Some of the setup payloads involved claimed a zero discovery capability bitmask, instead of the expected "bit 2 is set to indicate on-network commissioning". This led to a lot of BLE traffic when these tests run. The specific fixes here are: 1) In TC_CADMIN_1_9, regenerate the "payload" value by running: chip-tool payload generate-qrcode --vendor-id 65521 --product-id 32769 --discriminator 3840 --rendezvous 4 --setup-pin-code 47514138 and regenerate "payload2" by running: chip-tool payload generate-qrcode --vendor-id 65521 --product-id 32769 --discriminator 3840 --rendezvous 4 --setup-pin-code 20202023 This ensures that the only difference between "payload" and "payload2" is the setup code, and sets the setup code for "payload" to match the verifier we are using. 2) In TC_CADMIN_1_10, regenerate the "payload" value by running: chip-tool payload generate-qrcode --vendor-id 65521 --product-id 32769 --discriminator 3840 --rendezvous 4 --setup-pin-code 20202021 and regenerate "payload2" by running: chip-tool payload generate-qrcode --vendor-id 65521 --product-id 32769 --discriminator 3840 --rendezvous 4 --setup-pin-code 20202023 3) In both tests, add verification that the "payload" value can in fact commission the device properly when a commissioning window is opened the way the test opens it, so the rest of the test is meaningful. 4) Rename "payload" and "payload2" to more meaningful names.
- Loading branch information
1 parent
0a34141
commit 1075640
Showing
3 changed files
with
503 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.