-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Fix remaining test failures from built-in bridge #2879
test: Fix remaining test failures from built-in bridge #2879
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
|
Robot Results
|
dc35b3f
to
6dd0e52
Compare
2ecba4d
to
fc33478
Compare
@@ -72,7 +74,36 @@ impl TEdgeComponent for CumulocityMapper { | |||
tc.forward_from_remote(topic, local_prefix.clone(), "")?; | |||
} | |||
|
|||
tc.forward_from_local("#", local_prefix, "")?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this was genuinely problematic as Cumulocity doesn't send us our own messages back, but I've changed the config to match the current bridge config in any case
…file Signed-off-by: James Rhodes <[email protected]>
…of mosquitto config Signed-off-by: James Rhodes <[email protected]>
Signed-off-by: James Rhodes <[email protected]>
…dition to new logic Signed-off-by: James Rhodes <[email protected]>
Signed-off-by: James Rhodes <[email protected]>
…reserved Signed-off-by: James Rhodes <[email protected]>
…and flakiness Signed-off-by: James Rhodes <[email protected]>
c299254
to
30b0e61
Compare
…enabling built in bridge Signed-off-by: James Rhodes <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. A nice step forward!
Once this PR merged, it would be good to re-run all the tests under a draft PR with the default value for mqtt.bridge.built_in
set to true
.
@@ -375,6 +377,7 @@ enum Status { | |||
impl Status { | |||
fn json(self) -> &'static str { | |||
match self { | |||
// TODO Robot test that I make it to Cumulocity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get this TODO. What has to be done?
// This will forcefully create directory structure if it doesn't exist, we should find better way to do it, maybe config should deal with it? | ||
create_directories(dir_path)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. The directories should be created by tedge init
and tedge connect
should fail if given a path with unknown parents.
Proposed changes
This PR fixes some remaining issues with the built-in bridge so that the tests work with the built-in bridge enabled.
Types of changes
Paste Link to the issue
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments