-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add support for configuring terms and conditions in device commissioning #173
base: v2.12
Are you sure you want to change the base?
Conversation
This commit introduces a new `enhanced_setup_flow` configuration property to the test harness backend, allowing device manufacturers to define the terms and conditions (T&C) that must be acknowledged and set during device commissioning. These values are critical for supporting the Terms and Conditions Certification Test Suite. Key changes include: - Added the `EnhancedSetupFlowConfig` class to `DutConfig`, which allows specifying the T&C version and user response required during commissioning. - Updated `generate_command_arguments` in `utils.py` to append the necessary arguments for T&C validation and the device's commissioning method. - Adjusted model validation to ensure the `enhanced_setup_flow` field is processed correctly within `DutConfig`. These changes ensure the test harness can enforce manufacturer-specific T&C values during the commissioning process, aligning with the broader requirements of T&C validation.
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.
Please check some comments in the PR
test_collections/matter/sdk_tests/support/performance_tests/utils.py
Outdated
Show resolved
Hide resolved
test_collections/matter/sdk_tests/support/python_testing/__init__.py
Outdated
Show resolved
Hide resolved
test_collections/matter/sdk_tests/support/python_testing/models/utils.py
Outdated
Show resolved
Hide resolved
test_collections/matter/sdk_tests/support/python_testing/models/utils.py
Outdated
Show resolved
Hide resolved
Hi @swan-amazon I changed the target from |
Co-authored-by: Romulo Quidute Filho <[email protected]>
Hey @rquidute , I'm not sure why those spell checks weren't failing previously. I didn't add the words that it's flagging on now... I was asking Raju but he didn't know. I asked if something was recently enabled and he doesn't think so. What should we do? |
Co-authored-by: Romulo Quidute Filho <[email protected]>
…ils.py Co-authored-by: Romulo Quidute Filho <[email protected]>
…s/utils.py Co-authored-by: Romulo Quidute Filho <[email protected]>
…s/utils.py Co-authored-by: Romulo Quidute Filho <[email protected]>
…t__.py Co-authored-by: Romulo Quidute Filho <[email protected]>
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.
By now, just minor items and also the Unit Tests must be fixed.
test_collections/matter/sdk_tests/support/performance_tests/utils.py
Outdated
Show resolved
Hide resolved
Hi @swan-amazon don't worry about spelling issue in this PR. There is still just one spelling issue, but this is a temp code. This is something we need to fix. |
…ce_tests/utils.py
…ning validation Add new parameter to control commissioning flow during tests, allowing manual validation of the commissioning process instead of auto-commissioning. This enables test cases to verify terms and conditions acknowledgements during the commissioning flow. - Add in-test-commissioning-method parameter to test flags - Support manual commissioning flow validation - Enable testing of T&C acknowledgement scenarios
This reverts commit 5d65ce5.
This reverts commit 2cd99b7.
This reverts commit 48c0e32.
This commit introduces a new
enhanced_setup_flow
configuration property to the test harness backend, allowing device manufacturers to define the terms and conditions (T&C) that must be acknowledged and set during device commissioning. These values are critical for supporting the Terms and Conditions Certification Test Suite.Key changes include:
EnhancedSetupFlowConfig
class toDutConfig
, which allows specifying the T&C version and user response required during commissioning.generate_command_arguments
inutils.py
to append the necessary arguments for T&C validation and the device's commissioning method.enhanced_setup_flow
field is processed correctly withinDutConfig
.These changes ensure the test harness can enforce manufacturer-specific T&C values during the commissioning process, aligning with the broader requirements of T&C validation.