- [Documentation] Create a VIM Target only with the mandatory parameters.
- ... Checks the status of the VIM in Prometheus after it creation.
-
- ${rand}= Generate Random String 8 [NUMBERS]
- ${vim_name}= Catenate SEPARATOR=_ ${vim_name_prefix} ${rand}
- 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 Metric ${vim_name} ${prometheus_host} ${prometheus_port}
-
+ [Documentation] Create a VIM Target only with the mandatory parameters.
+ ... Checks the status of the VIM in Prometheus after it creation.
+ Pass Execution If ${VIM_ACCOUNT_TYPE} != 'openstack' Not applicable for ${VIM_ACCOUNT_TYPE} VIM
+ ${rand}= Generate Random String 6 [NUMBERS]
+ ${VIM_NAME}= Catenate SEPARATOR=_ ${vim_name_prefix} ${rand}
+ 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 VIM Target Operational State ${VIM_NAME}
+ ${stdout}= Check For VIM Target Metric ${VIM_NAME} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD}
+ Log ${stdout}