thin-edge / thin-edge.io

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

fix(cli): ignore port when comparing cloud urls #2865

Closed reubenmiller closed 1 month ago

reubenmiller commented 1 month ago

Proposed changes

Fix false negative where a warning was being printed during tedge connect c8y due to comparing two urls where one would have the port defined, and the other would not. The port number is now ignored during the comparison.

Types of changes

Paste Link to the issue

https://github.com/thin-edge/thin-edge.io/issues/2863

Checklist

Further comments

github-actions[bot] commented 1 month ago

Robot Results

:white_check_mark: Passed :x: Failed :next_track_button: Skipped Total Pass % :stopwatch: Duration
433 0 3 433 100 0s
codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 77.3%. Comparing base (d0a5ff1) to head (77a9f56). Report is 8 commits behind head on main.

Additional details and impacted files | [Files](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2865?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/core/tedge/src/cli/connect/command.rs](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2865?src=pr&el=tree&filepath=crates%2Fcore%2Ftedge%2Fsrc%2Fcli%2Fconnect%2Fcommand.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge#diff-Y3JhdGVzL2NvcmUvdGVkZ2Uvc3JjL2NsaS9jb25uZWN0L2NvbW1hbmQucnM=) | `0.0% <0.0%> (ø)` | | ... and [7 files with indirect coverage changes](https://app.codecov.io/gh/thin-edge/thin-edge.io/pull/2865/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thin-edge)