Merge "Skip amphora scenario test if provider is not set"

This commit is contained in:
Zuul 2019-03-14 15:54:20 +00:00 committed by Gerrit Code Review
commit c9414e8419
2 changed files with 10 additions and 1 deletions

View File

@ -30,6 +30,15 @@ CONF = config.CONF
class AmphoraScenarioTest(test_base.LoadBalancerBaseTest):
"""Test the amphora object API."""
@classmethod
def skip_checks(cls):
super(AmphoraScenarioTest, cls).skip_checks()
if CONF.load_balancer.provider not in ['amphora', 'octavia']:
raise cls.skipException("Amphora tests require provider 'amphora' "
"or 'octavia' (alias to 'amphora', "
" deprecated) set")
@classmethod
def resource_setup(cls):
"""Setup resources needed by the tests."""

View File

@ -1,6 +1,6 @@
[tox]
minversion = 2.0
envlist = py35,py27,pep8
envlist = pep8
skipsdist = True
[testenv]