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 /docs | |
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 'docs')
-rw-r--r-- | docs/how-to-use/LibraryUsage.rst | 7 | ||||
-rw-r--r-- | docs/how-to-use/UnitTests.rst | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/docs/how-to-use/LibraryUsage.rst b/docs/how-to-use/LibraryUsage.rst index ae28212..b5cff12 100644 --- a/docs/how-to-use/LibraryUsage.rst +++ b/docs/how-to-use/LibraryUsage.rst @@ -79,7 +79,7 @@ Create User ----------- - User - snaps.openstack.create\_user.OpenStackUser - - snaps.openstack.create\_user.UserSettings + - snaps.openstack.user.UserConfig - name - the username (required) - password - the user's password (required) @@ -94,8 +94,9 @@ Create User .. code:: python - from snaps.openstack.create_user import UserSettings, OpenStackUser - user_settings = UserSettings(name='username', password='password') + from snaps.config.user import UserConfig + from snaps.openstack.create_user import OpenStackUser + user_settings = UserConfig(name='username', password='password') user_creator = OpenStackUser(os_creds, user_settings) user_creator.create() diff --git a/docs/how-to-use/UnitTests.rst b/docs/how-to-use/UnitTests.rst index 214e2b8..e45a114 100644 --- a/docs/how-to-use/UnitTests.rst +++ b/docs/how-to-use/UnitTests.rst @@ -114,11 +114,17 @@ KeypairDomainObjectTests Ensures that all required members are included when constructing a Keypair domain object +UserConfigUnitTests +------------------- + +Ensures that all required members are included when constructing a +UserConfig object + UserSettingsUnitTests --------------------- Ensures that all required members are included when constructing a -UserSettings object +deprecated UserSettings object UserDomainObjectTests --------------------- |