From 9f7478d7cc727047f0fe9a4937f8533c26fcf1e8 Mon Sep 17 00:00:00 2001 From: Artiom Divak Date: Mon, 2 Sep 2024 14:31:55 +0300 Subject: [PATCH] ResetFailed and ResetFailedUnit This PR will add bluechi the ability to reset failed all units or reset one failed unit. Solves: https://github.com/eclipse-bluechi/bluechi/issues/932 Signed-off-by: Artiom Divak --- data/org.eclipse.bluechi.Node.xml | 16 +++++ data/org.eclipse.bluechi.internal.Agent.xml | 4 ++ src/agent/agent.c | 2 + src/bindings/python/bluechi/api.py | 17 +++++ src/client/main.c | 38 +++++------ src/client/method-help.c | 4 ++ src/client/method-unit-actions.c | 63 +++++++++++++++++++ src/client/method-unit-actions.h | 2 + src/controller/node.c | 2 + tests/bluechi_test/bluechictl.py | 27 ++++++++ .../tier0/bluechi-reset-failed-unit/main.fmf | 3 + .../test_bluechi_reset_failed_unit.py | 62 ++++++++++++++++++ .../tests/tier0/bluechi-reset-failed/main.fmf | 3 + .../test_bluechi_reset_failed.py | 62 ++++++++++++++++++ 14 files changed, 287 insertions(+), 18 deletions(-) create mode 100644 tests/tests/tier0/bluechi-reset-failed-unit/main.fmf create mode 100644 tests/tests/tier0/bluechi-reset-failed-unit/test_bluechi_reset_failed_unit.py create mode 100644 tests/tests/tier0/bluechi-reset-failed/main.fmf create mode 100644 tests/tests/tier0/bluechi-reset-failed/test_bluechi_reset_failed.py diff --git a/data/org.eclipse.bluechi.Node.xml b/data/org.eclipse.bluechi.Node.xml index ae33976875..12af5ff1a5 100644 --- a/data/org.eclipse.bluechi.Node.xml +++ b/data/org.eclipse.bluechi.Node.xml @@ -226,6 +226,22 @@ + + + + + + + +