Skip to content

Commit

Permalink
fix(mqtt): 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 48fe6a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 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,8 @@ 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() {
// Skip service creation for the mapper-inbuilt bridge, as it is part of the mapper service itself
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 48fe6a9

Please sign in to comment.