Merge "Remove unique class names because they are scoped"
This commit is contained in:
commit
4451507cce
@ -16,8 +16,8 @@ from functional.common import test
|
||||
BASIC_LIST_HEADERS = ['ID', 'Name']
|
||||
|
||||
|
||||
class IdentityV2Tests(test.TestCase):
|
||||
"""Functional tests for Identity V2 commands. """
|
||||
class IdentityTests(test.TestCase):
|
||||
"""Functional tests for Identity commands. """
|
||||
|
||||
USER_FIELDS = ['email', 'enabled', 'id', 'name', 'project_id', 'username']
|
||||
PROJECT_FIELDS = ['enabled', 'id', 'name', 'description']
|
||||
|
@ -19,8 +19,8 @@ from functional.common import test
|
||||
BASIC_LIST_HEADERS = ['ID', 'Name']
|
||||
|
||||
|
||||
class IdentityV3Tests(test.TestCase):
|
||||
"""Functional tests for Identity V3 commands. """
|
||||
class IdentityTests(test.TestCase):
|
||||
"""Functional tests for Identity commands. """
|
||||
|
||||
DOMAIN_FIELDS = ['description', 'enabled', 'id', 'name', 'links']
|
||||
GROUP_FIELDS = ['description', 'domain_id', 'id', 'name', 'links']
|
||||
@ -37,7 +37,7 @@ class IdentityV3Tests(test.TestCase):
|
||||
return name
|
||||
|
||||
def setUp(self):
|
||||
super(IdentityV3Tests, self).setUp()
|
||||
super(IdentityTests, self).setUp()
|
||||
auth_url = os.environ.get('OS_AUTH_URL')
|
||||
auth_url = auth_url.replace('v2.0', 'v3')
|
||||
os.environ['OS_AUTH_URL'] = auth_url
|
||||
|
@ -20,15 +20,17 @@ CONTAINER_FIELDS = ['account', 'container', 'x-trans-id']
|
||||
OBJECT_FIELDS = ['object', 'container', 'etag']
|
||||
|
||||
|
||||
class ObjectV1Tests(test.TestCase):
|
||||
"""Functional tests for Object V1 commands. """
|
||||
class ObjectTests(test.TestCase):
|
||||
"""Functional tests for Object commands. """
|
||||
|
||||
CONTAINER_NAME = uuid.uuid4().hex
|
||||
OBJECT_NAME = uuid.uuid4().hex
|
||||
TMP_FILE = 'tmp.txt'
|
||||
|
||||
def setUp(self):
|
||||
super(ObjectV1Tests, self).setUp()
|
||||
super(ObjectTests, self).setUp()
|
||||
self.addCleanup(os.remove, self.OBJECT_NAME)
|
||||
self.addCleanup(os.remove, self.TMP_FILE)
|
||||
with open(self.OBJECT_NAME, 'w') as f:
|
||||
f.write('test content')
|
||||
|
||||
@ -61,7 +63,7 @@ class ObjectV1Tests(test.TestCase):
|
||||
# TODO(stevemar): Assert returned fields
|
||||
|
||||
self.openstack('object save ' + self.CONTAINER_NAME
|
||||
+ ' ' + self.OBJECT_NAME + ' --file tmp.txt')
|
||||
+ ' ' + self.OBJECT_NAME + ' --file ' + self.TMP_FILE)
|
||||
# TODO(stevemar): Assert returned fields
|
||||
|
||||
self.openstack('object show ' + self.CONTAINER_NAME
|
||||
|
Loading…
x
Reference in New Issue
Block a user