Should Not Be Equal As Strings ${stdout} ${vim_name}
+Check for VIM Target Metric
+ [Arguments] ${vim_name} ${prometheus_host} ${prometheus_port}
+
+ ${vim_account_id}= Get VIM Target ID ${vim_name}
+ Wait Until Keyword Succeeds ${vim_status_max_wait_time} ${vim_status_pol_time} Check If VIM Target Has Metric ${vim_account_id} ${prometheus_host} ${prometheus_port}
+
+
Check for VIM Target Status
[Arguments] ${vim_name} ${prometheus_host} ${prometheus_port}
${metric}= Get Metric ${prometheus_host} ${prometheus_port} osm_vim_status vim_account_id=${vim_account_id}
Should Be Equal As Integers ${metric} 1 msg=VIM Target '${vim_account_id}' is not active values=false
+
+
+Check If VIM Target Has Metric
+ [Arguments] ${vim_account_id} ${prometheus_host} ${prometheus_port}
+
+ ${metric}= Get Metric ${prometheus_host} ${prometheus_port} osm_vim_status vim_account_id=${vim_account_id}
+ Should Be True ${metric} <2 msg=VIM Target '${vim_account_id}' has no metric
Set Suite Variable ${vim_name}
${created_vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type}
Set Suite Variable ${created_vim_account_id}
- Check for VIM Target Status ${vim_name} ${prometheus_host} ${prometheus_port}
+ Check for VIM Target Metric ${vim_name} ${prometheus_host} ${prometheus_port}
Delete VIM Target By Name