Revert "Removed subclass from cloud name"

This reverts commit b7cf43d98f.
This commit is contained in:
Tyler Johnson 2019-08-14 10:12:55 -06:00
parent b7cf43d98f
commit 158a38c750
No known key found for this signature in database
GPG key ID: 691E31397E27D004

View file

@ -77,7 +77,9 @@ class CloudTest(ShellCase):
def instance_name(self):
if not hasattr(self, '__instance_name'):
# Create the cloud instance name to be used throughout the tests
self.__instance_name = generate_random_name('cloud-test-').lower()
subclass = self.__class__.__bases__[0].__name__.strip('Test')
# Use the first three letters of the subclass, fill with '-' if too short
self.__instance_name = generate_random_name('cloud-test-{:-<3}-'.format(subclass[:3])).lower()
return self.__instance_name
@property