-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Test] Creating CADMIN 1.19 python3 test module #35611
base: master
Are you sure you want to change the base?
Conversation
- Test module created following steps in PR: CHIP-Specifications/chip-test-plans#4669
Review changes with SemanticDiff. Analyzed 2 of 3 files.
|
PR #35611: Size comparison from 010ad94 to 76142a6 Full report (26 builds for efr32, esp32, nxp, telink)
|
- Resolving linting issues
- Removed yaml test as we have created python test module in its place
PR #35611: Size comparison from 010ad94 to 4c04d29 Full report (3 builds for nxp)
|
- Removed debugging print statements as no longer needed in test code
PR #35611: Size comparison from 010ad94 to 9ef5882 Full report (26 builds for efr32, esp32, nxp, telink)
|
src/python_testing/TC_CADMIN_1_19.py
Outdated
|
||
|
||
class TC_CADMIN_1_19(MatterBaseTest): | ||
async def OpenCommissioningWindow(self) -> CommissioningParameters: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use the openCommissionignWindow function in matter_testing instead of re-implementing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated the code to remove the OpenCommissioningWindow and CommissionAttempt local class functions to using the MatterBaseTest version of those here now.
Also, added the timeout variable to allow dynamic setting of now instead of statically set.
src/python_testing/TC_CADMIN_1_19.py
Outdated
setupPinCode = params.setupPinCode | ||
|
||
self.step("5b") | ||
fids_ca_dir['thca' + str(fid)] = self.certificate_authority_manager.NewCertificateAuthority() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you using strings as keys rather than just numbers if they're separate dicts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I had been using it to make the names a bit easier possibly to read the names, but since not needed I have changed those to using just the range number now for the dictionary key names.
src/python_testing/TC_CADMIN_1_19.py
Outdated
self.step("5b") | ||
fids_ca_dir['thca' + str(fid)] = self.certificate_authority_manager.NewCertificateAuthority() | ||
fids_fa_dir['thfa' + str(fid)] = fids_ca_dir['thca' + str(fid)].NewFabricAdmin(vendorId=0xFFF1, fabricId=fid) | ||
fids['th' + str(fid)] = fids_fa_dir['thfa' + str(fid)].NewController(nodeId=fid, useTestCommissioner=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to use the test commissioner here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this has been removed from the test script
Co-authored-by: C Freeman <cecille@google.com>
Co-authored-by: C Freeman <cecille@google.com>
PR #35611: Size comparison from 0b93b0d to eb3a03f Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
- Updated CI Arguments - Updated dependency location for matter_testing_support - Removed local OpenCommissioningWindow function, updated to using MatterBaseTest version - Removed local CommissioningAttempt function, moved to using function call directly in test - Removed initialization of TH2 controller as not needed - Removed additional dictionary names and delimited it down to just using numbers instead. - Updated matter_testing support script to include setting timeout value dynamically in openCommissioningWindow function
Resolving Linting errors
PR #35611: Size comparison from 0b93b0d to a9f2650 Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Creating python3 TC CADMIN 1.19 test module: