summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-10-04postrm update to remove leftover files after purge [CIT-556] (#460)Alex Solomes
* postrm rm users, groups, logs, .d files [CIT-556] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * added case statement & purge/remove logic [CIT-556] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * removing sudoers file [CIT-556] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * remove sudoers from tedge-agent [CIT-556] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com>
2021-10-04Revert "Run all tests on commit (experimental) (#462)" (#464)Rina Fujino
This reverts commit 1b094ad73a6c81503d189ff0fcc6998e89009b79.
2021-10-04Run all tests on commit (experimental) (#462)Michael Abel
* Run all tests on commit * Make a decent clone of michaels ci * Run only on main * Revert "Run only on main" This reverts commit cb59bf4cc5d05a9d2f97d817237f0e184ce8f567. * Analyze env * Add chmod to publisher Signed-off-by: Michael Abel <info@abel-ikt.de> * Work on review comments and add TODOs
2021-09-30[CIT-571] Add --file and package validation to plugin_apt (#453)Lukasz Woznicki
* Add --file and package validation to plugin_apt Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> Co-authored-by: Alex Solomes <alex.solomes@softwareag.com>
2021-09-30[CIT-598] Update Package Plugin API doc (#458)Rina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-09-29add option to allow connection from external clients (#452)Yudai Kiyofuji
Signed-off-by: z8674558 <own7000hr@gmail.com>
2021-09-29(cargo release) bump version (#457)github-actions[bot]
Co-authored-by: Versioneer <info@thin-edge.io>
2021-09-29Change rewest features to disable nativetls with openssl and use rustls (#456)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-09-29[CIT-567] Docker plugin (#447)Albin Suresh
* [CIT-567] Docker plugin
2021-09-28[CIT-571] Add download crate and supporting struct in json_sm (#454)Lukasz Woznicki
* Add download crate and supporting struct in json_sm * Add tests for downloader Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-09-28[CIT-539] Add a tutorial how to write a new sm-plugin (#448)Rina Fujino
* [CIT-539] Add a tutorial how to write a new sm-plugin Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-09-28Increase the max packet size (#450)PradeepKiruvale
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-09-28Add await on file remove in async_write_atomic (#455)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-09-27fixing broken tests pre-testing feature [CIT-591] (#451)Alex Solomes
Signed-off-by: Alex Solomes <alex.solomes@softwareag.com>
2021-09-24[CIT-564] Improve error reporting on software update (#443)Didier Wenzek
* [CIT-564] Sketch plugin command logging * [CIT-564] Move the logging code into the `logged_command` module * [CIT-564] Test error cases * [CIT-564] Log all the actions of a software operation * [CIT-564] Clean log output * [CIT-564] Log files are managed by the agent * [CIT-564] Redirect the cloud user to the device log file on error * [CIT-564] Remove dead code * [CIT-564] Remove out dated logs * [CIT-564] Address review comments * [CIT-564] Cargo fmt * [CIT-564] Make the log independent of the system On my box, an exit status is displayed `exit code: 0` while on some others, the same exit status is displayed as `exit status: 0` * [CIT-564] Add comments Co-authored-by: Wenzek <diw@softwareag.com>
2021-09-23Move smartrest to separate crate (#446)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-09-21[CIT-550] flockfile and test for tedge agent (#437)Alex Solomes
* [CIT-550] flockfile and test for tedge agent * fmt and clippy code formatting * mosquitto-available to fix workflow test [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * moved flockfile utility, updated error msg, reverted changed [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * fix workflow flockfile test [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * removed create_sm_agent, moved to ..::new [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * fixed panic SmAgent, comments & imports [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * cargo-fmt [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * PySys testing for stating two agents [CIT-55] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * Revert "PySys testing for stating two agents [CIT-55]" This reverts commit b22e744158b3d65bcde62aa750772eca7f880daf. * fixed test with cfg flag [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * re-write of test to avoid sleep [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * panic cleanup [CIT-550] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com>
2021-09-21[CIT-577] Update postinst script of tedge-agent (#436)Rina Fujino
* [CIT-577] Update postinst script of tedge-agent - tedge-agent can execute other plugins than apt Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com> * [CIT-471] Add tests part 1 Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-09-20Log the messages published by the collectd mapper (#441)Didier Wenzek
Co-authored-by: Wenzek <diw@softwareag.com>
2021-09-17Fix failing tedge_connect_test_positive using wrong device name (#439)Albin Suresh
2021-09-17Update monitoring tests since the collectd timestamp are now used for ↵Didier Wenzek
message batching (#438) Co-authored-by: Wenzek <diw@softwareag.com>
2021-09-17[CIT-557] add skip-clean to fasten tarpaulin run (#431)PradeepKiruvale
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-09-16Clippy lints fixes for latest code (#433)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-09-16Fix the exit status of `tedge mqtt pub` on error (#434)Didier Wenzek
* Revert to the previous behaviour: exit when the TCP connection is lost * Cargo fmt * Fix the error status returned by `tedge mqtt sub` on error * Fix error message * Cargo fmt Co-authored-by: Wenzek <diw@softwareag.com>
2021-09-16Feature/cit 508/simplify logging (#427)Didier Wenzek
* [CIT-508] Remove dependency to the `log` and `env_logger` crates * [CIT-508] Set tracing env filter RUST_LOG * [CIT-508] Set the log level using a cli option An alternative could have been to use an env filter configured with `RUST_LOG`. But this has a large impact on the executable size (+600k) without true benefist. * [CIT-508] Cargo fmt * [CIT-508] Set tracing span for the agent and the mapper * [CIT-508] Move the tracing_subscriber initialisation to common/tedge_utils Co-authored-by: Wenzek <diw@softwareag.com>
2021-09-15Prefixed https in C8YURLRina Fujino
2021-09-15Set default Cumulocity URL for system tests (#430)Albin Suresh
2021-09-15(cargo release) bump version (#429)github-actions[bot]
Co-authored-by: Versioneer <info@thin-edge.io>
2021-09-15Update version in some docs to 0.3.0 (#428)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-09-15[CIT-547] Device type for thin-edge devices on Cumulocity (#416)Albin Suresh
* [CIT-547] Device type for thin-edge devices on Cumulocity
2021-09-14Fix the bridge configuration of the clean session flag (#426)Didier Wenzek
* Fix bridge config: the session must not been clean on re-connect * Fix function scope Co-authored-by: Wenzek <diw@softwareag.com>
2021-09-14[CIT-565] tedge connect test c8y/az (#425)PradeepKiruvale
* [CIT-565] return error on check connection failure * [CIT-565] check if device connected * address review comments Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-09-14[CIT-552] mqtt port change test (#419)PradeepKiruvale
* [CIT-552] fix mqtt.port system test * [CIT-552] check subscriber started or not * check log success * remove unused code * revert the xml changes * address review comments Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-09-13[CIT-538] Directly use rumqttc to implement `tedge mqtt sub` (#418)Didier Wenzek
* [CIT-538] Directly use rumqttc to implement `tedge mqtt sub` * [CIT-538] Re-implement `tedge mqtt pub` directly on top of `rumqttc` * [CIT-538] Re-implementing `tedge connect c8y` directly on top of rumqttc * [CIT-538] Re-implement `tedge connect az` directly on top of rumqttc * [CIT-538] Remove last depencies to the `mqtt_client` library * [CIT-538] Fix typo * [CIT-538] Clean `tedge connect` output Co-authored-by: Wenzek <diw@softwareag.com>
2021-09-13[cit-551] fix tarpaulin tests (#423)PradeepKiruvale
* fix tarpaulin tests * address review comments Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-09-09[CIT-526] End to end test extension for software management (#414)Michael Abel
* checkout tests from ci branch from folder ... ... tests/PySys/software-management-end-to-end Signed-off-by: Michael Abel <info@abel-ikt.de> * Split checking and getting statuses * Automatically set wait time based on arch * rename symbol * Improved to wait until a status * Run black * Increase timeout * Enable them when flag is present * Equalize name * Make the fake plugins run again * Refactor test case * Update docu * Fix testcase * Use environment variable to inject a sw id database * Fix typo * Rename myPlatform container * Rename symbols * Improve comment and disable wait time * Rename symbol * Update test descriptions * Unify case of property names * Add sample file and docu about the dummy plugin * Fix typo
2021-09-08Update sm doc (#415)PradeepKiruvale
* update sm doc * refactor sm doc * address review comments * Fix typos * address review comments Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-09-07[CIT-561] Add aarch64 and arm64 support to install script (#413)Lukasz Woznicki
* Add aarch64 and arm64 support to install script Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> Co-authored-by: Albin Suresh <albinsuresh@hotmail.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com>
2021-09-06[CIT-459] Use the batcher to batch collectd message (#401)Didier Wenzek
* [CIT-459] impl Batchable for CollectdMessage * [CIT-459] Use the batcher to batch collectd messages * [CIT-459] Cargo fmt * [CIT-459] Fix typos * [CIT-459] Use the monitor configuration to set the batcher parameters * [CIT-459] Propagate the end of stream along the baching pipeline * [CIT-459] Remove unused `mut` * [CIT-459] Set default values for batching window and max delay * [CIT-459] Fix the default maximum message delay Co-authored-by: Wenzek <diw@softwareag.com>
2021-09-06[CIT-532] Resubscribe to Cumulocity cloud inbound topics only on new device ↵Albin Suresh
creation (#412) * [CIT-532] Resubscribe to Cumulocity cloud inbound topics only on new device creation
2021-09-01[CIT-541] fix typos in collectd doc (#411)PradeepKiruvale
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-08-31[CIT-527]Software Management user-facing document (#409)PradeepKiruvale
* [CIT-527] software management doc * update pics * move docs to tutorials * Update summary * fix typos * [CIT-471] Add mapper integration tests (#397) * [CIT-471] Add mapper integration tests Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com> Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> Co-authored-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> * [CIT-525] enable sm services (#396) * [CIT-525] extend tedge dis/connect to dis/enable sm services * enable services postinstall * fix minor issues * address review comments * update the println * remove to_do macro * add system tests * add use_agent flag * refactor common code * address review comments * address review comment * Update tedge/src/cli/connect/command.rs * update log Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com> * Also build the tedge_agent debian package on github (#399) * Also build the sm agent package Signed-off-by: Michael Abel <info@abel-ikt.de> * Also build the package for amd64 * tenant-admin hint (#340) Introducing hint to check user rights in cumulocity on HTTP error 503 * [CIT-522] update the mqtt port document (#398) * update the mqtt port document * fix typo * address review comments Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com> * [CIT-514] Add send software list via http (#400) * Add send software list via http * Add tests for c8y structs * Add new tests, change pannicable string building to safe version Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> * [CIT-542] tedge-agent requires apt plugin as dependency (#406) * [CIT-551] Make the workflow (temporarily) continue even when tarpaulin fails. (#407) Signed-off-by: Michael Abel <info@abel-ikt.de> * [CIT-532] Subscribe to cloud operations only after device creation (#404) * [CIT-532] Subscribe to cloud operations only after device creation * [CIT-551] Make the job pass (temporarily) on job level as well (#408) * Make it continue even when tarpaulin fails Signed-off-by: Michael Abel <info@abel-ikt.de> * [CIT-551] Make the job pass on job level as well * fix a typo * address review comments * Update software-management.md Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com> Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com> Co-authored-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com> Co-authored-by: Michael Abel <75477722+abelikt@users.noreply.github.com> Co-authored-by: Lukasz Woznicki <75632179+makr11st@users.noreply.github.com> Co-authored-by: Albin Suresh <albin.suresh@softwareag.com>
2021-08-31Release 0.3.0 (#410)Lukasz Woznicki
2021-08-30[CIT-540] create .agent directory (#405)PradeepKiruvale
* [CIT-525] extend tedge dis/connect to dis/enable sm services * enable services postinstall * fix minor issues * address review comments * update the println * remove to_do macro * add system tests * add use_agent flag * refactor common code * address review comments * address review comment * Update tedge/src/cli/connect/command.rs * update log * [CIT-540] create .agent directory * fix the apt plugin permission issue * address PR comment * disable tests for tarpaulin * fix tarpaulin issue * revert the tarpaulin changes * update workflow Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com>
2021-08-30[CIT-551] Make the job pass (temporarily) on job level as well (#408)Michael Abel
* Make it continue even when tarpaulin fails Signed-off-by: Michael Abel <info@abel-ikt.de> * [CIT-551] Make the job pass on job level as well
2021-08-30[CIT-532] Subscribe to cloud operations only after device creation (#404)Albin Suresh
* [CIT-532] Subscribe to cloud operations only after device creation
2021-08-30[CIT-551] Make the workflow (temporarily) continue even when tarpaulin ↵Michael Abel
fails. (#407) Signed-off-by: Michael Abel <info@abel-ikt.de>
2021-08-30[CIT-542] tedge-agent requires apt plugin as dependency (#406)Albin Suresh
2021-08-27[CIT-514] Add send software list via http (#400)Lukasz Woznicki
* Add send software list via http * Add tests for c8y structs * Add new tests, change pannicable string building to safe version Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-08-27[CIT-522] update the mqtt port document (#398)PradeepKiruvale
* update the mqtt port document * fix typo * address review comments Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com>