Vladimir Ushakov 16b0bafa2f Add zabbix destructive test.
Add test_host_failover test.
Add related zabbix API methods.

Change-Id: I20d8c032b321ec3818f98c577d29b5025771d9a4
2016-10-14 15:37:22 +03:00

48 lines
1.8 KiB
Python

# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from stacklight_tests.helpers import helpers
from stacklight_tests import settings
name = 'zabbix_monitoring'
plugin_path = settings.ZABBIX_MONITORING_PLUGIN_PATH
version = helpers.get_plugin_version(plugin_path)
failover_vip = 'zbx_vip_mgmt'
# NOTE(vgusev): This parameter is required for destructive scenario
role_name = ["controller"]
dependant_plugins = {
'ZABBIX_MONITORING_EMC': {
'name': 'zabbix_monitoring_emc',
'plugin_path': settings.ZABBIX_MONITORING_EMC_PLUGIN_PATH,
'version': helpers.get_plugin_version(
settings.ZABBIX_MONITORING_EMC_PLUGIN_PATH)
},
'ZABBIX_MONITORING_EXTREME_NETWORKS': {
'name': 'zabbix_monitoring_extreme_networks',
'plugin_path': settings.ZABBIX_MONITORING_EXTREME_NETWORKS_PLUGIN_PATH,
'version': helpers.get_plugin_version(
settings.ZABBIX_MONITORING_EXTREME_NETWORKS_PLUGIN_PATH)
},
'ZABBIX_SNMPTRAPD': {
'name': 'zabbix_snmptrapd',
'plugin_path': settings.ZABBIX_MONITORING_SNMPTRAPD_PLUGIN_PATH,
'version': helpers.get_plugin_version(
settings.ZABBIX_MONITORING_SNMPTRAPD_PLUGIN_PATH)
}
}
default_options = {}
zabbix_username = 'admin'
zabbix_password = 'zabbix'
base_nodes = {}