Age | Commit message (Collapse) | Author |
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
Clippy fixes for: c8y_smartrest
|
|
- 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>
|
|
- 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>
|
|
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>
|
|
dependent crates [1/3]
Use 'time' instead of 'chrono' due to CVE for thin_edge_json and all dependent crates [1/3]
|
|
Clippy fixes for: agent_interface
|
|
dependent crates
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
dependent crates
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
This fixes clippy lint `clippy::new_without_default`.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
The motivation is to ease testing with the `StreamExt` extension
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
|
|
This fixes clippy lint `clippy::new_without_default`.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
This fixes clippy lint `clippy::new_without_default`.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
* [#735] Detect and reconcile cleared alarms while mapper was down on its restart
* Rust integration test for C8Y mapper
* Rust integration test for alarm syncing on startup
* New publish apis in mqtt_test crate that supports retain flag and QoS
* Refactor alarm conversion logic to dedicated AlarmConverter enum
|
|
* add init to tedge_agent
* init mapper
* init mapper and agent postinst
* separate init and clear session functions
* use tokio::mutex instead of std::mutex
* pysys test for agent init
* system test for mapper init session
* use mqtt_channel init/clear session apis
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
|
|
* 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>
|
|
* 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>
|
|
* 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>
|
|
* Add operations to tedge_mapper
* Add operations directory on install, remove supported ops from sm-c8y mapper
* Update install command in postinst script to correctly create ops files
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
* Move out any HTTP related code from the MQTT mapper to an HTTP proxy
* Update the tests
* Simplify the jwt tests with a background generator
* Reuse the reqwest client for all requests
* Rename `JwtAuthHttpProxy` the main `C8yHttpProxy` implementation
* Fix typo
Co-authored-by: Wenzek <diw@softwareag.com>
|
|
* cloud restart operation #599
Signed-off-by: initard <solo@softwareag.com>
* operation set to executing c8y #599
Signed-off-by: initard <solo@softwareag.com>
* cargo fmt
Signed-off-by: initard <solo@softwareag.com>
* removing debug hard-coded echo
Signed-off-by: initard <solo@softwareag.com>
* updated handle_restart_opeartion signature in test #599
Signed-off-by: initard <solo@softwareag.com>
* test update for c8y_Restart
Signed-off-by: initard <solo@softwareag.com>
* removed panic on empty restart request #599
Signed-off-by: initard <solo@softwareag.com>
Co-authored-by: initard <solo@softwareag.com>
|
|
* [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>
|
|
|
|
* 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>
|