diff options
author | Sean Dague <sean@dague.net> | 2015-04-27 09:08:36 -0400 |
---|---|---|
committer | Sean Dague <sean@dague.net> | 2015-04-27 09:13:25 -0400 |
commit | 5e1bcd90810cd31cb9dff095d2be244e09f2d0ed (patch) | |
tree | 1798513cef6aaa27a3624e079397f6f9893c75a2 | |
parent | 639f2fab968486784c275c08682aa37414b96442 (diff) | |
download | tempest-5e1bcd90810cd31cb9dff095d2be244e09f2d0ed.tar.gz |
remove gate tag (part 3)
This removes the infrastructure around automatically adding gate tags
to smoke tagged tests, and the tests associated with it.
Change-Id: I54903580ccb94d52ce7f8915e4820326f6395405
-rw-r--r-- | tempest/test.py | 6 | ||||
-rw-r--r-- | tempest/tests/test_decorators.py | 8 |
2 files changed, 3 insertions, 11 deletions
diff --git a/tempest/test.py b/tempest/test.py index d57b1d832..1ee067366 100644 --- a/tempest/test.py +++ b/tempest/test.py @@ -52,13 +52,9 @@ def attr(*args, **kwargs): def decorator(f): if 'type' in kwargs and isinstance(kwargs['type'], str): f = testtools.testcase.attr(kwargs['type'])(f) - if kwargs['type'] == 'smoke': - f = testtools.testcase.attr('gate')(f) elif 'type' in kwargs and isinstance(kwargs['type'], list): for attr in kwargs['type']: f = testtools.testcase.attr(attr)(f) - if attr == 'smoke': - f = testtools.testcase.attr('gate')(f) return f return decorator @@ -665,7 +661,7 @@ def SimpleNegativeAutoTest(klass): """ This decorator registers a test function on basis of the class name. """ - @attr(type=['negative', 'gate']) + @attr(type=['negative']) def generic_test(self): if hasattr(self, '_schema'): self.execute(self._schema) diff --git a/tempest/tests/test_decorators.py b/tempest/tests/test_decorators.py index 0cd54b99b..e5f51f24b 100644 --- a/tempest/tests/test_decorators.py +++ b/tempest/tests/test_decorators.py @@ -49,13 +49,9 @@ class TestAttrDecorator(BaseDecoratorsTest): def test_attr_without_type(self): self._test_attr_helper(expected_attrs='baz', bar='baz') - def test_attr_decorator_with_smoke_type(self): - # smoke passed as type, so smoke and gate must have been set. - self._test_attr_helper(expected_attrs=['smoke', 'gate'], type='smoke') - def test_attr_decorator_with_list_type(self): - # if type is 'smoke' we'll get the original list of types plus 'gate' - self._test_attr_helper(expected_attrs=['smoke', 'foo', 'gate'], + # if type is 'smoke' we'll get the original list of types + self._test_attr_helper(expected_attrs=['smoke', 'foo'], type=['smoke', 'foo']) def test_attr_decorator_with_unknown_type(self): |