kapua
kapua copied to clipboard
✨ [Device Management] - API to upload a JSON snapshot fragment returns 204 if the fragment is not in Kapua snapshot format
before this PR, you had this bug:
-
Connect an ESF device to EC
-
Download a JSON snapshot from the connected device directly from the Web UI of ESF (see attachment)
-
Upload such snapshot to ESF using the rest-API
-
The rest-api returns 204
Expected Result
The error should be 400 - Bad request
Here I fixed the issue adding a check for the presence of at least 1 component configuration inside the deviceConfiguration passed via rest-api
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
:x: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...rnal/DeviceConfigurationManagementServiceImpl.java | 0.00% | 2 Missing :warning: |
:loudspeaker: Thoughts on this report? Let us know!