Define calcium stream 94/110494/4
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Mar 2024 13:34:51 +0000 (14:34 +0100)
committerSangwook Ha <sangwook.ha@verizon.com>
Wed, 6 Mar 2024 19:11:15 +0000 (11:11 -0800)
BGPCEP CSIT is failing with:
Dictionary '${Stream_dict}' has no key 'calcium'.

Fix that by defining proper entry.

Also, add the stream keywords and BGPCEP variable files for calcium.

Change-Id: Ib031455a00c0be81c747a4397e1de3f88e32cdb2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
csit/libraries/CompareStream.robot
csit/variables/bgpclustering/calcium [new symlink]
csit/variables/pcepuser/calcium [new symlink]
csit/variables/tcpmd5user/calcium [new symlink]

index af8437c442718f85f0fc857f78ca025266c000d6..a248b20f2672e0af748d3016572a60f23cbbd5e6 100644 (file)
@@ -21,6 +21,7 @@ Library             String
 ...                 chlorine=${17}
 ...                 argon=${18}
 ...                 potassium=${19}
+...                 calcium=${20}
 ...                 master=${999}
 
 
@@ -91,6 +92,11 @@ Set_Variable_If_At_Least_Potassium
     [Arguments]    ${value_if_true}    ${value_if_false}
     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Least    potassium    ${value_if_true}    ${value_if_false}
 
+Set_Variable_If_At_Least_Calcium
+    [Documentation]    Compare calcium to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least calcium, return ${value_if_false} otherwise.
+    [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_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.
@@ -151,6 +157,12 @@ Set_Variable_If_At_Most_Potassium
     [Arguments]    ${value_if_true}    ${value_if_false}
     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Most    potassium    ${value_if_true}    ${value_if_false}
 
+Set_Variable_If_At_Most_Calcium
+    [Documentation]    Compare calcium to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most calcium,
+    ...    return ${value_if_false} otherwise.
+    [Arguments]    ${value_if_true}    ${value_if_false}
+    BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Most    calcium    ${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
@@ -340,6 +352,12 @@ Run_Keyword_If_At_Least_Potassium
     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Least    potassium    ${kw_name}    @{varargs}    &{kwargs}
 
+Run_Keyword_If_At_Least_Calcium
+    [Documentation]    Compare calcium to ${ODL_STREAM} and in case ${ODL_STREAM} is at least calcium,
+    ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
+    [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
+    BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Least    calcium    ${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.
@@ -400,6 +418,12 @@ Run_Keyword_If_At_Most_Potassium
     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Most    potassium    ${kw_name}    @{varargs}    &{kwargs}
 
+Run_Keyword_If_At_Most_Calcium
+    [Documentation]    Compare calcium to ${ODL_STREAM} and in case ${ODL_STREAM} is at most calcium,
+    ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
+    [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
+    BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Most    calcium    ${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.
@@ -460,6 +484,12 @@ Run_Keyword_If_More_Than_Potassium
     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_More_Than    potassium    ${kw_name}    @{varargs}    &{kwargs}
 
+Run_Keyword_If_More_Than_Calcium
+    [Documentation]    Compare calcium to ${ODL_STREAM} and in case ${ODL_STREAM} is more than calcium,
+    ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
+    [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
+    BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_More_Than    calcium    ${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.
@@ -513,3 +543,9 @@ Run_Keyword_If_Less_Than_Potassium
     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_Less_Than    potassium    ${kw_name}    @{varargs}    &{kwargs}
+
+Run_Keyword_If_Less_Than_Calcium
+    [Documentation]    Compare calcium to ${ODL_STREAM} and in case ${ODL_STREAM} is 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}
diff --git a/csit/variables/bgpclustering/calcium b/csit/variables/bgpclustering/calcium
new file mode 120000 (symlink)
index 0000000..121ca56
--- /dev/null
@@ -0,0 +1 @@
+aluminium
\ No newline at end of file
diff --git a/csit/variables/pcepuser/calcium b/csit/variables/pcepuser/calcium
new file mode 120000 (symlink)
index 0000000..437071b
--- /dev/null
@@ -0,0 +1 @@
+chlorine
\ No newline at end of file
diff --git a/csit/variables/tcpmd5user/calcium b/csit/variables/tcpmd5user/calcium
new file mode 120000 (symlink)
index 0000000..437071b
--- /dev/null
@@ -0,0 +1 @@
+chlorine
\ No newline at end of file