[openstack-qa] Which base class for tests
Frittoli, Andrea (Cloud Services)
frittoli at hp.com
Tue Feb 19 15:36:51 UTC 2013
Hi All,
I'm trying to understand which base class to use when developing new tests
in tempest.
test.py and smoke.py provide base classes, with a functions for resource
management resources.
base.py in the compute module - which is used by most compute tests - does
not care about the above, and defines its own class, BaseCompTest
class BaseCompTest(testtools.testcase.WithAttributes,
testtools.TestCase,
testresources.ResourcedTestCase):
BaseCompTest defines its own "resource management" for servers using a list
of objects which is cleared at teardown time.
It provides implementation for tenant isolation as well as helper methods
for resource creation such as create_server
There seem to be a disjunction between the effort put in the implementation
of Test, DefaultTestClient and DefaultClientSmokeTest on one side, and
BaseCompTest on the other side.
Is there a definition of which base class we shall invest on for the
development of new test cases, so to avoid disjoints efforts?
BaseCompTest could inherit from DefaultTestClient and use the resource
management defined there rather than its own.
Thanks
andrea
--
Andrea Frittoli
IaaS Systems Engineering Team
HP Cloud Services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-qa/attachments/20130219/31bb778d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6202 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-qa/attachments/20130219/31bb778d/attachment.bin>
More information about the openstack-qa
mailing list