MaxIV-KitsControls / Libera-SinglePassE

Tango DeviceServer of the Libera SinglePass E
0 stars 1 forks source link

Way to test the State #32

Open hardion opened 11 years ago

hardion commented 11 years ago

I would like to create unit test for the State Machine Do you know how I can change the state of the device by injecting some value with ireg ?

gasperjug commented 11 years ago

Ways to intentionally change the State are:

-kill mci application daemon -> State goes into FAULT -wrong configuration of TangoDS. For example not specifying board. -> State goes into FAULT -shutdown internet connection -> State goes into UNKNOWN -changing node value with ireg cannot affect the State, unless setting a value for which the State would go into ALARM, currently only temperature attributes can trigger ALARM State, but these are read only nodes/attributes

side note: When checking this issue, I noticed that ALARM State is not defined in the documentation and POGO and such.... Although the State does often go into ALARM due to high temperatures and when it does, the Status remains the same as for when the State is simply ON. Since the Status in a way corresponds to the State, this might need to be changed.

Can you try to make the change if needed, so we can slowly start the transition of code to you?