From: Sangwook Ha Date: Fri, 5 Jul 2024 16:05:20 +0000 (-0700) Subject: Define scandium stream X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=b9619182128fdbcc633129519168ca8029edb080;p=integration%2Ftest.git Define scandium stream The latest development stream is 'scandium'. Update the stream dictionary with the new stream and add compare-stream keywords. Also, add BGPCEP variable files for scandium. Change-Id: I097f0914965b964299f9f4aadaba526c0f8dff6d Signed-off-by: Sangwook Ha --- diff --git a/csit/libraries/CompareStream.robot b/csit/libraries/CompareStream.robot index a248b20f26..db8c87a6c2 100644 --- a/csit/libraries/CompareStream.robot +++ b/csit/libraries/CompareStream.robot @@ -22,6 +22,7 @@ Library String ... argon=${18} ... potassium=${19} ... calcium=${20} +... scandium=${21} ... master=${999} @@ -97,6 +98,11 @@ Set_Variable_If_At_Least_Calcium [Arguments] ${value_if_true} ${value_if_false} BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least calcium ${value_if_true} ${value_if_false} +Set_Variable_If_At_Least_Scandium + [Documentation] Compare scandium to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least scandium, return ${value_if_false} otherwise. + [Arguments] ${value_if_true} ${value_if_false} + BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least scandium ${value_if_true} ${value_if_false} + Set_Variable_If_At_Most_Neon [Documentation] Compare neon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most neon, ... return ${value_if_false} otherwise. @@ -163,6 +169,12 @@ Set_Variable_If_At_Most_Calcium [Arguments] ${value_if_true} ${value_if_false} BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most calcium ${value_if_true} ${value_if_false} +Set_Variable_If_At_Most_Scandium + [Documentation] Compare scandium to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most scandium, + ... return ${value_if_false} otherwise. + [Arguments] ${value_if_true} ${value_if_false} + BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most scandium ${value_if_true} ${value_if_false} + CompareStream__Convert_Input [Documentation] Splits arguments into args and kwargs is used in Run_Keyword_If_At_Least_Else and Run_Keyword_If_At_Most_Else. ... The problem is, when the string contains =, but it is not a named argument (name=value). There can be many values containing =, but @@ -358,6 +370,12 @@ Run_Keyword_If_At_Least_Calcium [Arguments] ${kw_name} @{varargs} &{kwargs} BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least calcium ${kw_name} @{varargs} &{kwargs} +Run_Keyword_If_At_Least_Scandium + [Documentation] Compare scandium to ${ODL_STREAM} and in case ${ODL_STREAM} is at least scandium, + ... run ${kw_name} @{varargs} &{kwargs} and return its value. + [Arguments] ${kw_name} @{varargs} &{kwargs} + BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least scandium ${kw_name} @{varargs} &{kwargs} + Run_Keyword_If_At_Most_Neon [Documentation] Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is at most neon, ... run ${kw_name} @{varargs} &{kwargs} and return its value. @@ -424,6 +442,12 @@ Run_Keyword_If_At_Most_Calcium [Arguments] ${kw_name} @{varargs} &{kwargs} BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most calcium ${kw_name} @{varargs} &{kwargs} +Run_Keyword_If_At_Most_Scandium + [Documentation] Compare scandium to ${ODL_STREAM} and in case ${ODL_STREAM} is at most scandium, + ... run ${kw_name} @{varargs} &{kwargs} and return its value. + [Arguments] ${kw_name} @{varargs} &{kwargs} + BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most scandium ${kw_name} @{varargs} &{kwargs} + Run_Keyword_If_More_Than_Neon [Documentation] Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is more than neon, ... run ${kw_name} @{varargs} &{kwargs} and return its value. @@ -490,6 +514,12 @@ Run_Keyword_If_More_Than_Calcium [Arguments] ${kw_name} @{varargs} &{kwargs} BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than calcium ${kw_name} @{varargs} &{kwargs} +Run_Keyword_If_More_Than_Scandium + [Documentation] Compare scandium to ${ODL_STREAM} and in case ${ODL_STREAM} is more than scandium, + ... run ${kw_name} @{varargs} &{kwargs} and return its value. + [Arguments] ${kw_name} @{varargs} &{kwargs} + BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than scandium ${kw_name} @{varargs} &{kwargs} + Run_Keyword_If_Less_Than_Sodium [Documentation] Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is less than sodium, ... run ${kw_name} @{varargs} &{kwargs} and return its value. @@ -549,3 +579,9 @@ Run_Keyword_If_Less_Than_Calcium ... run ${kw_name} @{varargs} &{kwargs} and return its value. [Arguments] ${kw_name} @{varargs} &{kwargs} BuiltIn.Run_Keyword_And_Return Run_Keyword_If_Less_Than calcium ${kw_name} @{varargs} &{kwargs} + +Run_Keyword_If_Less_Than_Scandium + [Documentation] Compare scandium to ${ODL_STREAM} and in case ${ODL_STREAM} is less than scandium, + ... run ${kw_name} @{varargs} &{kwargs} and return its value. + [Arguments] ${kw_name} @{varargs} &{kwargs} + BuiltIn.Run_Keyword_And_Return Run_Keyword_If_Less_Than scandium ${kw_name} @{varargs} &{kwargs} diff --git a/csit/variables/bgpclustering/scandium b/csit/variables/bgpclustering/scandium new file mode 120000 index 0000000000..121ca56cfd --- /dev/null +++ b/csit/variables/bgpclustering/scandium @@ -0,0 +1 @@ +aluminium \ No newline at end of file diff --git a/csit/variables/pcepuser/scandium b/csit/variables/pcepuser/scandium new file mode 120000 index 0000000000..437071b6d3 --- /dev/null +++ b/csit/variables/pcepuser/scandium @@ -0,0 +1 @@ +chlorine \ No newline at end of file diff --git a/csit/variables/tcpmd5user/scandium b/csit/variables/tcpmd5user/scandium new file mode 120000 index 0000000000..437071b6d3 --- /dev/null +++ b/csit/variables/tcpmd5user/scandium @@ -0,0 +1 @@ +chlorine \ No newline at end of file