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
changes/42/617142/3
Yan Xing'an 4 years ago committed by Yan Xing an
parent 53c78de6ca
commit dabd18d326
  1. 2
      tacker/tests/etc/api-paste.ini.test
  2. 0
      tacker/tests/unit/agent/__init__.py
  3. 0
      tacker/tests/unit/api/test_api_common.py
  4. 0
      tacker/tests/unit/api/test_extensions.py
  5. 4
      tacker/tests/unit/api/test_v2_extension.py
  6. 0
      tacker/tests/unit/api/v1/test_attributes.py
  7. 0
      tacker/tests/unit/api/v2/__init__.py
  8. 0
      tacker/tests/unit/api/v2/test_api_v2.py
  9. 0
      tacker/tests/unit/api/v2/test_resource.py
  10. 0
      tacker/tests/unit/common/__init__.py
  11. 2
      tacker/tests/unit/common/test_config.py
  12. 0
      tacker/tests/unit/common/test_log.py
  13. 0
      tacker/tests/unit/common/test_utils.py
  14. 0
      tacker/tests/unit/conductor/__init__.py
  15. 0
      tacker/tests/unit/db/test_db_migration.py
  16. 0
      tacker/tests/unit/db/test_db_purge_delete.py
  17. 0
      tacker/tests/unit/extensions/test_common_services.py
  18. 2
      tacker/tests/unit/extensions/test_extension_extended_attribute.py
  19. 0
      tacker/tests/unit/hacking/__init__.py
  20. 0
      tacker/tests/unit/keymgr/__init__.py
  21. 0
      tacker/tests/unit/mistral/__init__.py
  22. 0
      tacker/tests/unit/nfvo/workflows/__init__.py
  23. 0
      tacker/tests/unit/nfvo/workflows/vim_monitor/__init__.py
  24. 0
      tacker/tests/unit/plugins/__init__.py
  25. 0
      tacker/tests/unit/services/__init__.py
  26. 0
      tacker/tests/unit/test_context.py
  27. 0
      tacker/tests/unit/tests/__init__.py
  28. 0
      tacker/tests/unit/tests/test_post_mortem_debug.py
  29. 0
      tacker/tests/unit/tosca/__init__.py
  30. 2
      tacker/tests/unit/tosca/test_tosca_templates_under_samples.py
  31. 0
      tacker/tests/unit/vnfm/mgmt_drivers/__init__.py
  32. 0
      tacker/tests/unit/vnfm/policy_actions/__init__.py

@ -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…
Cancel
Save