Merge "Fix Zabbix system test suite for enabling use of MOS 7, 8 and 9.x"
This commit is contained in:
commit
023ef225c6
@ -11,6 +11,7 @@
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import bs4
|
||||
import requests
|
||||
import urllib
|
||||
@ -20,12 +21,10 @@ from devops.helpers import helpers as devops_helpers
|
||||
from fuelweb_test import logger
|
||||
from proboscis import asserts
|
||||
from pyzabbix import ZabbixAPI
|
||||
|
||||
from stacklight_tests import base_test
|
||||
from stacklight_tests.helpers import checkers
|
||||
from stacklight_tests.helpers import helpers
|
||||
from stacklight_tests.helpers import remote_ops
|
||||
|
||||
from stacklight_tests import base_test
|
||||
from stacklight_tests.zabbix import plugin_settings as zabbix_plugin_settings
|
||||
|
||||
|
||||
@ -84,9 +83,9 @@ class ZabbixApi(base_test.PluginApi):
|
||||
def get_plugin_settings(self):
|
||||
return zabbix_plugin_settings
|
||||
|
||||
def prepare_plugin(self, dependat_plugins=False):
|
||||
def prepare_plugin(self, dependant_plugins=False):
|
||||
self.helpers.prepare_plugin(self.settings.plugin_path)
|
||||
if dependat_plugins:
|
||||
if dependant_plugins:
|
||||
for plugin in self.settings.dependant_plugins:
|
||||
self.helpers.prepare_plugin(
|
||||
self.settings.dependant_plugins[plugin]["plugin_path"])
|
||||
|
@ -89,7 +89,7 @@ class TestZabbixPluginSystem(api.ZabbixApi):
|
||||
"""
|
||||
self.env.revert_snapshot("ready_with_5_slaves")
|
||||
|
||||
self.prepare_plugin(dependat_plugins=True)
|
||||
self.prepare_plugin(dependant_plugins=True)
|
||||
|
||||
self.helpers.create_cluster(name=self.__class__.__name__)
|
||||
|
||||
@ -106,12 +106,10 @@ class TestZabbixPluginSystem(api.ZabbixApi):
|
||||
self.activate_dependant_plugin(
|
||||
self.settings.dependant_plugins[
|
||||
"ZABBIX_MONITORING_EXTREME_NETWORKS"],
|
||||
options={'metadata/enabled': True,
|
||||
'hosts/value': 'MyXNHost:{}'.format(extreme_host_ip)})
|
||||
options={'hosts/value': 'MyXNHost:{}'.format(extreme_host_ip)})
|
||||
self.activate_dependant_plugin(
|
||||
self.settings.dependant_plugins["ZABBIX_MONITORING_EMC"],
|
||||
options={'metadata/enabled': True,
|
||||
'hosts/value': 'MyEMCHost:{}'.format(emc_host_ip)})
|
||||
options={'hosts/value': 'MyEMCHost:{}'.format(emc_host_ip)})
|
||||
|
||||
self.helpers.deploy_cluster(
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user