]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix base test class for functional api testing
authorMaru Newby <marun@redhat.com>
Sat, 8 Nov 2014 17:08:33 +0000 (17:08 +0000)
committerMaru Newby <marun@redhat.com>
Tue, 2 Dec 2014 15:45:41 +0000 (15:45 +0000)
commit744d517fce352eb6e5e43754833f1a4f41e11617
tree970b28f2185b1637305e5eda42fcca31b6305c05
parentb1b89a7394e23407010468c802337152d25d0463
Fix base test class for functional api testing

To support in-tree functional api testing, the test class common
across all types of testing can't import modules that define
configuration that Tempest also defines because duplicate
configuration definitions result in runtime errors.  A previous change
(I44251db399cd73390a9d1931a7f253662002ba10) moved conflicting imports
to a separate module, but subsequent additions have added new conflicting
imports.

This change creates a new test class that is safe to use for all types
of testing (neutron.tests.sub_base.SubBaseTestCase), ensures that the
existing existing base test class (neutron.tests.base.BaseTestCase)
extends it, and documents their respective responsibilities.  This
will hopefully make it less likely that the functional api job will be
broken by changes to the base test class.

Implements: bp retargetable-functional-testing

Change-Id: Ifa270536481fcb19c476c9c62d89e6c5cae36ca1
neutron/tests/base.py
neutron/tests/sub_base.py [new file with mode: 0644]