Feature 11001: Robot framework linting for E2E tests
[osm/tests.git] / robot-systest / testsuite / heal_01-volume_vdu_healing.robot
index de2467a..dc94a6f 100644 (file)
@@ -81,7 +81,7 @@ Get NS Id
     [Documentation]   Get NS identifier.
     [Tags]   cleanup
     ${variables}=   Get Variables
-    IF   not "\${ns_id}" in ${variables}
+    IF   not "\${ns_id}" in "${variables}"
         ${id}=   Get Ns Id   ${NS_NAME}
         Set Suite Variable   ${NS_ID}   ${id}
     END
@@ -101,7 +101,7 @@ Get VIM Objects
         ${volumes_attached}=   Get Server Property   ${vdu_id}   volumes_attached
         ${match}=   Get Regexp Matches   ${volumes_attached}   '([0-9a-f\-]+)'   1
         IF   ${match} != @{EMPTY}
-            IF   not ${match}[0] in @{VIM_VOLUMES}
+            IF   not "${match}[0]" in "@{VIM_VOLUMES}"
                 Append To List   ${VIM_VOLUMES}   ${match}[0]
             END
         END
@@ -187,7 +187,7 @@ Update VIM Objects
         @{vdu_ids}=   Split String   ${id}
         Append To List   ${vdu_updated}   @{vdu_ids}
         FOR   ${id}   IN   @{vdu_ids}
-            IF   not ${id} in @{VIM_VDUS}
+            IF   not "${id}" in "@{VIM_VDUS}"
                 Append To List   ${VIM_VDUS}   ${id}
             END
         END
@@ -196,7 +196,7 @@ Update VIM Objects
         ${volumes_attached}=   Get Server Property   ${vdu_id}   volumes_attached
         ${match}=   Get Regexp Matches   ${volumes_attached}   '([0-9a-f\-]+)'   1
         IF   ${match} != @{EMPTY}
-            IF   not ${match}[0] in @{VIM_VOLUMES}
+            IF   not "${match}[0]" in "@{VIM_VOLUMES}"
                 Append To List   ${VIM_VOLUMES}   ${match}[0]
             END
         END
@@ -251,7 +251,7 @@ Delete Objects In VIM
         Log   Checking if server ${vdu_id} is still in VIM
         ${status}=   Run Keyword And Ignore Error   Get Server Property   ${vdu_id}   id
         Log   ${status}[0]
-        IF   ${status}[0] == 'PASS'
+        IF   '${status}[0]' == 'PASS'
             ${error}=   Set Variable   1
             Log   Deleting server ${vdu_id}
             Run Keyword And Ignore Error   Delete Server   ${vdu_id}