Move tests under the glance namespace.

This commit is contained in:
Soren Hansen 2011-08-03 00:10:52 +02:00
parent 99b8a56259
commit 327f7525c0
31 changed files with 21 additions and 24 deletions

View File

@ -1,9 +1,6 @@
include run_tests.sh ChangeLog include run_tests.sh ChangeLog
include README builddeb.sh include README builddeb.sh
include MANIFEST.in pylintrc include MANIFEST.in pylintrc
include tests/__init__.py
include tests/stubs.py
include tests/utils.py
include run_tests.py include run_tests.py
include glance/registry/db/migrate_repo/migrate.cfg include glance/registry/db/migrate_repo/migrate.cfg
include glance/registry/db/migrate_repo/versions/*.sql include glance/registry/db/migrate_repo/versions/*.sql

View File

@ -35,7 +35,7 @@ import time
import unittest import unittest
import urlparse import urlparse
from tests.utils import execute, get_unused_port from glance.tests.utils import execute, get_unused_port
from sqlalchemy import create_engine from sqlalchemy import create_engine

View File

@ -21,8 +21,8 @@ import os
import tempfile import tempfile
import unittest import unittest
from tests import functional from glance.tests import functional
from tests.utils import execute from glance.tests.utils import execute
class TestBinGlance(functional.FunctionalTest): class TestBinGlance(functional.FunctionalTest):

View File

@ -22,8 +22,8 @@ import os
import tempfile import tempfile
import unittest import unittest
from tests import functional from glance.tests import functional
from tests.utils import execute from glance.tests.utils import execute
FIVE_KB = 5 * 1024 FIVE_KB = 5 * 1024
FIVE_GB = 5 * 1024 * 1024 * 1024 FIVE_GB = 5 * 1024 * 1024 * 1024

View File

@ -23,8 +23,8 @@ import json
import os import os
import tempfile import tempfile
from tests import functional from glance.tests import functional
from tests.utils import execute from glance.tests.utils import execute
FIVE_KB = 5 * 1024 FIVE_KB = 5 * 1024
FIVE_GB = 5 * 1024 * 1024 * 1024 FIVE_GB = 5 * 1024 * 1024 * 1024

View File

@ -20,8 +20,8 @@
import os import os
import unittest import unittest
from tests import functional from glance.tests import functional
from tests.utils import execute from glance.tests.utils import execute
class TestLogging(functional.FunctionalTest): class TestLogging(functional.FunctionalTest):

View File

@ -17,8 +17,8 @@
import unittest import unittest
from tests import functional from glance.tests import functional
from tests.utils import execute from glance.tests.utils import execute
class TestMiscellaneous(functional.FunctionalTest): class TestMiscellaneous(functional.FunctionalTest):

View File

@ -36,8 +36,8 @@ import os
import tempfile import tempfile
import unittest import unittest
from tests import functional from glance.tests import functional
from tests.utils import execute from glance.tests.utils import execute
FIVE_KB = 5 * 1024 FIVE_KB = 5 * 1024
FIVE_GB = 5 * 1024 * 1024 * 1024 FIVE_GB = 5 * 1024 * 1024 * 1024

View File

@ -21,8 +21,8 @@ import unittest
from sqlalchemy import create_engine from sqlalchemy import create_engine
from tests import functional from glance.tests import functional
from tests.utils import execute from glance.tests.utils import execute
from glance import client from glance import client

View File

@ -29,7 +29,7 @@ from glance.api import v1 as server
from glance.common import context from glance.common import context
from glance.registry import server as rserver from glance.registry import server as rserver
import glance.registry.db.api import glance.registry.db.api
from tests import stubs from glance.tests import stubs
VERBOSE = False VERBOSE = False
DEBUG = False DEBUG = False

View File

@ -28,7 +28,7 @@ from glance import client
from glance.common import exception from glance.common import exception
import glance.registry.db.api import glance.registry.db.api
from glance.registry import client as rclient from glance.registry import client as rclient
from tests import stubs from glance.tests import stubs
class TestBadClients(unittest.TestCase): class TestBadClients(unittest.TestCase):

View File

@ -26,7 +26,7 @@ import stubout
from glance.common import exception from glance.common import exception
from glance.store.location import get_location_from_uri from glance.store.location import get_location_from_uri
from glance.store.filesystem import Store, ChunkedFile from glance.store.filesystem import Store, ChunkedFile
from tests import stubs from glance.tests import stubs
FILESYSTEM_OPTIONS = { FILESYSTEM_OPTIONS = {
'verbose': True, 'verbose': True,

View File

@ -36,7 +36,7 @@ from sqlalchemy.pool import NullPool
from glance.common import exception from glance.common import exception
import glance.registry.db.migration as migration_api import glance.registry.db.migration as migration_api
from tests.utils import execute from glance.tests.utils import execute
class TestMigrations(unittest.TestCase): class TestMigrations(unittest.TestCase):

View File

@ -58,7 +58,7 @@ function run_pep8 {
# #
PEP8_EXCLUDE=vcsversion.py PEP8_EXCLUDE=vcsversion.py
PEP8_OPTIONS="--exclude=$PEP8_EXCLUDE --repeat --show-pep8 --show-source" PEP8_OPTIONS="--exclude=$PEP8_EXCLUDE --repeat --show-pep8 --show-source"
PEP8_INCLUDE="bin/* glance tests tools setup.py run_tests.py" PEP8_INCLUDE="bin/* glance tools setup.py run_tests.py"
pep8 $PEP8_OPTIONS $PEP8_INCLUDE pep8 $PEP8_OPTIONS $PEP8_INCLUDE
} }

View File

@ -74,7 +74,7 @@ setup(
author='OpenStack', author='OpenStack',
author_email='openstack@lists.launchpad.net', author_email='openstack@lists.launchpad.net',
url='http://glance.openstack.org/', url='http://glance.openstack.org/',
packages=find_packages(exclude=['tests', 'bin']), packages=find_packages(exclude=['bin']),
test_suite='nose.collector', test_suite='nose.collector',
cmdclass=cmdclass, cmdclass=cmdclass,
include_package_data=True, include_package_data=True,