summaryrefslogtreecommitdiffstats
path: root/crates
AgeCommit message (Collapse)Author
2022-07-21Remove call to AsRef::as_ref()Matthias Beyer
The `sha1::Sha1::digest()` function takes an `AsRef` as argument, which the object in `b64_bytes` implements, so the call is no longer necessary. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-21Bump sha-1 from 0.9.8 to 0.10.0dependabot[bot]
Bumps [sha-1](https://github.com/RustCrypto/hashes) from 0.9.8 to 0.10.0. - [Release notes](https://github.com/RustCrypto/hashes/releases) - [Commits](https://github.com/RustCrypto/hashes/compare/sha-1-v0.9.8...sha-1-v0.10.0) --- updated-dependencies: - dependency-name: sha-1 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-18Merge pull request #1244 from initard/improvement/1173/inotify-onlyinitard
fs_notify - inotify crate
2022-07-18inotify-api implementationinitard
- abstracted inotify crate into (another) crate that is easier to use. - the new crate uses a single enum for both input and output types. - only events that we are interested in are monitored. - supports multiple files/directories 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-16Remove the `tedge_users` crateDidier Wenzek
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
2022-07-16Fix: Flush the file buffer in the sync fn as wellMatthias Beyer
Suggested-by: Didier Wenzek <didier.wenzek@free.fr> Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-16Fix: Flush the file buffer after writing to the fileMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-15Remove tedge_agent dependency on UserManagerDidier Wenzek
Actually unused Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
2022-07-15Remove tedge_config 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-14Ignore "anyhow" in cargo-udeps checkMatthias Beyer
It seems that cargo-udeps cannot detect that we actually use "anyhow" in our tests. Hence we tell cargo-udeps to ignore it. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-14logged_command: Remove unused dependency "thiserror"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-14logged_command: Remove unused dependency "async-trait"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-14download: Remove unused dependency "tedge_utils"Matthias Beyer
This patch removes the "tedge_utils" dependency, which is not used in the crate. Because "tedge_utils" pulled in "tokio" with the "fs" feature enabled, which is not enabled by default, we also need to enable "fs" on tokio now, which is also done in this patch. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-14download: Remove unused dependency "tempfile"Matthias Beyer
This dependency was only used in tests and is specified in dev-dependencies, so we can remove it here. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
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_config: Remove unused dependency "tedge_users"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-07-14tedge_utils: Remove unused dependency "futures"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-14tedge_utils: Remove unused dependency "anyhow"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_users fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-16tedge_config fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-16tedge_mapper fixing clippy warnings #825initard
Signed-off-by: initard <solo@softwareag.com>
2022-06-16flockfile 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-16mqtt_channel 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-14tedge_test_utils 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-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