summaryrefslogtreecommitdiff
path: root/oswin_tempest_plugin/tests/scenario/test_cluster.py
diff options
context:
space:
mode:
authorClaudiu Belu <cbelu@cloudbasesolutions.com>2017-09-07 05:11:51 -0700
committerClaudiu Belu <cbelu@cloudbasesolutions.com>2017-09-07 05:18:02 -0700
commitab50a17affc69c69beeff7695652ec784dbaa758 (patch)
treea5561dd3951b0aafb0ae1c8a5e88c98d42620bc9 /oswin_tempest_plugin/tests/scenario/test_cluster.py
parent975fe2382dd42cbdcaa9620c3f29693040c6681f (diff)
Fixes tests method resolution
Python allows multiple inheritance, which we use in order to mix and match test scenarios and actions. Python performs method resolution as follows: - checks if the method is defined in the current class. - if not, check parents, left to right. Since all tests have test_base as its left-most parent, all methods are resolved in test_base, which is not the desired behaviour. This affects optional_feature mixin in particular. Change-Id: I19d3bdef85a12ef45b600aa4fc68afd390b96c9f
Notes
Notes (review): Code-Review+2: Claudiu Belu <cbelu@cloudbasesolutions.com> Workflow+1: Claudiu Belu <cbelu@cloudbasesolutions.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 07 Sep 2017 16:44:27 +0000 Reviewed-on: https://review.openstack.org/501709 Project: openstack/oswin-tempest-plugin Branch: refs/heads/master
Diffstat (limited to 'oswin_tempest_plugin/tests/scenario/test_cluster.py')
-rw-r--r--oswin_tempest_plugin/tests/scenario/test_cluster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/oswin_tempest_plugin/tests/scenario/test_cluster.py b/oswin_tempest_plugin/tests/scenario/test_cluster.py
index 92ae778..c6e10be 100644
--- a/oswin_tempest_plugin/tests/scenario/test_cluster.py
+++ b/oswin_tempest_plugin/tests/scenario/test_cluster.py
@@ -29,10 +29,10 @@ CONF = config.CONF
29LOG = logging.getLogger(__name__) 29LOG = logging.getLogger(__name__)
30 30
31 31
32class HyperVClusterTest(test_base.TestBase, 32class HyperVClusterTest(migrate._MigrateMixin,
33 migrate._MigrateMixin,
34 migrate._LiveMigrateMixin, 33 migrate._LiveMigrateMixin,
35 resize._ResizeMixin): 34 resize._ResizeMixin,
35 test_base.TestBase):
36 36
37 """The test suite for the Hyper-V Cluster. 37 """The test suite for the Hyper-V Cluster.
38 38