diff options
author | spisarski <s.pisarski@cablelabs.com> | 2017-11-17 09:25:33 -0700 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2017-11-20 08:15:10 -0700 |
commit | 133b321125eeb4c22b2963dbd112a074cfeb6ab1 (patch) | |
tree | 6a762f5914a3d45bf4279ac2266767fd0c5f85c8 /snaps/openstack/utils | |
parent | 2e8f0c27a1a9e16778f83dba7ca9489664bd92f2 (diff) |
Refactoring of UserSettings to extend UserConfig
UserSettings and keystone_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the UserSettings class.
JIRA: SNAPS-226
Change-Id: Ifcc2a029463780e963b1afcf1de31baf9edded40
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/utils')
-rw-r--r-- | snaps/openstack/utils/tests/keystone_utils_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/snaps/openstack/utils/tests/keystone_utils_tests.py b/snaps/openstack/utils/tests/keystone_utils_tests.py index ef08acc..b7f024d 100644 --- a/snaps/openstack/utils/tests/keystone_utils_tests.py +++ b/snaps/openstack/utils/tests/keystone_utils_tests.py @@ -15,7 +15,7 @@ import uuid from snaps.config.project import ProjectConfig -from snaps.openstack.create_user import UserSettings +from snaps.config.user import UserConfig from snaps.openstack.tests.os_source_file_test import OSComponentTestCase from snaps.openstack.utils import keystone_utils, neutron_utils @@ -96,7 +96,7 @@ class KeystoneUtilsTests(OSComponentTestCase): """ Tests the keystone_utils.create_user() function """ - user_settings = UserSettings( + user_settings = UserConfig( name=self.username, password=str(uuid.uuid4()), domain_name=self.os_creds.user_domain_name) @@ -180,7 +180,7 @@ class KeystoneUtilsTests(OSComponentTestCase): Tests the keystone_utils function grant_user_role_to_project() :return: """ - user_settings = UserSettings( + user_settings = UserConfig( name=self.username, password=str(uuid.uuid4()), domain_name=self.os_creds.user_domain_name) self.user = keystone_utils.create_user(self.keystone, user_settings) |