Refactoring UT directories
Adding some corresponding directories to UT, and moving some cases to right places. Partially Implements: blueprint test-addition-refactoring Change-Id: Ic47ea2640c89787ac291c31db51a8529f73a66a3
This commit is contained in:
parent
53c78de6ca
commit
dabd18d326
|
@ -5,4 +5,4 @@ pipeline = extensions extensions_test_app
|
|||
paste.filter_factory = tacker.common.extensions:plugin_aware_extension_middleware_factory
|
||||
|
||||
[app:extensions_test_app]
|
||||
paste.app_factory = tacker.tests.unit.test_extensions:app_factory
|
||||
paste.app_factory = tacker.tests.unit.api.test_extensions:app_factory
|
||||
|
|
|
@ -22,8 +22,8 @@ import webtest
|
|||
|
||||
from tacker.api import extensions
|
||||
from tacker.api.v1 import attributes
|
||||
from tacker.tests.unit import test_api_v2
|
||||
from tacker.tests.unit import test_extensions
|
||||
from tacker.tests.unit.api import test_extensions
|
||||
from tacker.tests.unit.api.v2 import test_api_v2
|
||||
from tacker.tests.unit import testlib_api
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ class ConfigurationTest(base.BaseTestCase):
|
|||
self.assertEqual('keystone', cfg.CONF.auth_strategy)
|
||||
self.assertTrue(cfg.CONF.allow_bulk)
|
||||
relative_dir = os.path.join(os.path.dirname(__file__),
|
||||
'..', '..', '..')
|
||||
'..', '..', '..', '..')
|
||||
absolute_dir = os.path.abspath(relative_dir)
|
||||
self.assertEqual(absolute_dir, cfg.CONF.state_path)
|
||||
self.assertEqual('tacker', cfg.CONF.control_exchange)
|
|
@ -25,8 +25,8 @@ from tacker.api.v1 import attributes
|
|||
from tacker.common import config
|
||||
from tacker import manager
|
||||
from tacker.tests import base
|
||||
from tacker.tests.unit.api.v2 import test_api_v2
|
||||
from tacker.tests.unit.extensions import extendedattribute as extattr
|
||||
from tacker.tests.unit import test_api_v2
|
||||
from tacker.tests.unit import testlib_api
|
||||
from tacker import wsgi
|
||||
|
|
@ -33,7 +33,7 @@ class TestSamples(testtools.TestCase):
|
|||
def _get_list_of_sample(self, tosca_files):
|
||||
if tosca_files:
|
||||
base_path = (os.path.dirname(os.path.abspath(__file__)) +
|
||||
'/../../../samples/tosca-templates/vnfd/')
|
||||
'/../../../../samples/tosca-templates/vnfd/')
|
||||
if isinstance(tosca_files, list):
|
||||
list_of_samples = []
|
||||
for tosca_file in tosca_files:
|
Loading…
Reference in New Issue