Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
Patch version bump 0.7.3
|
|
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
fs_notify - inotify crate
|
|
- 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>
|
|
Deprecate the user manager
|
|
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
|
|
Suggested-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Actually unused
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
|
|
Actually unused
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
|
|
Actually unused!
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
|
|
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>
|
|
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>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
exiting files (#1217)
--init should not overwrite the existing files
Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
|
|
* (cargo release) bump version
Co-authored-by: Versioneer <info@thin-edge.io>
Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
|
|
#825 fixing clippy warnings
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
* Closes #1174, add watchdog to tedge watchdog
Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
|
|
Signed-off-by: initard <solo@softwareag.com>
|
|
* 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>
|
|
* (cargo release) bump version
Co-authored-by: Versioneer <info@thin-edge.io>
Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
|
|
* 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
|
|
Fix tedge watchdog timeout misalignment with monitored services
|
|
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>
|
|
|
|
|
|
|