You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thank you very much for working on the IoT Data and shadow emulation. Really appreciate that you are fixing & improving things in this area.
After updating to 5.0.23, I noticed some of my tests failing, I assume due to #8342. On closer inspection, I guess the behaviour wasn't quite correct before either, but fails more loudly now. :) Basically, delta is not emitted correctly when a key is present in desired and absent in reported.
Traceback (most recent call last):
File "test.py", line 37, in <module>
response = iot_data.get_thing_shadow(thingName=thing_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
TypeError: keys must be str, int, float, bool or None, not Symbol
In terms of your test suite, I guess the test cases might be something like this (completely untested):
Really appreciate that you are fixing & improving things in this area.
Appreciate the kind words @rtandy! Although I'd argue that introducing TypeError's isn't quite an improvement.. 🙂
The examples that you've provided pass against AWS, so I've added them to our test and opened a PR to simplify the calculation. This can actually be done without the jsondiff dependency, so at least it doesn't blow up anymore, even if we're still missing any edge cases.
Hello, thank you very much for working on the IoT Data and shadow emulation. Really appreciate that you are fixing & improving things in this area.
After updating to 5.0.23, I noticed some of my tests failing, I assume due to #8342. On closer inspection, I guess the behaviour wasn't quite correct before either, but fails more loudly now. :) Basically, delta is not emitted correctly when a key is present in desired and absent in reported.
Test script:
Expected output:
Output with 5.0.21 (missing
delta
):Output with 5.0.22 and 5.0.23:
In terms of your test suite, I guess the test cases might be something like this (completely untested):
Thank you!
The text was updated successfully, but these errors were encountered: