diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-09-03 05:30:43 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-09-03 05:30:43 +0200 |
commit | 49bbb68361cfafa1f55681649ef8e0764d03bd91 (patch) | |
tree | 38a65c5fdf5b7e3cead61e9624b60bd1d9fa1b0d | |
parent | 8f8f600106c038138845b3ddc527aebc9055f4a8 (diff) |
Switch from tempest section to openstack
Rally warns from these deprecated conf sections.
Change-Id: I15933c4f2cda14384e53202ec22f438a586d7b05
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index bd337ce2f..329e6b917 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -306,9 +306,9 @@ class TempestCommon(singlevm.VmReady2): """Set image name as tempest img_name_regex""" rconfig = configparser.RawConfigParser() rconfig.read(rally_conf) - if not rconfig.has_section('tempest'): - rconfig.add_section('tempest') - rconfig.set('tempest', 'img_name_regex', '^{}$'.format( + if not rconfig.has_section('openstack'): + rconfig.add_section('openstack') + rconfig.set('openstack', 'img_name_regex', '^{}$'.format( self.image.name)) with open(rally_conf, 'wb') as config_file: rconfig.write(config_file) @@ -320,9 +320,9 @@ class TempestCommon(singlevm.VmReady2): return rconfig = configparser.RawConfigParser() rconfig.read(rally_conf) - if not rconfig.has_section('tempest'): - rconfig.add_section('tempest') - rconfig.set('tempest', 'swift_operator_role', role.name) + if not rconfig.has_section('openstack'): + rconfig.add_section('openstack') + rconfig.set('openstack', 'swift_operator_role', role.name) with open(rally_conf, 'wb') as config_file: rconfig.write(config_file) @@ -342,10 +342,10 @@ class TempestCommon(singlevm.VmReady2): """Clean Rally config""" rconfig = configparser.RawConfigParser() rconfig.read(rally_conf) - if rconfig.has_option('tempest', 'img_name_regex'): - rconfig.remove_option('tempest', 'img_name_regex') - if rconfig.has_option('tempest', 'swift_operator_role'): - rconfig.remove_option('tempest', 'swift_operator_role') + if rconfig.has_option('openstack', 'img_name_regex'): + rconfig.remove_option('openstack', 'img_name_regex') + if rconfig.has_option('openstack', 'swift_operator_role'): + rconfig.remove_option('openstack', 'swift_operator_role') if rconfig.has_option('DEFAULT', 'log-file'): rconfig.remove_option('DEFAULT', 'log-file') if rconfig.has_option('DEFAULT', 'log_dir'): |