Fix Bug 2197 - Prometheus cannot be authenticated in Robot tests
[osm/tests.git] / robot-systest / testsuite / basic_08-disable_port_security_network_level.robot
index 80dd018..25164f5 100644 (file)
@@ -38,7 +38,7 @@ ${port_disabled_msg}   port_security_enabled: false
 Create VIM With Port Security Disabled
 
     ${created_vim_account_id}=   Create VIM Target   ${vim_name}   ${vim_user}   ${vim_password}   ${vim_auth_url}   ${vim_tenant}   ${vim_account_type}   config=${vim_config}
-    Check for VIM Target Status   ${vim_name}   ${prometheus_host}   ${prometheus_port}
+    Check for VIM Target Status   ${vim_name}   ${prometheus_host}   ${prometheus_port}   ${prometheus_user}   ${prometheus_password}
 
 Create VNF Descriptor
 
@@ -59,7 +59,7 @@ Instantiate Network Service
 Check Port Security Is Disabled
 
     ${rc}   ${disabled_ports}=   Run and Return RC and Output   osm ns-show ${ns_name} --literal | grep -c '${port_disabled_msg}'
-    Run Keyword Unless   ${disabled_ports} > 0   Fail   msg=Found '${disabled_ports}' matches for '${port_disabled_msg}'
+    Run Keyword If   ${disabled_ports} <= 0   Fail   msg=Found '${disabled_ports}' matches for '${port_disabled_msg}'
 
 
 Delete NS Instance