summaryrefslogtreecommitdiffstats
path: root/Cargo.lock
AgeCommit message (Collapse)Author
2022-03-11Closes #893 Support custom fields and fragments in Thin Edge JSON eventsAlbin Suresh
2022-03-10fixing sm plugins path error message (#937)initard
- ensuring success status is sent if no sm-plugins dir present (with empty software list) - added test confirming this Signed-off-by: initard <solo@softwareag.com>
2022-03-09test-case version updateinitard
- test-case crate version 1.2.3 was breaking cargo test - updated test-case crate to 2.0 Signed-off-by: initard <solo@softwareag.com>
2022-03-02Patch version bump 0.5.4 (#963)github-actions[bot]
* (cargo release) bump version 0.5.4 Co-authored-by: Versioneer <info@thin-edge.io> Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-02-28Fix cargo audit warning: zeroize 1.5.2 is yankedDidier Wenzek
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
2022-02-28Remove 'chrono' from 'zip' in apama pluginLukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-02-25Bump version of 'x509_parser' which uses 'time' instead of 'chrono'Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-02-23Unit test C8YHTTPProxy with mock httpserver crateAlbin Suresh
2022-02-23[#809] Cumulocity mapper to send large events > 16K size with HTTPAlbin Suresh
2022-02-18Replace structopt with clap 3Matthias Beyer
This patch rewrites the CLI interfaces to be used with clap 3.0 instead of clap 2.x + structopt. The changes are as minimal as possible, although I did not verify that the CLI is the same as before. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-02-17Update tracing_subsciber to 0.3 which uses 'time' instead of 'chrono'Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-02-17Merge pull request #883 from makr11st/improvement/clippy_remove_unused_functionMatthias Beyer
Remove no longer used function from log plugin
2022-02-16Create tedge cli reference docs (#888)github-actions[bot]
Update to version 0.5.3
2022-02-16Patch version bump (#884)github-actions[bot]
* (cargo release) bump version 0.5.3
2022-02-16Remove no longer used function from log pluginLukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-02-15clock: Hide serde support behind feature flag `with-serde`Uwe Klotz
Signed-off-by: Uwe Klotz <uwe.klotz@slowtec.de>
2022-02-15fixed session name buginitard
- renamed jwt token session - renamed file C8y_LogfileRequest to c8y_LogfileRequest - added cargo deb asset to create binary in /usr/bin/tedge_logfile_request_plugin - closing mqtt client connection in plugin Signed-off-by: initard <solo@softwareag.com>
2022-02-15moving implemenation specific code to plugin (#790)initard
- Moved mqtt client and http client to pluing main.rs - Removed empty test file and default cargo lib test - Moved log specific messages from topic.rs to plugin - Fixed mapper session name Signed-off-by: initard <solo@softwareag.com>
2022-02-15c8y_api lib, tedge config, mqtt/http utilities (#790)initard
Preparing the repo for the log request plugin. Restructuring folders, moving code out of sm_c8y_mapper and into c8y_api, c8y_smartrest or tedge_config. Signed-off-by: initard <solo@softwareag.com>
2022-02-14Use 'time' instead of 'chrono' due to CVE for thin_edge_json and all ↵Lukasz Woznicki
dependent crates Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-02-11Use 'time' instead of 'chrono' due to CVE for c8y_smartrest and all ↵Lukasz Woznicki
dependent crates Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-02-10Merge pull request #852 from ↵Lukasz Woznicki
makr11st/improvement/648_use_time_instead_of_chrono_in_certificate Use 'time' instead of 'chrono' due to CVE for certificate and all dependent crates [3/3]
2022-02-10Use 'time' instead of 'chrono' due to CVE for 'certificate' and all ↵Lukasz Woznicki
dependent crates Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-02-09[#809] Thin Edge JSON events support for Cumulocity mapper (#831)Albin Suresh
* [#809] Thin Edge JSON events support for Cumulocity mapper
2022-01-27#733 Configurable Device Type (#782)initard
* configurable device type (#733) Signed-off-by: initard <solo@softwareag.com> * adding device data fragment to mapper init (#733) Signed-off-by: initard <solo@softwareag.com> * fixing test Signed-off-by: initard <solo@softwareag.com> * adding device type when making new device (#733) Signed-off-by: initard <solo@softwareag.com> * removing comment and unused package Signed-off-by: initard <solo@softwareag.com> * passing down device type and removing tedge util Signed-off-by: initard <solo@softwareag.com> * string formatting (#733) Signed-off-by: initard <solo@softwareag.com> * documenting device data settings Signed-off-by: initard <solo@softwareag.com> * addressing minor pr comments on syntax (#733) Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2022-01-24Update the sawtooth publisher and remove deprecated mqtt_client crate (#778)Didier Wenzek
* Move `sawtooth_publisher` from mqtt_client/examples to crates/tests/sawtooth_publisher Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Update tests and CI README. Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Refactor the sawtooth publisher to use mqtt_channel Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Removing mqtt_client crate Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Cargo fmt Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Improve local variable naming Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Fix issue with tokio rt-multi-thread flavor Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Fix github workflow Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> Co-authored-by: Didier Wenzek <didier.wenzek@free.fr>
2022-01-19Refactoring the MQTT client API (#575)Didier Wenzek
* Basic data types for MQTT channels * Mqtt connection * Mqtt-channel: subscribe to topics * Mqtt-channel: publish messages Signed-off-by: Wenzek <diw@softwareag.com> * Mqtt-channel: an MQTT client as no direct dependency to MQTT Signed-off-by: Wenzek <diw@softwareag.com> * Mqtt-chanels: no message lost on reconnect Signed-off-by: Wenzek <diw@softwareag.com> * Cargo fmt Signed-off-by: Wenzek <diw@softwareag.com> * Merge with child device management * Remove the dependency to the `async-broadcast` and `async-channel` crates * Moving the helper functions to the `mqtt_tests` crate * Ensure an MQTT client can be tested without an MQTT broker * Removing dependency on the mqtt_client crate * Use the new `mqtt_channel` crate in the `sm-c8y` mapper This actually fixes the bug #570 * [570] Cargo fmt * Remove the dependency of the collectd mapper on the `mqtt_client` crate Signed-off-by: Wenzek <diw@softwareag.com> * Make configurable the maximum size of a message Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Fix typo in comment Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Use mqtt_channel instead of mqtt_client in tedge_agent Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Improve doc comments Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Add error case on closed channel Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Add PubChannel & SubChannel traits Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Cargo fmt Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Revert erroneously added changes Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Add a channel for errors Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Log MQTT connection errors Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Fix HTTP_proxy port Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Remove unused code Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Improve tests Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Move session configuration from Connection to Config * Set max_packet_size default to 1M Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Cargo fmt Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> * Fix broken tests (on missing operation directory) Signed-off-by: Didier Wenzek <didier.wenzek@free.fr> Co-authored-by: Wenzek <diw@softwareag.com> Co-authored-by: Didier Wenzek <didier.wenzek@free.fr>
2022-01-19Patch version bump (#771)github-actions[bot]
* (cargo release) bump version 0.5.2
2022-01-19Operations execution from operations files. (#764)Lukasz Woznicki
* Add operations reading from operations file and execute when template called * Update docs * Update docs to list supported parameters Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-01-19[710] Simplify tedge connect c8y (#751)PradeepKiruvale
* mqtt direct connection * break on error message receival * handle errors * refactor device connection * check connection with jwt token * add log * fix typos * remove unwrap * address review comments * fix the loop * fix * replace event loop without spwaning thread * switch to mosquito user to read keyfile * create function to read certificate * remove unwrap * address review comments * user_manager * remove rustls_native_certs * refactor check if bridge exists * fix typos Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2022-01-12Feature/651/configurable temp path (#732)initard
* configurable download path (WIP) (#651) Signed-off-by: initard <solo@softwareag.com> * download path test (WIP) (#651) Signed-off-by: initard <solo@softwareag.com> * default download path #651 Signed-off-by: initard <solo@softwareag.com> * install to download.path test (#651) Signed-off-by: initard <solo@softwareag.com> * formatting issues (#651) Signed-off-by: initard <solo@softwareag.com> * formatting issues (#651) Signed-off-by: initard <solo@softwareag.com> * rename download path to tmp path & test fix (#651) Signed-off-by: initard <solo@softwareag.com> * cargo fmt Signed-off-by: initard <solo@softwareag.com> * download path integration test (#651) Signed-off-by: initard <solo@softwareag.com> * adding doc detailing how to set temp path (#651) Signed-off-by: initard <solo@softwareag.com> * test fix (#651) Signed-off-by: initard <solo@softwareag.com> * adding sudo to doc (#651) Signed-off-by: initard <solo@softwareag.com> * removing unused test (#651) Signed-off-by: initard <solo@softwareag.com> * renaming, refactoring and extra documentation (#651) Signed-off-by: initard <solo@softwareag.com> * fixing naming of tmp.path (#651) Signed-off-by: initard <solo@softwareag.com> * changes to tmp dto #651 Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2022-01-11[663] agent topics (#731)PradeepKiruvale
* move topics to json_sm crate * rename json_sm to sm_interface * format * rename agent interface * fix order of crates * rename crate * rename topics enum * refactor downloader code * move topicerror to error.rs * trigger wf * cargo fmt * address review comments * separate c8y topics * add tests * cargo fmt * change match cases * use download from common crate * update test names * fix the match issue * fix the topic matching * address review comments * remove mqtt dependancy * simplify try_from Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2022-01-05Patch version bump to 0.5.1 (#734)github-actions[bot]
* (cargo release) bump version to 0.5.1 Co-authored-by: Versioneer <info@thin-edge.io>
2021-12-22Closes #667 Thin Edge JSON alarm support (#726)Albin Suresh
* Closes #667 Thin Edge JSON alarm support
2021-12-17[638] trailing tab in list output (#675)PradeepKiruvale
* tab optional * update tests * fix the test * update document * remove unused crate * cargo fmt * Address review comments * refactor desrializer * add a trailing tab test Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-12-10Bump version to 0.5.0. Update some docs to use 0.5.0 as well (#677)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com>
2021-12-09Fixes #672 Failure of apama list command with empty project (#679)Albin Suresh
* Fixes #672 Failure of apama list command with empty project
2021-12-07Closes #598 mon file support for apama plugin (#657)Albin Suresh
* Closes #598 mon file support for apama plugin * Extract project name from project descriptor xml * Enforce zip validation
2021-12-06tedge connect c8y checks configured URL and connected URL are the same (#661)Rina Fujino
* tedge connect c8y checks configured URL and connected URL are the same - Close #600 Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-12-02#624 Update dependencies and error handlers (#656)Lukasz Woznicki
* Update dependencies and error handlers Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-11-26[CIT-659] restart device local operation (#591)initard
* [CIT-659] operation status rename Signed-off-by: Alex <solo@softwareag.com> * [CIT-659] OperationStatus rename Signed-off-by: Alex <solo@softwareag.com> * [CIT-659] adding new structs to lib import Signed-off-by: Alex <solo@softwareag.com> * [CIT-659] restart operation implementation Signed-off-by: Alex <solo@softwareag.com> * [CIT-659] restart operation check (WIP) Signed-off-by: Alex <solo@softwareag.com> * [CIT-659] wip Signed-off-by: Alex <solo@softwareag.com> * [CIT-659] restart operation check when /run/tedge_agent_restart persists after operation Signed-off-by: Alex <solo@softwareag.com> * [CIT-659] stash merge Signed-off-by: initard <solo@softwareag.com> * [CIT-659] restart operation refactoring, - chrono dependency Signed-off-by: initard <solo@softwareag.com> * [CIT-659] removed package feature, made file creation more explicit Signed-off-by: initard <solo@softwareag.com> * [CIT-659] dealing with some unwraps and error handling Signed-off-by: initard <solo@softwareag.com> * [CIT-659] reverting changes to operation_logs + error handling Signed-off-by: initard <solo@softwareag.com> * [CIT-659] changed operation from echo 6 to init 6 Signed-off-by: initard <solo@softwareag.com> * [CIT-659] fixing restart check logic Signed-off-by: initard <solo@softwareag.com> * [CIT-659] refactored error handling and added unit test for /run/tedge_agent_restart Signed-off-by: initard <solo@softwareag.com> * [CIT-659] refactoring of tests Signed-off-by: initard <solo@softwareag.com> * [CIT-659] ignored failed test Signed-off-by: initard <solo@softwareag.com> Co-authored-by: Alex <solo@softwareag.com>
2021-11-24Restructure directories of the workspace (#559)Lukasz Woznicki
* Restructure directories of the workspace * Rename c8y_translator_lib to c8y_translator * Update comment on how to get dummy plugin path Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-11-24(cargo release) bump version 0.4.3github-actions[bot]
Co-authored-by: Versioneer <info@thin-edge.io>
2021-11-23[CIT-697] Allowing colon in datetime deserialisation (#616)initard
* [CIT-697] allowing colon in datetime deserialisation Signed-off-by: initard <solo@softwareag.com> * [CIT-697] logic update to check only for final colon Signed-off-by: initard <solo@softwareag.com> * [CIT-697] added tests to colon deserialisation Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2021-11-22[CIT-675] Apama plugin (#586)Albin Suresh
* [CIT-675] Apama plugin
2021-11-19Fix build issue on 32bit system (#585)PradeepKiruvale
* fix build on 32bit system Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-11-18[CIT-646] Add child device support (#563)Rina Fujino
* tedge_mapper c8y subscribes "tedge/measurements/+" newly. * The last field of topic is considered as a child ID. * When the child ID is new, mapper sends SmartREST101 child device creation request. * Given child ID, mapper converts Thin Edge JSON to Cumulocity JSON with specific fields. * Add "externalSource" as a reserved word Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-11-16[CIT-602] Reserve diskspace before downloading file (#562)PradeepKiruvale
* [CIT-602] add tedge buf size option * percentage * add buffer * added test * pre-allocate space before download * remove tedge buffer config * fix typos * fix typos * invert the check * add test * fix minor things * add test * refactor code * add tests * update tests * rename function * use /tmp for the files * correct the file paths * address review comments * address review comments Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-11-11Patch version bump (#573)github-actions[bot]
* (cargo release) bump version * Update get-thin-edge_io.sh to 0.4.2 Co-authored-by: Versioneer <info@thin-edge.io> Co-authored-by: Lukasz Woznicki <75632179+makr11st@users.noreply.github.com>
2021-11-10[CIT-612] log operation request (#551)Alex Solomes
* [CIT-651] Log operation request Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * [CIT-651] supported log types Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * [CIT-651] log upload working prototype Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] log request refactor part 1 Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * [CIT-651] refactoring pt2 Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] refactoring function names and comments Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * [CIT-651] moved log event creation and upload outside of struct Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] improved dt parsing from pathbuf, removed dbg!(s) Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] added test for date string, sorted readdir Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] refactoring test case and number of log lines to send Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] ommited test return type Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] updated log retrieval to use iterator Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] error handling for log request & text filtering Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] refactoring, dt serde auto conversion, read logs logic Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] cargo clippy & fmt Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] removing leftover comments Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] standardized CumulocitySupportedOperations Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] addressing pr comments and adding header to log files Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] removing error handling after merge with #554 Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] added test for log reading & alphanumeric sorting of files Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] fixing broken from adding log request feature Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] documentation update for test `test_read_logs` Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] moved SmartRestLogEvent to mapper.rs Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] adding : to fix datetime parsing Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] ensuring empty requests does not get deserialized Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] updating log documentation & refactoring Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] cargo fmt after conflict resolve Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] refactoring unwraps in deserializer and mapper Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] cargo fmt after conflict Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] cleanup after git conflict resolve Signed-off-by: Alex <solo@softwareag.com> * [CIT-651] refactor unwrap messages, utf8 error enum, mapper tests fix Signed-off-by: Alex <solo@softwareag.com> Co-authored-by: Alex <solo@softwareag.com>