Browse Source

Merge "Make config parser case sensitivity in rally-openstack"

changes/64/730364/3
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
9858b834ba
4 changed files with 14 additions and 0 deletions
  1. +11
    -0
      CHANGELOG.rst
  2. +1
    -0
      rally_openstack/verification/tempest/config.py
  3. +1
    -0
      rally_openstack/verification/tempest/context.py
  4. +1
    -0
      tests/functional/utils.py

+ 11
- 0
CHANGELOG.rst View File

@@ -16,6 +16,17 @@ Changelog
.. Release notes for existing releases are MUTABLE! If there is something that
was missed or can be improved, feel free to change it!

[unreleased]
------------

Fixed
~~~~~

* [verification component] Make config parser case sensitivity in
TempestContext and TempestConfigfileManager.

`Launchpad-bug #1881456 <https://launchpad.net/bugs/1881456>`_

[2.0.0] - 2020-05-08
--------------------



+ 1
- 0
rally_openstack/verification/tempest/config.py View File

@@ -49,6 +49,7 @@ class TempestConfigfileManager(object):
self.available_services = self.clients.services().values()

self.conf = configparser.ConfigParser(allow_no_value=True)
self.conf.optionxform = str

def _get_service_type_by_service_name(self, service_name):
for s_type, s_name in self.clients.services().items():


+ 1
- 0
rally_openstack/verification/tempest/context.py View File

@@ -53,6 +53,7 @@ class TempestContext(context.VerifierContext):
self.available_services = self.clients.services().values()

self.conf = configparser.ConfigParser(allow_no_value=True)
self.conf.optionxform = str
self.conf_path = self.verifier.manager.configfile

self.data_dir = self.verifier.manager.home_dir


+ 1
- 0
tests/functional/utils.py View File

@@ -111,6 +111,7 @@ class Rally(object):
if self.config_opts:
self.config_filename = os.path.join(self.tmp_dir, "conf")
config = configparser.RawConfigParser()
config.optionxform = str
for section, opts in self.config_opts.items():
if section.lower() != "default":
config.add_section(section)


Loading…
Cancel
Save