Age | Commit message (Collapse) | Author |
|
|
|
- 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>
|
|
- 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>
|
|
* (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>
|
|
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
|
|
|
|
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>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
Remove no longer used function from log plugin
|
|
Update to version 0.5.3
|
|
* (cargo release) bump version 0.5.3
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
Signed-off-by: Uwe Klotz <uwe.klotz@slowtec.de>
|
|
- 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
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
dependent crates
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
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]
|
|
dependent crates
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
* [#809] Thin Edge JSON events support for Cumulocity mapper
|
|
* 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>
|
|
* 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>
|
|
* 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>
|
|
* (cargo release) bump version 0.5.2
|
|
* 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>
|
|
* 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>
|
|
* 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>
|
|
* 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>
|
|
* (cargo release) bump version to 0.5.1
Co-authored-by: Versioneer <info@thin-edge.io>
|
|
* Closes #667 Thin Edge JSON alarm support
|
|
* 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>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com>
|
|
* Fixes #672 Failure of apama list command with empty project
|
|
* Closes #598 mon file support for apama plugin
* Extract project name from project descriptor xml
* Enforce zip validation
|
|
* 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>
|
|
* Update dependencies and error handlers
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@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>
|
|
Co-authored-by: Versioneer <info@thin-edge.io>
|
|
* [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>
|
|
* [CIT-675] Apama plugin
|
|
* fix build on 32bit system
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
|
|
* 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>
|
|
* [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>
|
|
* (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>
|
|
* [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>
|