summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/tests/create_volume_tests.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-11-17 14:05:29 -0700
committerspisarski <s.pisarski@cablelabs.com>2017-11-20 10:12:59 -0700
commit3c387ae1c18c4a80a752c3e5a2409f4a602b9e20 (patch)
tree87a80e4650f0587a3fcd55d5ad3ecc535ee09deb /snaps/openstack/tests/create_volume_tests.py
parent6dd10aa17c12bac0c3c185b15a444a5437563c14 (diff)
Refactoring of VolumeTypeSettings to extend VolumeTypeConfig
This also includes VolumeTypeEncryptionSettings extending to VolumeTypeEncryptionConfig which is a member of VolumeTypeConfig VolumeTypeSettings and cinder_utils have a runtime cyclical dependency. This patch reduces this dependency and deprecates the VolumeTypeSettings class. JIRA: SNAPS-228 Change-Id: Iaa9c7a1cd810cf63d1badb00f71bcdcefb527e12 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/tests/create_volume_tests.py')
-rw-r--r--snaps/openstack/tests/create_volume_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/snaps/openstack/tests/create_volume_tests.py b/snaps/openstack/tests/create_volume_tests.py
index 9c3f90f..91b52b1 100644
--- a/snaps/openstack/tests/create_volume_tests.py
+++ b/snaps/openstack/tests/create_volume_tests.py
@@ -14,9 +14,9 @@
# limitations under the License.
from cinderclient.exceptions import NotFound, BadRequest
+from snaps.config.volume_type import VolumeTypeConfig
from snaps.openstack.create_image import OpenStackImage
-from snaps.openstack.create_volume_type import (
- VolumeTypeSettings, OpenStackVolumeType)
+from snaps.openstack.create_volume_type import OpenStackVolumeType
from snaps.openstack.tests import openstack_tests
try:
@@ -303,7 +303,7 @@ class CreateVolumeWithTypeTests(OSIntegrationTestCase):
self.volume_type_name = guid + '-vol-type'
self.volume_type_creator = OpenStackVolumeType(
- self.os_creds, VolumeTypeSettings(name=self.volume_type_name))
+ self.os_creds, VolumeTypeConfig(name=self.volume_type_name))
self.volume_type_creator.create()
self.volume_creator = None