diff options
author | 2017-11-17 08:35:45 -0700 | |
---|---|---|
committer | 2017-11-20 07:43:34 -0700 | |
commit | 88c180252d78226e06ecf53a23d4f0eca9815bb8 (patch) | |
tree | d448f86a7c3f15cc5d255054465ff9b1f67967c6 /snaps/openstack/utils/tests/settings_utils_tests.py | |
parent | f9d332f6c67f5e0cb70c1570499996926ffbdf5c (diff) |
Refactoring of KeypairSettings to extend KeypairConfig
KeypairSettings and glance_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the KeypairSettings class.
JIRA: SNAPS-219
Change-Id: I92f51ecb77238444697e922c8f089e78d1c643aa
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/utils/tests/settings_utils_tests.py')
-rw-r--r-- | snaps/openstack/utils/tests/settings_utils_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/snaps/openstack/utils/tests/settings_utils_tests.py b/snaps/openstack/utils/tests/settings_utils_tests.py index 97dfd3c..3fba4fc 100644 --- a/snaps/openstack/utils/tests/settings_utils_tests.py +++ b/snaps/openstack/utils/tests/settings_utils_tests.py @@ -19,6 +19,7 @@ import os import uuid from snaps.config.flavor import FlavorConfig +from snaps.config.keypair import KeypairConfig from snaps.domain.flavor import Flavor from snaps.domain.volume import ( Volume, VolumeType, VolumeTypeEncryption, QoSSpec) @@ -207,7 +208,7 @@ class SettingsUtilsVmInstTests(OSComponentTestCase): # Create Key/Pair self.keypair_creator = create_keypairs.OpenStackKeypair( - self.os_creds, create_keypairs.KeypairSettings( + self.os_creds, KeypairConfig( name=self.keypair_name, public_filepath=self.keypair_pub_filepath, private_filepath=self.keypair_priv_filepath)) |