summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge_mapper
AgeCommit message (Collapse)Author
2022-08-30Move alarms converter code to a separate file (#1366)PradeepKiruvale
* Move c8y alarms converter code to a separate file Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-08-19Merge pull request #1348 from thin-edge/create-pull-request/patchAlbin Suresh
Patch version bump
2022-08-18Merge pull request #1349 from matthiasbeyer/clippy-fixesDidier Wenzek
Clippy fixes
2022-08-18Fix clippy: tedge_mapper: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge_mapper: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Restart of tedge-mapper-c8y is recreating deleted child devices (#1344)PradeepKiruvale
* Create external device only after alarm message sync Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-08-18(cargo release) bump versionVersioneer
2022-08-17Merge pull request #1330 from Bravo555/add-homepage-fieldDidier Wenzek
Yocto: Add homepage and repository fields to manifests of tedge and tedge_mapper crates
2022-08-11Add homepage and repository fields to manifests of tedge and tedge_mapper cratesMarcel Guzik
This change is necessary to generate bitbake recipes from tedge and tedge_mapper crates as part of #1329. Currently, we're trying to set up a minimal working example, and as such only these crates required this change. Signed-off-by: Marcel Guzik <marcel.guzik2@inetum.com>
2022-08-08tedge_mapper: Remove let _ =Matthias Beyer
These were introduced in 098cd1bc0b8a5fb46d114733c5f5c632fc25587e ("Alarms for child devices (#1314)") from pull request #1314 where my review comments were not fixed, so I'm gonna fix these here. Fixes: 098cd1bc0b8a5fb46d114733c5f5c632fc25587e ("Alarms for child devices (#1314)") Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-08Alarms for child devices (#1314)PradeepKiruvale
With this feature the child device now able to send an alarm message to Cumulocity cloud. The child device must use the mqtt topic to publish the alarm message, then thin-edge device will pickup this alarm message and forward it to the cumulocity cloud. Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-08-06Do not necessarily pass &str anymore to fs helper fnsMatthias Beyer
This patch changs the calls of the fs helper functions where the interface of the functions was changed from taking `&str` as path argument to `impl AsRef<Path>`. Because of this, it is not necessary anymore that `&str` is passed, but `Path`es can be passed or, as in most cases, the ad-hoc created `String` objects can be passed by value instead of by reference, resulting in less mental load on the calling side. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-29MQTT health endpoints for tedge plugin extensions (#1299)PradeepKiruvale
* tedge watchdog for c8y-log-plugin and c8y-config-plugin This PR also refactors the health check by removing the duplicate code. Pushed the duplicate code to one place and reused it across all the thin-edge services. Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-07-26Merge pull request #1250 from ↵initard
initard/improvement/1173/inotify-tedge-mapper-dynamic-discovery-of-operations tedge mapper dynamic discovery of operations
2022-07-25implementing fs-notify crate for dynamic discovery of operationsinitard
Signed-off-by: initard <solo@softwareag.com>
2022-07-25Bump serial_test from 0.6.0 to 0.8.0dependabot[bot]
Bumps [serial_test](https://github.com/palfrey/serial_test) from 0.6.0 to 0.8.0. - [Release notes](https://github.com/palfrey/serial_test/releases) - [Commits](https://github.com/palfrey/serial_test/compare/v0.6.0...v0.8.0) --- updated-dependencies: - dependency-name: serial_test dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25Merge pull request #1288 from thin-edge/dependabot/cargo/test-case-2.2.1Didier Wenzek
Bump test-case from 2.1.0 to 2.2.1
2022-07-22Bump clap from 3.2.12 to 3.2.14dependabot[bot]
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.12 to 3.2.14. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v3.2.12...v3.2.14) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-07-22Bump test-case from 2.1.0 to 2.2.1dependabot[bot]
Bumps [test-case](https://github.com/frondeus/test-case) from 2.1.0 to 2.2.1. - [Release notes](https://github.com/frondeus/test-case/releases) - [Changelog](https://github.com/frondeus/test-case/blob/master/CHANGELOG.md) - [Commits](https://github.com/frondeus/test-case/compare/v2.1.0...v2.2.1) --- updated-dependencies: - dependency-name: test-case dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-07-22Extend events API to support child devices (#1243)PradeepKiruvale
* Events for child devices Extend events APIs to send the event messages from external/child device to device twin in the cloud. Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-07-20(cargo release) bump versionVersioneer
2022-07-14tedge_mapper: Remove unused dependency "tedge_users"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-06-29c8y_configuration_plugin --init and c8y_log_plugin --init are overwriting ↵PradeepKiruvale
exiting files (#1217) --init should not overwrite the existing files Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-06-22Patch version bump 0.7.2 (#1214)github-actions[bot]
* (cargo release) bump version Co-authored-by: Versioneer <info@thin-edge.io> Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-06-16tedge_mapper fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-09Testing utility: TempTedgeDir POC (#1148)Alex Solomes
* temp tedge dir poc Signed-off-by: initard <solo@softwareag.com> * renaming crate and removing TedgeChildTempDir - renamed the crate to tedge_test_utils - removed TedgeChildTempDir as TempTedgeDir already had the same functions Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * changing agent.rs tests to use TempTedgeDir - changing agent.rs to use TempTedgeDir - un-ignoring a test to check if agent restart creates a file in the right place Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * changing tedge_mapper tests to use TempTedgeDir Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * changing tedge_config tests to use TempTedgeDir Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * changing c8y_configuration_plugin tests to use TempTedgeDir Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * changing tedge_apama_plugin tests to use TempTedgeDir Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * changing logged_command tests to use TempTedgeDir Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * adding another method to TempTedgeDir Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2022-06-08Patch version bump 0.7.1 (#1185)github-actions[bot]
* (cargo release) bump version Co-authored-by: Versioneer <info@thin-edge.io> Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-06-01Dynamic discovery of new operations (#1140)PradeepKiruvale
* Closes #612 discover operations dynamically Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com> * select! on async ops Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com> * update operations document Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com> * move inotify/mqtt message processing to separate fn * move mqtt process code to a separate fn
2022-05-27Unit test for latest health response validation logicAlbin Suresh
2022-05-27Fix watchdog health check with timestamp validationAlbin Suresh
2022-05-23(cargo release) bump version 0.7.0 (#1154)Rina Fujino
2022-05-20c8y_log_plugin implementation #1077initard
- log plugin is now a daemon - log file uses a configuration file to request logs from c8y UI - log plugin uses inotify to automatically update c8y of new logs files Signed-off-by: initard <solo@softwareag.com>
2022-05-18Merge branch 'main' into feature/1107/enhance-config-managementRina Fujino
2022-05-17Aligned with the upstreamAlbin Suresh
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-05-13Update serial_test crate versionAlbin Suresh
2022-05-13Issue #1030 c8y_configuration_plugin integration testsAlbin Suresh
2022-05-11Patch version bump 0.6.4 (#1136)github-actions[bot]
* (cargo release) bump version 0.6.4 Co-authored-by: Versioneer <info@thin-edge.io>
2022-05-09Revert the pull request #1116Rina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-05-03fixing tests to work with CumulocityConverter changes #1027initard
- added a from_logs_path method for CumulocityConverter, allowing the possibility to specify tempDir for logs paths Signed-off-by: initard <solo@softwareag.com>
2022-05-03operation logs improvement #1027initard
Signed-off-by: initard <solo@softwareag.com>
2022-05-03Merge pull request #1116 from ↵Alex Solomes
initard/improvement/1110/removing-unused-dependencies #1110 removed unused dependencies
2022-05-02fix broken big measurement tests (#1119)PradeepKiruvale
2022-04-28removed unused dependencies #1110initard
Signed-off-by: initard <solo@softwareag.com>
2022-04-28947058fdf0da2286c63be62bbcdebf6af071c4ee# This is a combination of 2 ↵PradeepKiruvale
commits. (#1095) Closes #1056 c8y measurement threshold check for mqtt Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-04-27Patch version bump 0.6.3 (#1108)github-actions[bot]
* (cargo release) bump version 0.6.3 Co-authored-by: Versioneer <info@thin-edge.io> Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-04-26Merge branch 'main' into feature/1030/configuration-managementRina Fujino
2022-04-21Reduce code duplication in smartrest_deserializerRina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-04-21Have a single unix user used for all the thin-edge daemons (#1085)PradeepKiruvale
* Closes #1031 single tedge user Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com> * Add script to upgrade tedge from 0.6 Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-04-14Merge pull request #1062 from initard/bugfix/958-fixing-python-testsAlex Solomes
#958 fixing tedge mapper tests
2022-04-14Merge pull request #1071 from rina23q/fix/rename-inappropriate-config-variablesRina Fujino
Remove "default" from the name of some tedge config settigs