diff options
author | spisarski <s.pisarski@cablelabs.com> | 2017-11-16 16:07:47 -0700 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2017-11-16 16:07:47 -0700 |
commit | 4cad4f7d1f53189900f9024fa5478e98a64d3760 (patch) | |
tree | a7a7161386d67b6a0214d7f802a5132b58ad2e71 /snaps/openstack/tests/create_stack_tests.py | |
parent | 792a01b6592b320b80bdc7465247b0fcb19f1264 (diff) |
Refactoring of ImageSettings to extend ImageConfig
ImageSettings and glance_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the ImageSettings class.
JIRA: SNAPS-217
Change-Id: I09f34531366f2a5bd3202c9cbbdef878b2542abe
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/tests/create_stack_tests.py')
-rw-r--r-- | snaps/openstack/tests/create_stack_tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/snaps/openstack/tests/create_stack_tests.py b/snaps/openstack/tests/create_stack_tests.py index 9a26918..4400001 100644 --- a/snaps/openstack/tests/create_stack_tests.py +++ b/snaps/openstack/tests/create_stack_tests.py @@ -19,7 +19,8 @@ import pkg_resources from heatclient.exc import HTTPBadRequest from snaps import file_utils from snaps.openstack.create_flavor import OpenStackFlavor, FlavorSettings -from snaps.openstack.create_image import OpenStackImage, ImageSettings +from snaps.openstack.create_image import OpenStackImage +from snaps.config.image import ImageConfig try: from urllib.request import URLError @@ -974,7 +975,7 @@ class CreateStackFailureTests(OSIntegrationTestCase): self.tmp_file = file_utils.save_string_to_file( ' ', str(uuid.uuid4()) + '-bad-image') self.image_creator = OpenStackImage( - self.heat_creds, ImageSettings( + self.heat_creds, ImageConfig( name=self.guid + 'image', image_file=self.tmp_file.name, image_user='foo', img_format='qcow2')) self.image_creator.create() |