summaryrefslogtreecommitdiffstats
path: root/crates/core
AgeCommit message (Collapse)Author
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-21Bump mockall from 0.10.2 to 0.11.1dependabot[bot]
Bumps [mockall](https://github.com/asomers/mockall) from 0.10.2 to 0.11.1. - [Release notes](https://github.com/asomers/mockall/releases) - [Changelog](https://github.com/asomers/mockall/blob/master/CHANGELOG.md) - [Commits](https://github.com/asomers/mockall/compare/v0.10.2...v0.11.1) --- updated-dependencies: - dependency-name: mockall dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20Remove unused testDidier Wenzek
The test `create_certificate_as_root_should_switch_to_mosquitto` were behind features and never triggered. As a consequence this test has not been maintained and is no more aligned with the code base (the tedge config is no more user dependent, there is --config-dir option, the tedge command is no more running as tegde). Futhermore this test was using `sudo`. Better to simply remove it. Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
2022-07-20Merge pull request #1257 from thin-edge/create-pull-request/patchRina Fujino
Patch version bump 0.7.3
2022-07-20(cargo release) bump versionVersioneer
2022-07-20publishing supported log types if c8y bridge is upinitard
Signed-off-by: initard <solo@softwareag.com>
2022-07-16Merge pull request #1251 from didier-wenzek/feature/remove-user-managerDidier Wenzek
Deprecate the user manager
2022-07-15Remove tedge_agent dependency on UserManagerDidier Wenzek
Actually unused Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
2022-07-15Remove tegde_mapper dependency on UserManagerDidier Wenzek
Actually unused! Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
2022-07-15Remove the `tedge` dependency on `UserManager`Didier Wenzek
The UserManager was used to run the `tedge` command as the `tedge` user becomming `root` or `mosquitto` only when required. In practice, this introduced more issues than benefits. Notably, this forces to have a `tedge` user to run the command. While switching to a different user is required only to create a certificate under mosquitto. The behavior is unchanged. Particularly, errors are ignored when giving ownership of the certificate to mosquitto (for instance, if the `tedge cert create` command is not run with `sudo`). Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
2022-07-14tedge: Remove unused dependency "futures"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-14plugin_sm: Remove unused dependency "tedge_utils"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-14tedge_agent: Remove unused dependency "mockall"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
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-17Merge pull request #1191 from initard/improvement/825/fix-build-clippy-warningsAlex Solomes
#825 fixing clippy warnings
2022-06-16tedge_mapper fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-16c8y_api fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-16tedge_agent fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-16c8y_smartrest fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-16tedge fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-16Enable systemd watchdog monitoring for tedge-watchdog daemon (#1196)PradeepKiruvale
* Closes #1174, add watchdog to tedge watchdog Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@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-31Merge PR #1170 Fix tedge watchdog timeout misalignment with monitored servicesAlbin Suresh
Fix tedge watchdog timeout misalignment with monitored services
2022-05-30moved mqtt tests from Python to Rust #1011 (#1128)Alex Solomes
Signed-off-by: initard <solo@softwareag.com> Co-authored-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> Co-authored-by: initard <solo@softwareag.com> Co-authored-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-05-27Unit test for latest health response validation logicAlbin Suresh
2022-05-27Fix watchdog health check with timestamp validationAlbin Suresh
2022-05-26Fix tedge watchdog timeout misalignment with monitored servicesAlbin Suresh
2022-05-25port mqtt port set/unset pysys tests to rust #1013 (#1129)Alex Solomes
Signed-off-by: initard <solo@softwareag.com> Co-authored-by: Lukasz Woznicki lukasz.woznicki@softwareag.com Co-authored-by: initard <solo@softwareag.com>
2022-05-23(cargo release) bump version 0.7.0 (#1154)Rina Fujino
2022-05-20logs are read in reverse and use modified dateinitard
- logs are now read in reverse order into a VecDeque - log files now use metadata for modified time Signed-off-by: initard <solo@softwareag.com>
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-17Merge pull request #1142 from makr11st/feature/1051_smartrest_templatesLukasz Woznicki
[1051] Add support for smartrest templates to config
2022-05-17Add type support on the plugin configurationRina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-05-17Add smartrest templates to the list of topics for the bridge creationLukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.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-05Move the operation status message trait to the smartrest crateRina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-05-05Cumulocity mapper fails to process messages when connected to a thick-edge ↵PradeepKiruvale
VM (#1103) * Closes #1082 do not validate self-signed certificates Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com> * add individual certificate to root_store Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com> * update document
2022-05-04Merge pull request #1068 from makr11st/feature/759_tedge_disconnect_report_errorLukasz Woznicki
#759 tedge disconnect falsely returns exit code 0 when disabling or stopping of a component fails