From 17a03d12548477f9879ee0f1e70f542ef0a8cd09 Mon Sep 17 00:00:00 2001 From: Eyal Date: Mon, 18 Dec 2017 14:46:58 +0200 Subject: [PATCH] call super for setUpClass Change-Id: I1636181f4f0fc0adaf482ad95de7ea2631769263 --- vitrage/tests/functional/evaluator/test_action_executor.py | 1 + .../tests/functional/evaluator/test_scenario_evaluator.py | 1 + vitrage/tests/unit/datasources/aodh/test_aodh_driver.py | 1 + .../tests/unit/datasources/aodh/test_aodh_transformer.py | 3 +++ .../unit/datasources/ceilometer/test_ceilometer_driver.py | 1 + .../datasources/ceilometer/test_ceilometer_transformer.py | 4 ++++ .../datasources/cinder/test_cinder_volume_transformer.py | 1 + .../tests/unit/datasources/collectd/test_collectd_driver.py | 1 + .../unit/datasources/collectd/test_collectd_transformer.py | 1 + .../datasources/consistency/test_consistency_transformer.py | 1 + .../unit/datasources/heat/test_heat_stack_transformer.py | 1 + vitrage/tests/unit/datasources/nagios/test_nagios_config.py | 1 + vitrage/tests/unit/datasources/nagios/test_nagios_driver.py | 1 + .../unit/datasources/nagios/test_nagios_transformer.py | 1 + .../unit/datasources/nova/test_nova_host_transformer.py | 1 + .../unit/datasources/nova/test_nova_instance_transformer.py | 1 + .../unit/datasources/nova/test_nova_zone_transformer.py | 1 + vitrage/tests/unit/datasources/static/test_static_driver.py | 1 + .../unit/datasources/static/test_static_transformer.py | 1 + .../static_physical/test_static_physical_driver.py | 1 + .../static_physical/test_static_physical_transformer.py | 1 + .../tests/unit/datasources/test_datasource_update_method.py | 1 + .../unit/datasources/zabbix/test_zabbix_configuration.py | 1 + vitrage/tests/unit/datasources/zabbix/test_zabbix_driver.py | 1 + .../unit/datasources/zabbix/test_zabbix_transformer.py | 1 + vitrage/tests/unit/entity_graph/test_transformer_manager.py | 1 + .../recipes/test_add_causal_relationship_recipe.py | 2 +- .../tests/unit/evaluator/recipes/test_execute_mistral.py | 2 +- vitrage/tests/unit/evaluator/recipes/test_mark_down.py | 2 +- vitrage/tests/unit/evaluator/recipes/test_raise_alarm.py | 2 +- .../tests/unit/evaluator/recipes/test_set_state_recipe.py | 1 + .../unit/evaluator/template_validation/content/base.py | 1 + .../content/test_template_content_validator.py | 1 + .../test_def_template_syntax_validator.py | 1 + .../template_validation/test_template_syntax_validator.py | 1 + vitrage/tests/unit/evaluator/test_scenario_repository.py | 6 +++--- vitrage/tests/unit/graph/test_graph_algo.py | 1 + .../jaccard_correlation/test_jaccard_correlation.py | 2 ++ .../tests/unit/notifier/snmp_notifier/test_snmp_notifier.py | 2 ++ .../snmp_notifier/test_snmp_sender_with_severity_map.py | 2 ++ .../snmp_notifier/test_snmp_sender_without_severity_map.py | 2 ++ 41 files changed, 52 insertions(+), 7 deletions(-) diff --git a/vitrage/tests/functional/evaluator/test_action_executor.py b/vitrage/tests/functional/evaluator/test_action_executor.py index 218c42d65..a42fadcab 100644 --- a/vitrage/tests/functional/evaluator/test_action_executor.py +++ b/vitrage/tests/functional/evaluator/test_action_executor.py @@ -53,6 +53,7 @@ class TestActionExecutor(TestFunctionalBase): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TestActionExecutor, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.PROCESSOR_OPTS, group='entity_graph') cls.conf.register_opts(cls.DATASOURCES_OPTS, group='datasources') diff --git a/vitrage/tests/functional/evaluator/test_scenario_evaluator.py b/vitrage/tests/functional/evaluator/test_scenario_evaluator.py index 986f2955e..44634b0cc 100644 --- a/vitrage/tests/functional/evaluator/test_scenario_evaluator.py +++ b/vitrage/tests/functional/evaluator/test_scenario_evaluator.py @@ -76,6 +76,7 @@ class TestScenarioEvaluator(TestFunctionalBase): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TestScenarioEvaluator, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.PROCESSOR_OPTS, group='entity_graph') cls.conf.register_opts(cls.EVALUATOR_OPTS, group='evaluator') diff --git a/vitrage/tests/unit/datasources/aodh/test_aodh_driver.py b/vitrage/tests/unit/datasources/aodh/test_aodh_driver.py index ad75a9ff7..c0e434887 100644 --- a/vitrage/tests/unit/datasources/aodh/test_aodh_driver.py +++ b/vitrage/tests/unit/datasources/aodh/test_aodh_driver.py @@ -35,6 +35,7 @@ class AodhDriverTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(AodhDriverTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=AODH_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/aodh/test_aodh_transformer.py b/vitrage/tests/unit/datasources/aodh/test_aodh_transformer.py index 16bac1d3c..91af5f401 100644 --- a/vitrage/tests/unit/datasources/aodh/test_aodh_transformer.py +++ b/vitrage/tests/unit/datasources/aodh/test_aodh_transformer.py @@ -39,6 +39,7 @@ class TestAodhAlarmTransformer(AodhTransformerBaseTest): @classmethod def setUpClass(cls): + super(TestAodhAlarmTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=AODH_DATASOURCE) @@ -116,8 +117,10 @@ class TestAodhAlarmPushTransformer(AodhTransformerBaseTest): default=UpdateMethod.PUSH), ] + # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TestAodhAlarmPushTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=AODH_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/ceilometer/test_ceilometer_driver.py b/vitrage/tests/unit/datasources/ceilometer/test_ceilometer_driver.py index 375924986..37289a447 100644 --- a/vitrage/tests/unit/datasources/ceilometer/test_ceilometer_driver.py +++ b/vitrage/tests/unit/datasources/ceilometer/test_ceilometer_driver.py @@ -37,6 +37,7 @@ class CeilometerDriverTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(CeilometerDriverTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=CEILOMETER_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/ceilometer/test_ceilometer_transformer.py b/vitrage/tests/unit/datasources/ceilometer/test_ceilometer_transformer.py index 602065733..186f9280a 100644 --- a/vitrage/tests/unit/datasources/ceilometer/test_ceilometer_transformer.py +++ b/vitrage/tests/unit/datasources/ceilometer/test_ceilometer_transformer.py @@ -39,8 +39,10 @@ class TestCeilometerAlarmTransformer(CeilometerTransformerBaseTest): default=UpdateMethod.PULL), ] + # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TestCeilometerAlarmTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=CEILOMETER_DATASOURCE) @@ -119,8 +121,10 @@ class TestCeilometerAlarmPushTransformer(CeilometerTransformerBaseTest): default=UpdateMethod.PUSH), ] + # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TestCeilometerAlarmPushTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=CEILOMETER_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/cinder/test_cinder_volume_transformer.py b/vitrage/tests/unit/datasources/cinder/test_cinder_volume_transformer.py index ba0fdbbe2..d7f044500 100644 --- a/vitrage/tests/unit/datasources/cinder/test_cinder_volume_transformer.py +++ b/vitrage/tests/unit/datasources/cinder/test_cinder_volume_transformer.py @@ -48,6 +48,7 @@ class TestCinderVolumeTransformer(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(TestCinderVolumeTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=CINDER_VOLUME_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/collectd/test_collectd_driver.py b/vitrage/tests/unit/datasources/collectd/test_collectd_driver.py index 27665f898..946d74bdf 100644 --- a/vitrage/tests/unit/datasources/collectd/test_collectd_driver.py +++ b/vitrage/tests/unit/datasources/collectd/test_collectd_driver.py @@ -36,6 +36,7 @@ class TestCollectdDriver(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TestCollectdDriver, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=COLLECTD_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/collectd/test_collectd_transformer.py b/vitrage/tests/unit/datasources/collectd/test_collectd_transformer.py index 50b1296ba..3d7a188e5 100644 --- a/vitrage/tests/unit/datasources/collectd/test_collectd_transformer.py +++ b/vitrage/tests/unit/datasources/collectd/test_collectd_transformer.py @@ -44,6 +44,7 @@ class TestCollectdTransformer(BaseAlarmTransformerTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(TestCollectdTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=COLLECTD_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/consistency/test_consistency_transformer.py b/vitrage/tests/unit/datasources/consistency/test_consistency_transformer.py index 3b2278e95..5a35233eb 100644 --- a/vitrage/tests/unit/datasources/consistency/test_consistency_transformer.py +++ b/vitrage/tests/unit/datasources/consistency/test_consistency_transformer.py @@ -38,6 +38,7 @@ class TestConsistencyTransformer(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(TestConsistencyTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=CONSISTENCY_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/heat/test_heat_stack_transformer.py b/vitrage/tests/unit/datasources/heat/test_heat_stack_transformer.py index 95f200db6..6b3195bc2 100644 --- a/vitrage/tests/unit/datasources/heat/test_heat_stack_transformer.py +++ b/vitrage/tests/unit/datasources/heat/test_heat_stack_transformer.py @@ -48,6 +48,7 @@ class TestHeatStackTransformer(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(TestHeatStackTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=HEAT_STACK_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/nagios/test_nagios_config.py b/vitrage/tests/unit/datasources/nagios/test_nagios_config.py index 57d544034..dd47dab65 100644 --- a/vitrage/tests/unit/datasources/nagios/test_nagios_config.py +++ b/vitrage/tests/unit/datasources/nagios/test_nagios_config.py @@ -81,6 +81,7 @@ class TestNagiosConfig(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TestNagiosConfig, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=NAGIOS_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/nagios/test_nagios_driver.py b/vitrage/tests/unit/datasources/nagios/test_nagios_driver.py index f1d456464..5e1f29718 100644 --- a/vitrage/tests/unit/datasources/nagios/test_nagios_driver.py +++ b/vitrage/tests/unit/datasources/nagios/test_nagios_driver.py @@ -41,6 +41,7 @@ class NagiosDriverTest(NagiosBaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(NagiosDriverTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=NAGIOS_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/nagios/test_nagios_transformer.py b/vitrage/tests/unit/datasources/nagios/test_nagios_transformer.py index 9de7070a6..10798c8fd 100644 --- a/vitrage/tests/unit/datasources/nagios/test_nagios_transformer.py +++ b/vitrage/tests/unit/datasources/nagios/test_nagios_transformer.py @@ -50,6 +50,7 @@ class NagiosTransformerTest(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(NagiosTransformerTest, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=NAGIOS_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/nova/test_nova_host_transformer.py b/vitrage/tests/unit/datasources/nova/test_nova_host_transformer.py index 61f73e0b0..ac4ca2b9b 100644 --- a/vitrage/tests/unit/datasources/nova/test_nova_host_transformer.py +++ b/vitrage/tests/unit/datasources/nova/test_nova_host_transformer.py @@ -48,6 +48,7 @@ class NovaHostTransformerTest(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(NovaHostTransformerTest, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=NOVA_HOST_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/nova/test_nova_instance_transformer.py b/vitrage/tests/unit/datasources/nova/test_nova_instance_transformer.py index 2010ba13f..c30d93986 100644 --- a/vitrage/tests/unit/datasources/nova/test_nova_instance_transformer.py +++ b/vitrage/tests/unit/datasources/nova/test_nova_instance_transformer.py @@ -48,6 +48,7 @@ class NovaInstanceTransformerTest(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(NovaInstanceTransformerTest, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=NOVA_INSTANCE_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/nova/test_nova_zone_transformer.py b/vitrage/tests/unit/datasources/nova/test_nova_zone_transformer.py index af2ce47f4..c1b189e9d 100644 --- a/vitrage/tests/unit/datasources/nova/test_nova_zone_transformer.py +++ b/vitrage/tests/unit/datasources/nova/test_nova_zone_transformer.py @@ -47,6 +47,7 @@ class NovaZoneTransformerTest(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(NovaZoneTransformerTest, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=NOVA_ZONE_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/static/test_static_driver.py b/vitrage/tests/unit/datasources/static/test_static_driver.py index 08c869eca..79c0921b5 100644 --- a/vitrage/tests/unit/datasources/static/test_static_driver.py +++ b/vitrage/tests/unit/datasources/static/test_static_driver.py @@ -62,6 +62,7 @@ class TestStaticDriver(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(TestStaticDriver, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=STATIC_DATASOURCE) cls.static_driver = driver.StaticDriver(cls.conf) diff --git a/vitrage/tests/unit/datasources/static/test_static_transformer.py b/vitrage/tests/unit/datasources/static/test_static_transformer.py index d1ee28e4a..73610a978 100644 --- a/vitrage/tests/unit/datasources/static/test_static_transformer.py +++ b/vitrage/tests/unit/datasources/static/test_static_transformer.py @@ -41,6 +41,7 @@ class TestStaticTransformer(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(TestStaticTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=STATIC_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/static_physical/test_static_physical_driver.py b/vitrage/tests/unit/datasources/static_physical/test_static_physical_driver.py index 4bba9fd70..1ec115eb9 100644 --- a/vitrage/tests/unit/datasources/static_physical/test_static_physical_driver.py +++ b/vitrage/tests/unit/datasources/static_physical/test_static_physical_driver.py @@ -69,6 +69,7 @@ class TestStaticPhysicalDriver(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(TestStaticPhysicalDriver, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=STATIC_PHYSICAL_DATASOURCE) cls.static_physical_driver = driver.StaticPhysicalDriver(cls.conf) diff --git a/vitrage/tests/unit/datasources/static_physical/test_static_physical_transformer.py b/vitrage/tests/unit/datasources/static_physical/test_static_physical_transformer.py index d42eff715..1ebcb8725 100644 --- a/vitrage/tests/unit/datasources/static_physical/test_static_physical_transformer.py +++ b/vitrage/tests/unit/datasources/static_physical/test_static_physical_transformer.py @@ -47,6 +47,7 @@ class TestStaticPhysicalTransformer(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(TestStaticPhysicalTransformer, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=STATIC_PHYSICAL_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/test_datasource_update_method.py b/vitrage/tests/unit/datasources/test_datasource_update_method.py index 704f9b50b..5f6d63523 100644 --- a/vitrage/tests/unit/datasources/test_datasource_update_method.py +++ b/vitrage/tests/unit/datasources/test_datasource_update_method.py @@ -147,6 +147,7 @@ class DatasourceUpdateMethod(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(DatasourceUpdateMethod, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.DATASOURCES_OPTS, group='datasources') cls.conf.register_opts(cls.NOVA_HOST_OPTS, group=NOVA_HOST_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/zabbix/test_zabbix_configuration.py b/vitrage/tests/unit/datasources/zabbix/test_zabbix_configuration.py index a01e30321..4e97bfedf 100644 --- a/vitrage/tests/unit/datasources/zabbix/test_zabbix_configuration.py +++ b/vitrage/tests/unit/datasources/zabbix/test_zabbix_configuration.py @@ -70,6 +70,7 @@ class TestZabbixConfig(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TestZabbixConfig, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=ZABBIX_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/zabbix/test_zabbix_driver.py b/vitrage/tests/unit/datasources/zabbix/test_zabbix_driver.py index 08a2ffb89..9146b48a2 100644 --- a/vitrage/tests/unit/datasources/zabbix/test_zabbix_driver.py +++ b/vitrage/tests/unit/datasources/zabbix/test_zabbix_driver.py @@ -40,6 +40,7 @@ class ZabbixDriverTest(ZabbixBaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(ZabbixDriverTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=ZABBIX_DATASOURCE) diff --git a/vitrage/tests/unit/datasources/zabbix/test_zabbix_transformer.py b/vitrage/tests/unit/datasources/zabbix/test_zabbix_transformer.py index 5b7f2a6b0..eae92ca92 100644 --- a/vitrage/tests/unit/datasources/zabbix/test_zabbix_transformer.py +++ b/vitrage/tests/unit/datasources/zabbix/test_zabbix_transformer.py @@ -52,6 +52,7 @@ class ZabbixTransformerTest(base.BaseTest): # noinspection PyAttributeOutsideInit,PyPep8Naming @classmethod def setUpClass(cls): + super(ZabbixTransformerTest, cls).setUpClass() cls.transformers = {} cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group=ZABBIX_DATASOURCE) diff --git a/vitrage/tests/unit/entity_graph/test_transformer_manager.py b/vitrage/tests/unit/entity_graph/test_transformer_manager.py index e6e93163a..c52617390 100644 --- a/vitrage/tests/unit/entity_graph/test_transformer_manager.py +++ b/vitrage/tests/unit/entity_graph/test_transformer_manager.py @@ -45,6 +45,7 @@ class TransformerManagerTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TransformerManagerTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group='datasources') diff --git a/vitrage/tests/unit/evaluator/recipes/test_add_causal_relationship_recipe.py b/vitrage/tests/unit/evaluator/recipes/test_add_causal_relationship_recipe.py index 03ca552cd..6c0e5b621 100644 --- a/vitrage/tests/unit/evaluator/recipes/test_add_causal_relationship_recipe.py +++ b/vitrage/tests/unit/evaluator/recipes/test_add_causal_relationship_recipe.py @@ -30,7 +30,7 @@ class AddCausalRelationshipTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): - + super(AddCausalRelationshipTest, cls).setUpClass() cls.target_vertex = Vertex('RESOURCE:nova.host:test_target') cls.source_vertex = Vertex('RESOURCE:nova.host:test_source') diff --git a/vitrage/tests/unit/evaluator/recipes/test_execute_mistral.py b/vitrage/tests/unit/evaluator/recipes/test_execute_mistral.py index 9e8d1dce8..48d328c50 100644 --- a/vitrage/tests/unit/evaluator/recipes/test_execute_mistral.py +++ b/vitrage/tests/unit/evaluator/recipes/test_execute_mistral.py @@ -29,7 +29,7 @@ class RaiseAlarmRecipeTest(BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): - + super(RaiseAlarmRecipeTest, cls).setUpClass() cls.props = {EXECUTION_ENGINE: MISTRAL, WORKFLOW: 'wf_4', 'host': 'host5', diff --git a/vitrage/tests/unit/evaluator/recipes/test_mark_down.py b/vitrage/tests/unit/evaluator/recipes/test_mark_down.py index 1cac14aa9..ade57f490 100644 --- a/vitrage/tests/unit/evaluator/recipes/test_mark_down.py +++ b/vitrage/tests/unit/evaluator/recipes/test_mark_down.py @@ -27,7 +27,7 @@ class MarkDownRecipeTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): - + super(MarkDownRecipeTest, cls).setUpClass() cls.target_vertex = Vertex('RESOURCE:nova.host:test1') targets = {TFields.TARGET: cls.target_vertex} diff --git a/vitrage/tests/unit/evaluator/recipes/test_raise_alarm.py b/vitrage/tests/unit/evaluator/recipes/test_raise_alarm.py index b8e0dc1fb..1e7d44484 100644 --- a/vitrage/tests/unit/evaluator/recipes/test_raise_alarm.py +++ b/vitrage/tests/unit/evaluator/recipes/test_raise_alarm.py @@ -30,7 +30,7 @@ class RaiseAlarmRecipeTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): - + super(RaiseAlarmRecipeTest, cls).setUpClass() cls.target_props = {VProps.VITRAGE_TYPE: NOVA_HOST_DATASOURCE} cls.target_vertex = Vertex('RESOURCE:nova.host:test1', cls.target_props) diff --git a/vitrage/tests/unit/evaluator/recipes/test_set_state_recipe.py b/vitrage/tests/unit/evaluator/recipes/test_set_state_recipe.py index 9024acee3..b17c10f94 100644 --- a/vitrage/tests/unit/evaluator/recipes/test_set_state_recipe.py +++ b/vitrage/tests/unit/evaluator/recipes/test_set_state_recipe.py @@ -31,6 +31,7 @@ class SetStateRecipeTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(SetStateRecipeTest, cls).setUpClass() cls.target_vertex = Vertex('RESOURCE:nova.host:test1') diff --git a/vitrage/tests/unit/evaluator/template_validation/content/base.py b/vitrage/tests/unit/evaluator/template_validation/content/base.py index ebaa15c4e..c8e46a5e7 100644 --- a/vitrage/tests/unit/evaluator/template_validation/content/base.py +++ b/vitrage/tests/unit/evaluator/template_validation/content/base.py @@ -61,6 +61,7 @@ class ActionValidatorTest(ValidatorTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(ActionValidatorTest, cls).setUpClass() cls._hide_useless_logging_messages() diff --git a/vitrage/tests/unit/evaluator/template_validation/content/test_template_content_validator.py b/vitrage/tests/unit/evaluator/template_validation/content/test_template_content_validator.py index f682a92ed..701fa4bf3 100644 --- a/vitrage/tests/unit/evaluator/template_validation/content/test_template_content_validator.py +++ b/vitrage/tests/unit/evaluator/template_validation/content/test_template_content_validator.py @@ -33,6 +33,7 @@ class TemplateContentValidatorTest(ValidatorTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TemplateContentValidatorTest, cls).setUpClass() template_dir_path = '%s/templates/general' % utils.get_resources_dir() cls.def_templates_tests_path = '%s/templates/def_template_tests/' % \ diff --git a/vitrage/tests/unit/evaluator/template_validation/test_def_template_syntax_validator.py b/vitrage/tests/unit/evaluator/template_validation/test_def_template_syntax_validator.py index 6d50f5064..2e629eebe 100644 --- a/vitrage/tests/unit/evaluator/template_validation/test_def_template_syntax_validator.py +++ b/vitrage/tests/unit/evaluator/template_validation/test_def_template_syntax_validator.py @@ -24,6 +24,7 @@ class DefTemplateSyntaxValidatorTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(DefTemplateSyntaxValidatorTest, cls).setUpClass() cls.def_template_dir_path = utils.get_resources_dir() + \ '/templates/def_template_tests' diff --git a/vitrage/tests/unit/evaluator/template_validation/test_template_syntax_validator.py b/vitrage/tests/unit/evaluator/template_validation/test_template_syntax_validator.py index ba6fed80e..cdf0e6024 100644 --- a/vitrage/tests/unit/evaluator/template_validation/test_template_syntax_validator.py +++ b/vitrage/tests/unit/evaluator/template_validation/test_template_syntax_validator.py @@ -32,6 +32,7 @@ class TemplateSyntaxValidatorTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(TemplateSyntaxValidatorTest, cls).setUpClass() cls.def_template_dir_path = utils.get_resources_dir() + \ '/templates/def_template_tests' diff --git a/vitrage/tests/unit/evaluator/test_scenario_repository.py b/vitrage/tests/unit/evaluator/test_scenario_repository.py index 92f264bba..55324ae75 100644 --- a/vitrage/tests/unit/evaluator/test_scenario_repository.py +++ b/vitrage/tests/unit/evaluator/test_scenario_repository.py @@ -41,7 +41,7 @@ class ScenarioRepositoryTest(base.BaseTest): # noinspection PyPep8Naming @classmethod def setUpClass(cls): - + super(ScenarioRepositoryTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group='evaluator') @@ -111,7 +111,7 @@ class RegExTemplateTest(base.BaseTest): @classmethod def setUpClass(cls): - + super(RegExTemplateTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group='evaluator') cls.scenario_repository = ScenarioRepository(cls.conf) @@ -185,7 +185,7 @@ class EquivalentScenarioTest(base.BaseTest): @classmethod def setUpClass(cls): - + super(EquivalentScenarioTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group='evaluator') diff --git a/vitrage/tests/unit/graph/test_graph_algo.py b/vitrage/tests/unit/graph/test_graph_algo.py index 76b70384a..a801f21be 100644 --- a/vitrage/tests/unit/graph/test_graph_algo.py +++ b/vitrage/tests/unit/graph/test_graph_algo.py @@ -39,6 +39,7 @@ class GraphAlgorithmTest(GraphTestBase): # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(GraphAlgorithmTest, cls).setUpClass() cls.vm_id = 10000000 cls.vm_alarm_id = 30000000 cls.vms = [] diff --git a/vitrage/tests/unit/machine_learning/jaccard_correlation/test_jaccard_correlation.py b/vitrage/tests/unit/machine_learning/jaccard_correlation/test_jaccard_correlation.py index e61a45c30..1722bc601 100644 --- a/vitrage/tests/unit/machine_learning/jaccard_correlation/test_jaccard_correlation.py +++ b/vitrage/tests/unit/machine_learning/jaccard_correlation/test_jaccard_correlation.py @@ -158,8 +158,10 @@ class JaccardCorrelationTest(base.BaseTest): help='medium correlation lower limit'), ] + # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(JaccardCorrelationTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.OPTS, group='jaccard_correlation') diff --git a/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_notifier.py b/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_notifier.py index f4ec8a5ab..dcc184804 100644 --- a/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_notifier.py +++ b/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_notifier.py @@ -24,8 +24,10 @@ from vitrage.tests.unit.notifier.snmp_notifier import common class SnmpNotifierTest(base.BaseTest): + # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(SnmpNotifierTest, cls).setUpClass() cls.resource_props = {VProps.VITRAGE_IS_DELETED: common.false_, VProps.VITRAGE_IS_PLACEHOLDER: common.false_} cls.props = {VProps.VITRAGE_IS_DELETED: common.false_, diff --git a/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_with_severity_map.py b/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_with_severity_map.py index cca25a824..024220afe 100644 --- a/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_with_severity_map.py +++ b/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_with_severity_map.py @@ -45,8 +45,10 @@ class SnmpNotifierTest(base.BaseTest): 'oid_tree_with_severity_mapping.yaml'), ] + # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(SnmpNotifierTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.simple_opts, group='snmp') diff --git a/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_without_severity_map.py b/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_without_severity_map.py index f1bcdb153..5f65dac85 100644 --- a/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_without_severity_map.py +++ b/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_without_severity_map.py @@ -44,8 +44,10 @@ class SnmpNotifierTest(base.BaseTest): 'oid_tree_without_severity_mapping.yaml'), ] + # noinspection PyPep8Naming @classmethod def setUpClass(cls): + super(SnmpNotifierTest, cls).setUpClass() cls.conf = cfg.ConfigOpts() cls.conf.register_opts(cls.simple_opts, group='snmp')