... All tests will be performed over an Openstack VIM, and the credentials will be loaded from clouds.yaml file.
Resource %{ROBOT_DEVOPS_FOLDER}/lib/vim_lib.robot
+Resource %{ROBOT_DEVOPS_FOLDER}/lib/prometheus_lib.robot
Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_01-crud_operations_on_vim_targets_data.py
Force Tags basic_01 cluster_main daily regression
+Suite Setup Run Keyword And Ignore Error Suite Preparation
+
*** Test Cases ***
Create VIM Target Basic
${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 VIM Target Operational State ${vim_name}
- Check for VIM Target Metric ${vim_name} ${prometheus_host} ${prometheus_port}
+ ${stdout}= Check for VIM Target Metric ${vim_name} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password}
Delete VIM Target By Name
${created_vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type} config=${vim_config}
Set Suite Variable ${created_vim_account_id}
Check VIM Target Operational State ${vim_name}
- 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}
Delete VIM Target By ID
Should Be Equal As Strings ${vim_account_id} ${created_vim_account_id}
Delete VIM Target ${vim_account_id}
+
+*** Keywords ***
+Suite Preparation
+ [Documentation] Test Suite Preparation: Setting Prometheus Testsuite Variables
+
+ Set Testsuite Prometheus Variables