-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
chip-tool
Support Needed for Generating invalid QR/manual codes
#16385
Comments
chip-tool
Support Needed for Generating invalid QR codeschip-tool
Support Needed for Generating invalid QR/manual codes
Can't we just use a bad QR code, manually generated, to test this? |
While the other steps are clear to me, I don't understand the one related to TLV data.
but it is unclear to me that there is any short of field specifying the TLV length. |
I have done #16704 that should fix all the cases mentioned here, except the one about variable length TLV since it is unclear to me for now. |
@vivien-apple Thank you for the changes to generate invalid onboarding payloads Regarding the "TLV data field", this is a mistake in the test plan and is being addressed in an upcoming PR for the TC-DD test plan. There is no field to specify the TLV data length specifically, just an optional TLV data field in the payload. |
Problem
While testing TC-DD-3.12/13, the test steps require generating invalid QR/manual codes used as an Onboarding Payload while testing negative scenarios for a DUT commissioner.
chip-tool does not currently support generating QR/manual codes for the following cases:
5. Invalid VID_PID_PRESENT for manual codes6.
6.
Proposed Solution
Add support to chip-tool to generate these intentionally-invalid QR codes so that negative test-case scenarios can be properly tested.
Affected Test Cases
TE8
[TC-DD-3.12] Commissioning Flow - QR Code - Negative scenario [DUT - Commissioner]
[TC-DD-3.14] Commissioning Flow - Manual Pairing Code - Negative scenario [DUT - Commissioner]
The text was updated successfully, but these errors were encountered: