Age | Commit message (Collapse) | Author |
|
* 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>
|
|
This reverts commit 1b094ad73a6c81503d189ff0fcc6998e89009b79.
|
|
* 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
|
|
* 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>
|
|
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
|
|
Signed-off-by: z8674558 <own7000hr@gmail.com>
|
|
Co-authored-by: Versioneer <info@thin-edge.io>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
* [CIT-567] Docker plugin
|
|
* Add download crate and supporting struct in json_sm
* Add tests for downloader
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
* [CIT-539] Add a tutorial how to write a new sm-plugin
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
|
|
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
Signed-off-by: Alex Solomes <alex.solomes@softwareag.com>
|
|
* [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>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
* [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>
|
|
* [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>
|
|
Co-authored-by: Wenzek <diw@softwareag.com>
|
|
|
|
message batching (#438)
Co-authored-by: Wenzek <diw@softwareag.com>
|
|
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
* 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>
|
|
* [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>
|
|
|
|
|
|
Co-authored-by: Versioneer <info@thin-edge.io>
|
|
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
|
|
* [CIT-547] Device type for thin-edge devices on Cumulocity
|
|
* Fix bridge config: the session must not been clean on re-connect
* Fix function scope
Co-authored-by: Wenzek <diw@softwareag.com>
|
|
* [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>
|
|
* [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>
|
|
* [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>
|
|
* fix tarpaulin tests
* address review comments
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
|
|
* 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
|
|
* 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>
|
|
* 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>
|
|
* [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>
|
|
creation (#412)
* [CIT-532] Resubscribe to Cumulocity cloud inbound topics only on new device creation
|
|
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
|
|
* [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>
|
|
|
|
* [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>
|
|
* 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
|
|
* [CIT-532] Subscribe to cloud operations only after device creation
|
|
fails. (#407)
Signed-off-by: Michael Abel <info@abel-ikt.de>
|
|
|
|
* 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>
|
|
* 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>
|