-
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
[TC-DD-3.17] - DUT should terminate the commissioning process when QR code encodes a test vendor id #19676
Comments
What the test plan says here is:
The test plan does NOT require a DUT to fail to commission these vendor ids; it just requires that the user be clearly notified that these are uncertified devices. And even that notification is not reasonable as a default behavior for our test tools, because commissioning things with test vendor ids is by far the most common use of those test tools. I think we need to figure out exactly what this test plan means in practice for our test tools and whether it applies to them at all. For example, does using a test tool constitute a priori notification that there are risks? |
@bzbarsky-apple is correct here and that this test step should not mean the DUT fails it because the DUT commissions the TH (that contains a test, invalid vendor ID). Given that @krypton36 do you think that |
@liamgonyea please provide the spec reference for this requirement. I believe our current SDK implementation is "If a QR code is provided, always use the long discriminator to commission". I claim this is spec compliant because vendor and product ids are optional in advertisement packets, so making use of them or trying to validate is not guaranteed. I agree that it could be made more robust (i.e. I scan a QR code that has all fields, then I discover a device and can validate that these IDs match or not to not mistakenly commission something else) however I want to ensure that the spec says I MUST do this (aka SHALL wording). If the spec does not specify this, this is not a spec requirement. |
For specific examples: why is the manual code |
is the Custom flow an issue? |
Reading more comments, I guess the request is 'show a nice message about this being a test id' .... It sounds like that is a nice to have (guessing not a spec SHALL requirement) and probably not a cert blocker for our internal test tools like chip_tool. You can make a test plan to use |
That's a good question. I thought it was, but all I am finding right now is:
in section "2.5.2. Vendor Identifier (Vendor ID, VID)" of the spec. That is not a SHALL, indeed. |
So it sounds like this is a test case for "commissioners". We have to require any commissioner to show proper notices. Does this extend to chip-tool though? I guess it could and we can add some text. I also believe that chip-tool is a wall-of-text in terms of the output so any warnings will be missed. To be in the spirit of the spec, I believe we should reject by default and have some flag of |
Are we testing DUT or testing chip-tool as a spec compliant commissioner? I believe former, so then this is not a spec blocker for the SDK. |
To expand on this: Unless we want to certify chip-tool, I don't think there is an issue here. |
Cert Blocker Review: The spec does not mandate this, and this usage seems perfectly valid for a test tool. Closing this issue. |
Issue : According to test-plan of [TC-DD-3.17] In Step 6b its mentioned DUT should terminate the commissioning process when we pass invalid 21 digit manual code generated in step 6a but DUT successfully completed the commissioning process.
Expected behaviour : DUT should terminate the commissioning mode when invalid 21 digit manual code is passed
Actual behaviour : DUT successfully completed the commissioning process.
Commit used : c1e1d01
Steps to reproduce :
DUT side :
sudo rm -rf /tmp/chip_*
sudo ./chip-all-clusters-app --wifi (Discriminator - 3841, Passcode - 20202021)
TH side
App used - all-clusters-app
Test platform :
Chip-tool - RPI-4, 8GB RAM
DUT - RPI - RPI-4, 8GB RAM
Test-plan reference :
https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/devicediscovery.adoc#tc-dd-3-17-commissioning-flow-21-digit-manual-pairing-code-negative-scenario-dut-commissioner
PFA Logs:
TC_DD_3.17_dut.txt
TC_DD_3.17_cntrl.txt
The text was updated successfully, but these errors were encountered: