Solve legacy problem with clear operation (coredump with running threads)
authorEduardo Ramos Testillano (eramedu) <eduardo.ramos.testillano@ericsson.com>
Mon, 11 May 2020 16:53:32 +0000 (18:53 +0200)
committerEduardo Ramos Testillano (eramedu) <eduardo.ramos.testillano@ericsson.com>
Mon, 11 May 2020 16:53:32 +0000 (18:53 +0200)
commit21054b5919e21b14627fac09e718262ae2812af4
tree3550925405f0d018d74188703e1eaa77a118ca47
parent882e3764e48fdf93aeb078c1832b10a956288da3
Solve legacy problem with clear operation (coredump with running threads)

Modified the clear operation. Now is 'conditional', so, when is unsafe,
it will be ignored. A message on http interface advice about trying
later because some running threads could be ongoing (check test
summary to confirm). Sometimes, it could be due to stuck external
procedures. The user is responsible to kill those stuck procedures
or guarantee they are timedout (it is recommended to wrap procedures
into safe containers (subshells) if you don't trust too much those
procedures).

Normally, step commands are not so usual. ADML FSM (finite state
machine) is better used through REST API from other controllers
with their own FSM and interface endpoints (no need for ADML
dedicated command-step threads).
include/anna/testing/TestCase.hpp
include/anna/testing/TestManager.hpp
include/anna/testing/TestStep.hpp
source/testing/TestCase.cpp
source/testing/TestManager.cpp
source/testing/TestStep.cpp