Skip amphora scenario test if provider is not set

This patch also removes py27 and py35 from list of envs in tox. We don't
have functional tests.

Change-Id: Id9255fe87d61bf6536c8d03f9dd7612abc451904
This commit is contained in:
Carlos Goncalves 2019-02-12 22:08:00 +01:00
parent ebbe4ef969
commit 436dd9fe23
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]