aws-connected-device-framework
aws-connected-device-framework copied to clipboard
assetlibraryhistory: fix some errors and add test to show the errors
Description
assetlibraryhistory has a couple of use-cases where we are seeing errors. In order to call those out, I've added a few unit tests with some test data. This includes:
- Update events where some of the event data stored in dynamo is
undefined
- An update event where the
latest
entry doesn't exist - Some optional parameters that were previously required
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Refactor (existing code being refactored)
- [ ] This change includes a documentation update
Submission Checklist
- [x] CI dry-run passing
- [x] Integration tests passing locally
- [x] Change logs generated
Additional Notes:
Thank you for your PR, it's on our radar for review.