Updated test for Azure support
Change-Id: Id9b1a01da70e41526c59895a0e4052c37b28b7e8
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/robot-systest/lib/vim_lib.robot b/robot-systest/lib/vim_lib.robot
index a156a9e..8e622c9 100644
--- a/robot-systest/lib/vim_lib.robot
+++ b/robot-systest/lib/vim_lib.robot
@@ -24,8 +24,10 @@
${success_return_code} 0
${delete_max_wait_time} 1min
${delete_pol_time} 15sec
-${vim_status_max_wait_time} 2min
+${vim_status_max_wait_time} 3min
${vim_status_pol_time} 15sec
+${vim_opstate_max_wait_time} 40sec
+${vim_opstate_pol_time} 10sec
*** Keywords ***
@@ -93,6 +95,20 @@
[Return] ${stdout}
+Check VIM Target Operational State
+ [Arguments] ${vim_name}
+
+ Wait Until Keyword Succeeds ${vim_opstate_max_wait_time} ${vim_opstate_pol_time} Check If VIM Target Is Enabled ${vim_name}
+
+
+Check If VIM Target Is Enabled
+ [Arguments] ${vim_name}
+
+ ${rc} ${stdout}= Run and Return RC and Output osm vim-list | grep " ${vim_name} " | awk '{print $6}'
+ Should Be Equal As Integers ${rc} ${success_return_code}
+ Should Be Equal As Strings ${stdout} ENABLED msg=VIM Target '${vim_name}' is not enabled values=false
+
+
Check If VIM Target Is Available
[Arguments] ${vim_account_id} ${prometheus_host} ${prometheus_port}