thin-edge / thin-edge.io

The open edge framework for lightweight IoT devices
https://thin-edge.io
Apache License 2.0
219 stars 54 forks source link

feat(sm-plugin): skip package download if the url is empty #2905

Closed Ruadhri17 closed 4 months ago

Ruadhri17 commented 4 months ago

Proposed changes

This PR adds an extra check in software_update to skip the download process if the payload contains an empty url. A system test was added to prove that the error no longer exists when an empty url is provided in the local command.

Types of changes

Paste Link to the issue

Checklist

Further comments

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 92.30769% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 78.1%. Comparing base (8a91efb) to head (05a644e). Report is 6 commits behind head on main.

Additional details and impacted files | [Files](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2905?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge) | Coverage Δ | | |---|---|---| | [crates/common/download/src/download.rs](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2905?src=pr&el=tree&filepath=crates%2Fcommon%2Fdownload%2Fsrc%2Fdownload.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge#diff-Y3JhdGVzL2NvbW1vbi9kb3dubG9hZC9zcmMvZG93bmxvYWQucnM=) | `80.8% <100.0%> (+<0.1%)` | :arrow_up: | | [crates/core/tedge\_api/src/commands.rs](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2905?src=pr&el=tree&filepath=crates%2Fcore%2Ftedge_api%2Fsrc%2Fcommands.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge#diff-Y3JhdGVzL2NvcmUvdGVkZ2VfYXBpL3NyYy9jb21tYW5kcy5ycw==) | `92.9% <100.0%> (ø)` | | | [crates/core/tedge\_api/src/software.rs](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2905?src=pr&el=tree&filepath=crates%2Fcore%2Ftedge_api%2Fsrc%2Fsoftware.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge#diff-Y3JhdGVzL2NvcmUvdGVkZ2VfYXBpL3NyYy9zb2Z0d2FyZS5ycw==) | `93.1% <66.6%> (+29.4%)` | :arrow_up: | ... and [9 files with indirect coverage changes](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2905/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge)
github-actions[bot] commented 4 months ago

Robot Results

:white_check_mark: Passed :x: Failed :next_track_button: Skipped Total Pass % :stopwatch: Duration
442 0 3 442 100 1h1m19.518955999s