diff options
-rw-r--r-- | .testr.conf | 2 | ||||
-rw-r--r-- | glanceclient/tests/__init__.py (renamed from tests/__init__.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/__init__.py (renamed from tests/v1/__init__.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/test_base.py (renamed from tests/test_base.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/test_client.py (renamed from tests/test_client.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/test_exc.py (renamed from tests/test_exc.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/test_http.py (renamed from tests/test_http.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/test_progressbar.py (renamed from tests/test_progressbar.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/test_shell.py (renamed from tests/test_shell.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/test_ssl.py (renamed from tests/test_ssl.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/test_utils.py (renamed from tests/test_utils.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/v1/__init__.py (renamed from tests/v2/__init__.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/v1/test_image_members.py (renamed from tests/v1/test_image_members.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v1/test_images.py (renamed from tests/v1/test_images.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v1/test_shell.py (renamed from tests/v1/test_shell.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/__init__.py | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_images.py (renamed from tests/v2/test_images.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_members.py (renamed from tests/v2/test_members.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_metadefs_namespaces.py (renamed from tests/v2/test_metadefs_namespaces.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_metadefs_objects.py (renamed from tests/v2/test_metadefs_objects.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_metadefs_properties.py (renamed from tests/v2/test_metadefs_properties.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_metadefs_resource_types.py (renamed from tests/v2/test_metadefs_resource_types.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_schemas.py (renamed from tests/v2/test_schemas.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_shell_v2.py (renamed from tests/v2/test_shell_v2.py) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_tags.py (renamed from tests/v2/test_tags.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_tasks.py (renamed from tests/v2/test_tasks.py) | 2 | ||||
-rw-r--r-- | glanceclient/tests/unit/var/ca.crt (renamed from tests/var/ca.crt) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/var/certificate.crt (renamed from tests/var/certificate.crt) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/var/expired-cert.crt (renamed from tests/var/expired-cert.crt) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/var/privatekey.key (renamed from tests/var/privatekey.key) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/var/wildcard-certificate.crt (renamed from tests/var/wildcard-certificate.crt) | 0 | ||||
-rw-r--r-- | glanceclient/tests/unit/var/wildcard-san-certificate.crt (renamed from tests/var/wildcard-san-certificate.crt) | 0 | ||||
-rw-r--r-- | glanceclient/tests/utils.py (renamed from tests/utils.py) | 0 |
33 files changed, 16 insertions, 16 deletions
diff --git a/.testr.conf b/.testr.conf index 081907d..a2f6f4d 100644 --- a/.testr.conf +++ b/.testr.conf @@ -1,4 +1,4 @@ [DEFAULT] -test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./tests $LISTOPT $IDOPTION +test_command=${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./glanceclient/tests/unit} $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list diff --git a/tests/__init__.py b/glanceclient/tests/__init__.py index e69de29..e69de29 100644 --- a/tests/__init__.py +++ b/glanceclient/tests/__init__.py diff --git a/tests/v1/__init__.py b/glanceclient/tests/unit/__init__.py index e69de29..e69de29 100644 --- a/tests/v1/__init__.py +++ b/glanceclient/tests/unit/__init__.py diff --git a/tests/test_base.py b/glanceclient/tests/unit/test_base.py index 4a97de8..4a97de8 100644 --- a/tests/test_base.py +++ b/glanceclient/tests/unit/test_base.py diff --git a/tests/test_client.py b/glanceclient/tests/unit/test_client.py index 62daaf5..62daaf5 100644 --- a/tests/test_client.py +++ b/glanceclient/tests/unit/test_client.py diff --git a/tests/test_exc.py b/glanceclient/tests/unit/test_exc.py index 575c62b..575c62b 100644 --- a/tests/test_exc.py +++ b/glanceclient/tests/unit/test_exc.py diff --git a/tests/test_http.py b/glanceclient/tests/unit/test_http.py index 4aa10ce..e8bfaaa 100644 --- a/tests/test_http.py +++ b/glanceclient/tests/unit/test_http.py @@ -27,7 +27,7 @@ import glanceclient from glanceclient.common import http from glanceclient.common import https from glanceclient import exc -from tests import utils +from glanceclient.tests import utils class TestClient(testtools.TestCase): diff --git a/tests/test_progressbar.py b/glanceclient/tests/unit/test_progressbar.py index beb3c28..1dd42a0 100644 --- a/tests/test_progressbar.py +++ b/glanceclient/tests/unit/test_progressbar.py @@ -19,7 +19,7 @@ import six import testtools from glanceclient.common import progressbar -from tests import utils as test_utils +from glanceclient.tests import utils as test_utils class TestProgressBarWrapper(testtools.TestCase): diff --git a/tests/test_shell.py b/glanceclient/tests/unit/test_shell.py index 6a705f6..ef15561 100644 --- a/tests/test_shell.py +++ b/glanceclient/tests/unit/test_shell.py @@ -30,10 +30,10 @@ import six from glanceclient import exc from glanceclient import shell as openstack_shell +from glanceclient.tests import utils #NOTE (esheffield) Used for the schema caching tests from glanceclient.v2 import schemas as schemas import json -from tests import utils DEFAULT_IMAGE_URL = 'http://127.0.0.1:5000/' diff --git a/tests/test_ssl.py b/glanceclient/tests/unit/test_ssl.py index 907b7bf..907b7bf 100644 --- a/tests/test_ssl.py +++ b/glanceclient/tests/unit/test_ssl.py diff --git a/tests/test_utils.py b/glanceclient/tests/unit/test_utils.py index 564d7f6..564d7f6 100644 --- a/tests/test_utils.py +++ b/glanceclient/tests/unit/test_utils.py diff --git a/tests/v2/__init__.py b/glanceclient/tests/unit/v1/__init__.py index e69de29..e69de29 100644 --- a/tests/v2/__init__.py +++ b/glanceclient/tests/unit/v1/__init__.py diff --git a/tests/v1/test_image_members.py b/glanceclient/tests/unit/v1/test_image_members.py index 8cf8f55..d6e3150 100644 --- a/tests/v1/test_image_members.py +++ b/glanceclient/tests/unit/v1/test_image_members.py @@ -15,9 +15,9 @@ import testtools +from glanceclient.tests import utils import glanceclient.v1.image_members import glanceclient.v1.images -from tests import utils fixtures = { diff --git a/tests/v1/test_images.py b/glanceclient/tests/unit/v1/test_images.py index 1cf1794..90849d1 100644 --- a/tests/v1/test_images.py +++ b/glanceclient/tests/unit/v1/test_images.py @@ -20,10 +20,10 @@ import testtools import six from six.moves.urllib import parse +from glanceclient.tests import utils from glanceclient.v1 import client from glanceclient.v1 import images from glanceclient.v1 import shell -from tests import utils fixtures = { diff --git a/tests/v1/test_shell.py b/glanceclient/tests/unit/v1/test_shell.py index d088500..342dce1 100644 --- a/tests/v1/test_shell.py +++ b/glanceclient/tests/unit/v1/test_shell.py @@ -31,7 +31,7 @@ import glanceclient.v1.client as client import glanceclient.v1.images import glanceclient.v1.shell as v1shell -from tests import utils +from glanceclient.tests import utils if six.PY3: import io diff --git a/glanceclient/tests/unit/v2/__init__.py b/glanceclient/tests/unit/v2/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/glanceclient/tests/unit/v2/__init__.py diff --git a/tests/v2/test_images.py b/glanceclient/tests/unit/v2/test_images.py index f15d795..7fc7558 100644 --- a/tests/v2/test_images.py +++ b/glanceclient/tests/unit/v2/test_images.py @@ -18,8 +18,8 @@ import errno import testtools from glanceclient import exc +from glanceclient.tests import utils from glanceclient.v2 import images -from tests import utils _CHKSUM = '93264c3edf5972c9f1cb309543d38a5c' _CHKSUM1 = '54264c3edf5972c9f1cb309453d38a46' diff --git a/tests/v2/test_members.py b/glanceclient/tests/unit/v2/test_members.py index 744f3a6..cf56a36 100644 --- a/tests/v2/test_members.py +++ b/glanceclient/tests/unit/v2/test_members.py @@ -15,8 +15,8 @@ import testtools +from glanceclient.tests import utils from glanceclient.v2 import image_members -from tests import utils IMAGE = '3a4560a1-e585-443e-9b39-553b46ec92d1' diff --git a/tests/v2/test_metadefs_namespaces.py b/glanceclient/tests/unit/v2/test_metadefs_namespaces.py index b03dcd1..ecc05ee 100644 --- a/tests/v2/test_metadefs_namespaces.py +++ b/glanceclient/tests/unit/v2/test_metadefs_namespaces.py @@ -15,8 +15,8 @@ import testtools +from glanceclient.tests import utils from glanceclient.v2 import metadefs -from tests import utils NAMESPACE1 = 'Namespace1' NAMESPACE2 = 'Namespace2' diff --git a/tests/v2/test_metadefs_objects.py b/glanceclient/tests/unit/v2/test_metadefs_objects.py index 701d562..c565b3c 100644 --- a/tests/v2/test_metadefs_objects.py +++ b/glanceclient/tests/unit/v2/test_metadefs_objects.py @@ -16,8 +16,8 @@ import six import testtools +from glanceclient.tests import utils from glanceclient.v2 import metadefs -from tests import utils NAMESPACE1 = 'Namespace1' OBJECT1 = 'Object1' diff --git a/tests/v2/test_metadefs_properties.py b/glanceclient/tests/unit/v2/test_metadefs_properties.py index d2ac25d..388bf93 100644 --- a/tests/v2/test_metadefs_properties.py +++ b/glanceclient/tests/unit/v2/test_metadefs_properties.py @@ -15,8 +15,8 @@ import testtools +from glanceclient.tests import utils from glanceclient.v2 import metadefs -from tests import utils NAMESPACE1 = 'Namespace1' PROPERTY1 = 'Property1' diff --git a/tests/v2/test_metadefs_resource_types.py b/glanceclient/tests/unit/v2/test_metadefs_resource_types.py index bcb4993..de3f9c2 100644 --- a/tests/v2/test_metadefs_resource_types.py +++ b/glanceclient/tests/unit/v2/test_metadefs_resource_types.py @@ -15,8 +15,8 @@ import testtools +from glanceclient.tests import utils from glanceclient.v2 import metadefs -from tests import utils NAMESPACE1 = 'Namespace1' RESOURCE_TYPE1 = 'ResourceType1' diff --git a/tests/v2/test_schemas.py b/glanceclient/tests/unit/v2/test_schemas.py index 20d817b..35788cd 100644 --- a/tests/v2/test_schemas.py +++ b/glanceclient/tests/unit/v2/test_schemas.py @@ -17,8 +17,8 @@ from jsonpatch import JsonPatch import testtools import warlock +from glanceclient.tests import utils from glanceclient.v2 import schemas -from tests import utils fixtures = { diff --git a/tests/v2/test_shell_v2.py b/glanceclient/tests/unit/v2/test_shell_v2.py index 33985b9..33985b9 100644 --- a/tests/v2/test_shell_v2.py +++ b/glanceclient/tests/unit/v2/test_shell_v2.py diff --git a/tests/v2/test_tags.py b/glanceclient/tests/unit/v2/test_tags.py index 88ec2fe..790080e 100644 --- a/tests/v2/test_tags.py +++ b/glanceclient/tests/unit/v2/test_tags.py @@ -15,8 +15,8 @@ import testtools +from glanceclient.tests import utils from glanceclient.v2 import image_tags -from tests import utils IMAGE = '3a4560a1-e585-443e-9b39-553b46ec92d1' diff --git a/tests/v2/test_tasks.py b/glanceclient/tests/unit/v2/test_tasks.py index 4e1f78c..ed63286 100644 --- a/tests/v2/test_tasks.py +++ b/glanceclient/tests/unit/v2/test_tasks.py @@ -16,8 +16,8 @@ import testtools +from glanceclient.tests import utils from glanceclient.v2 import tasks -from tests import utils _OWNED_TASK_ID = 'a4963502-acc7-42ba-ad60-5aa0962b7faf' diff --git a/tests/var/ca.crt b/glanceclient/tests/unit/var/ca.crt index c149d8c..c149d8c 100644 --- a/tests/var/ca.crt +++ b/glanceclient/tests/unit/var/ca.crt diff --git a/tests/var/certificate.crt b/glanceclient/tests/unit/var/certificate.crt index 06c02ab..06c02ab 100644 --- a/tests/var/certificate.crt +++ b/glanceclient/tests/unit/var/certificate.crt diff --git a/tests/var/expired-cert.crt b/glanceclient/tests/unit/var/expired-cert.crt index 227d422..227d422 100644 --- a/tests/var/expired-cert.crt +++ b/glanceclient/tests/unit/var/expired-cert.crt diff --git a/tests/var/privatekey.key b/glanceclient/tests/unit/var/privatekey.key index 5b47d44..5b47d44 100644 --- a/tests/var/privatekey.key +++ b/glanceclient/tests/unit/var/privatekey.key diff --git a/tests/var/wildcard-certificate.crt b/glanceclient/tests/unit/var/wildcard-certificate.crt index a5f0b62..a5f0b62 100644 --- a/tests/var/wildcard-certificate.crt +++ b/glanceclient/tests/unit/var/wildcard-certificate.crt diff --git a/tests/var/wildcard-san-certificate.crt b/glanceclient/tests/unit/var/wildcard-san-certificate.crt index 6ce27bc..6ce27bc 100644 --- a/tests/var/wildcard-san-certificate.crt +++ b/glanceclient/tests/unit/var/wildcard-san-certificate.crt diff --git a/tests/utils.py b/glanceclient/tests/utils.py index a47dcb3..a47dcb3 100644 --- a/tests/utils.py +++ b/glanceclient/tests/utils.py |