*** Variables ***
&{Stream_dict}
-... carbon=${6}
... nitrogen=${7}
... oxygen=${8}
... fluorine=${9}
... ${value_if_true}
... ${value_if_false}
-Set_Variable_If_At_Least_Carbon
- [Documentation] Compare carbon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least carbon,
- ... return ${value_if_false} otherwise.
- [Arguments] ${value_if_true} ${value_if_false}
- BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least carbon ${value_if_true} ${value_if_false}
-
-Set_Variable_If_At_Least_Nitrogen
- [Documentation] Compare nitrogen to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least nitrogen,
- ... return ${value_if_false} otherwise.
- [Arguments] ${value_if_true} ${value_if_false}
- BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least nitrogen ${value_if_true} ${value_if_false}
-
Set_Variable_If_At_Least_Oxygen
[Documentation] Compare oxygen to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least oxygen,
... return ${value_if_false} otherwise.
[Arguments] ${value_if_true} ${value_if_false}
BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least chlorine ${value_if_true} ${value_if_false}
-Set_Variable_If_At_Most_Carbon
- [Documentation] Compare carbon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most carbon,
- ... return ${value_if_false} otherwise.
- [Arguments] ${value_if_true} ${value_if_false}
- BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most carbon ${value_if_true} ${value_if_false}
-
Set_Variable_If_At_Most_Nitrogen
[Documentation] Compare nitrogen to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most nitrogen,
... return ${value_if_false} otherwise.
... @{varargs}
... &{kwargs}
-Run_Keyword_If_At_Least_Carbon
- [Documentation] Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is at least carbon,
- ... run ${kw_name} @{varargs} &{kwargs} and return its value.
- [Arguments] ${kw_name} @{varargs} &{kwargs}
- BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least carbon ${kw_name} @{varargs} &{kwargs}
-
-Run_Keyword_If_At_Least_Nitrogen
- [Documentation] Compare nitrogen to ${ODL_STREAM} and in case ${ODL_STREAM} is at least nitrogen,
- ... run ${kw_name} @{varargs} &{kwargs} and return its value.
- [Arguments] ${kw_name} @{varargs} &{kwargs}
- BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least nitrogen ${kw_name} @{varargs} &{kwargs}
-
Run_Keyword_If_At_Least_Oxygen
[Documentation] Compare oxygen to ${ODL_STREAM} and in case ${ODL_STREAM} is at least oxygen,
... run ${kw_name} @{varargs} &{kwargs} and return its value.
[Arguments] ${kw_name} @{varargs} &{kwargs}
BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least chlorine ${kw_name} @{varargs} &{kwargs}
-Run_Keyword_If_At_Most_Carbon
- [Documentation] Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is at most carbon,
- ... run ${kw_name} @{varargs} &{kwargs} and return its value.
- [Arguments] ${kw_name} @{varargs} &{kwargs}
- BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most carbon ${kw_name} @{varargs} &{kwargs}
-
Run_Keyword_If_At_Most_Nitrogen
[Documentation] Compare nitrogen to ${ODL_STREAM} and in case ${ODL_STREAM} is at most nitrogen,
... run ${kw_name} @{varargs} &{kwargs} and return its value.
[Arguments] ${kw_name} @{varargs} &{kwargs}
BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most chlorine ${kw_name} @{varargs} &{kwargs}
-Run_Keyword_If_More_Than_Carbon
- [Documentation] Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is more than carbon,
- ... run ${kw_name} @{varargs} &{kwargs} and return its value.
- [Arguments] ${kw_name} @{varargs} &{kwargs}
- BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than carbon ${kw_name} @{varargs} &{kwargs}
-
Run_Keyword_If_More_Than_Nitrogen
[Documentation] Compare nitrogen to ${ODL_STREAM} and in case ${ODL_STREAM} is more than nitrogen,
... run ${kw_name} @{varargs} &{kwargs} and return its value.
[Arguments] ${kw_name} @{varargs} &{kwargs}
BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than chlorine ${kw_name} @{varargs} &{kwargs}
-Run_Keyword_If_Less_Than_Carbon
- [Documentation] Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is less than carbon,
- ... run ${kw_name} @{varargs} &{kwargs} and return its value.
- [Arguments] ${kw_name} @{varargs} &{kwargs}
- BuiltIn.Run_Keyword_And_Return Run_Keyword_If_Less_Than carbon ${kw_name} @{varargs} &{kwargs}
-
Run_Keyword_If_Less_Than_Nitrogen
[Documentation] Compare nitrogen to ${ODL_STREAM} and in case ${ODL_STREAM} is less than nitrogen,
... run ${kw_name} @{varargs} &{kwargs} and return its value.
[Documentation] Check that the create requests work when node 1 is down.
... As ODL may be in the process of connecting possible new master to the device,
... the action is retried few times.
- ... TODO: Check exact status before retry. Carbon reports 404 instead of the correct 503.
[Tags] critical
${template_as_string}= BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME}
BuiltIn.Wait_Until_Keyword_Succeeds
[Documentation] Check that the modification requests work when node 2 is down.
... As ODL may be in the process of connecting possible new master to the device,
... the action is retried few times.
- ... TODO: Check exact status before retry. Carbon reports 404 instead of the correct 503.
[Tags] critical
BuiltIn.Wait_Until_Keyword_Succeeds
... ${MASTER_CONNECT_TIMEOUT}
[Documentation] Check that the data removal requests work when node 3 is down.
... As ODL may be in the process of connecting possible new master to the device,
... the action is retried few times.
- ... TODO: Check exact status before retry. Carbon reports 404 instead of the correct 503.
[Tags] critical
BuiltIn.Wait_Until_Keyword_Succeeds
... ${MASTER_CONNECT_TIMEOUT}