Conversation
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
|
Invitation URL: |
Test Results 72 files 490 suites 0s ⏱️ Results for commit aed6caa. ♻️ This comment has been updated with latest results. |
|
@tpmanley |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against aed6caa |
First of all, I corrected all the errors. |
|
@ctowns |
|
@HunsupJung when you're setting up the test, you can make a mock device with the following profile Then run the test as normal. This will make the tested profile include the optional capability. You can add as many optional capabilities as you want in this way. |
| hex_string_to_octet_string(groupResolvingKey) | ||
| ) | ||
| ) | ||
| device:set_field(lock_utils.ALIRO_READER_CONFIG_UPDATED, true) |
There was a problem hiding this comment.
It might be worth checking the response of SetAliroReaderConfig before setting ALIRO_READER_CONFIG_UPDATED to true, since if the command fails then set_reader_config would never retry.
There was a problem hiding this comment.
There is no way to whether the ReaderConfig is set well in SetAliroReaderConfig command and response. So, I will move it to aliro_reader_verification_key_handler which is one of the ReaderConfig.
| command_result_info, {state_change = true, visibility = {displayed = false}} | ||
| )) | ||
| device:set_field(lock_utils.BUSY_STATE, false, {persist = true}) | ||
| return |
There was a problem hiding this comment.
I might be missing something but what is the reason for the early return here? It seems to me that this would result in a no-op for any subsequent setReaderConfig commands since ALIRO_READER_CONFIG_UPDATED is never cleared
There was a problem hiding this comment.
The ReaderConfig value needs to be set only once.
Originally, it was input through the setReaderConfig command from ST Cloud (Chamber), but it was not possible to input in a specific situation, so we decided to input it from the hub.
In consideration of future failures, the handler for the command was left, and the ALIRO_READER_CONFIG_UPDATED field was placed so that duplicate input was not possible.
drivers/SmartThings/matter-lock/src/test/test_new_matter_lock_battery.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/matter-lock/src/test/test_new_matter_lock_battery.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/matter-lock/src/test/test_new_matter_lock_battery.lua
Outdated
Show resolved
Hide resolved
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
a90c386 to
b331d2d
Compare
| if #aliro_ble_uwb_eps > 0 then | ||
| groupResolvingKey = create_group_id_resolving_key() | ||
| end | ||
| local privKey, pubKey = generate_keypair(device) |
There was a problem hiding this comment.
generate_keypair can return nil, nil when it's unable to generate a keypair so that should be handled here
| -- Feature Map of Door Lock -- | ||
| --------------------------------------------- | ||
| local function door_lock_feature_map_handler(driver, device, ib, response) | ||
| for _, device_ep in pairs(device.endpoints) do |
There was a problem hiding this comment.
As far as I know there are no devices with the DoorLock cluster on more than one endpoint, but even so it'd be better to only update the endpoint that reported the feature map attribute instead of the first endpoint with the DoorLock cluster.
Type of Change
Checklist
Description of Change
Summary of Completed Tests