You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run Target run_target_crashing_app_on_startup_twice which contains a Component component_crashing_on_startup_twice
Run Target run_target_crashing_app_on_startup_always which contains a Component component_crashing_on_startup_always
Ready Recovery Action on component_crashing_on_startup_twice and component_crashing_on_startup_always configured to restart process 3 times before failing
Recovery Action on run_target_crashing_app_on_startup_always configured to switch to Run Target Startup
The process involved in component_crashing_on_startup_twice should crash before reporting kRunning at the first two tries (for example count the number of process starts via text file), at the third try it should not crash and report kRunning
Test steps:
Start Launch Manager process
Via score::lcm::ControlClient::ActivateRunTarget(..) activate run_target_crashing_app_on_startup_twice
After run_target_crashing_app_on_startup_twice is activated, via score::lcm::ControlClient::ActivateRunTarget(..) activate run_target_crashing_app_on_startup_always
Expected behavior:
Launch Manager is started successfully and Run Target Startup is activated initially
Run Target run_target_crashing_app_on_startup_twice is activated successfully (optional: track process restart count)
Run Target run_target_crashing_app_on_startup_always can not be activated (optional: track process restart count)
Recovery Action is executed and Run Target Startup is activated
Acceptance Criteria (DoD)
Test specification and implementation exists. Test passes.
What
Verifies requirements:
Depends on: #172
Configuration:
run_target_crashing_app_on_startup_twicewhich contains a Componentcomponent_crashing_on_startup_twicerun_target_crashing_app_on_startup_alwayswhich contains a Componentcomponent_crashing_on_startup_alwayscomponent_crashing_on_startup_twiceandcomponent_crashing_on_startup_alwaysconfigured to restart process 3 times before failingrun_target_crashing_app_on_startup_alwaysconfigured to switch to Run TargetStartupcomponent_crashing_on_startup_twiceshould crash before reporting kRunning at the first two tries (for example count the number of process starts via text file), at the third try it should not crash and report kRunningTest steps:
score::lcm::ControlClient::ActivateRunTarget(..)activaterun_target_crashing_app_on_startup_twicerun_target_crashing_app_on_startup_twiceis activated, viascore::lcm::ControlClient::ActivateRunTarget(..)activaterun_target_crashing_app_on_startup_alwaysExpected behavior:
Startupis activated initiallyrun_target_crashing_app_on_startup_twiceis activated successfully (optional: track process restart count)run_target_crashing_app_on_startup_alwayscan not be activated (optional: track process restart count)Startupis activatedAcceptance Criteria (DoD)
Test specification and implementation exists. Test passes.