Need to update Python-tempestconf
Currently we have `Image import`, `copy image import` and `importing image in multistore` parameters missing in cs9. Parameter 'Image-feature-enabled.import_image' covers all the above missing parameter we need to enable in cs9. Hence, this is an attemmpt to address this issue. Signed-off-by: Soniya Vyas <svyas@redhat.com> Change-Id: I2623af02434a262c2108454bce4432d032d8b7cb
This commit is contained in:
parent
2bf7bf6a84
commit
1152704e2f
|
@ -59,6 +59,7 @@ class ImageService(VersionedService):
|
||||||
# When cirros is the image, set validation.image_ssh_user to cirros.
|
# When cirros is the image, set validation.image_ssh_user to cirros.
|
||||||
# The option is heavily used in CI and it's also usefull for refstack,
|
# The option is heavily used in CI and it's also usefull for refstack,
|
||||||
# because we don't have to specify overrides.
|
# because we don't have to specify overrides.
|
||||||
|
conf.set('image-feature-enabled', 'import_image', 'True')
|
||||||
if 'cirros' in conf.get_defaulted('image',
|
if 'cirros' in conf.get_defaulted('image',
|
||||||
'image_path').rsplit('/')[-1]:
|
'image_path').rsplit('/')[-1]:
|
||||||
conf.set('validation', 'image_ssh_user', 'cirros')
|
conf.set('validation', 'image_ssh_user', 'cirros')
|
||||||
|
|
|
@ -48,6 +48,7 @@ class TestImageService(BaseServiceTest):
|
||||||
self.conf = TempestConf()
|
self.conf = TempestConf()
|
||||||
self.conf.set("image", "image_path", "my_image.qcow2")
|
self.conf.set("image", "image_path", "my_image.qcow2")
|
||||||
self.conf.set("image", "http_image", "http_image.qcow2")
|
self.conf.set("image", "http_image", "http_image.qcow2")
|
||||||
|
self.conf.set('image-feature-enabled', 'import_image', 'True')
|
||||||
|
|
||||||
@mock.patch('config_tempest.services.image.ImageService._find_image')
|
@mock.patch('config_tempest.services.image.ImageService._find_image')
|
||||||
@mock.patch('config_tempest.services.image.ImageService'
|
@mock.patch('config_tempest.services.image.ImageService'
|
||||||
|
|
Loading…
Reference in New Issue