Skip to content

Commit

Permalink
fix(thin-edge#2898): Publish mosquitto bridge status to c8y when enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
albinsuresh committed May 24, 2024
1 parent 04abcb7 commit 7f9d459
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/extensions/c8y_mapper_ext/src/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ impl CumulocityConverter {
let ancestors_external_ids =
self.entity_store.ancestors_external_ids(entity_topic_id)?;

if entity_topic_id.is_bridge_health_topic() {
if self.config.bridge_in_mapper && entity_topic_id.is_bridge_health_topic() {
return Ok(vec![]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Test if all c8y services are up
tedge-agent
c8y-firmware-plugin

Test bridge service status up
External Identity Should Exist ${DEVICE_SN}:device:main:service:mosquitto-c8y-bridge show_info=False
Cumulocity.Managed Object Should Have Fragment Values status\=up timeout=${TIMEOUT}

Test if all c8y services are down
[Template] Check if a service is down
tedge-mapper-c8y
Expand Down

0 comments on commit 7f9d459

Please sign in to comment.