diff options
author | 2018-09-20 13:39:56 +0200 | |
---|---|---|
committer | 2018-09-20 16:38:23 +0200 | |
commit | d5e272c1ba513a171bf3798be38a6e8f655378d9 (patch) | |
tree | 629ba99314d33de3a233fc1097e535f8cc6b7fc3 /functest/opnfv_tests/openstack | |
parent | 44ba5e91ca0bab391ee90c60e1e80fcd26566d6d (diff) |
Allow overriding default storage protocol
It adds a new env var STORAGE_PROTOCOL to override storage_protocol
in tempest. The default value is unchanged [1].
[1] https://docs.openstack.org/tempest/latest/sampleconf.html
Co-Authored-By: Viktor Tikkanen <viktor.tikkanen@nokia.com>
Change-Id: I19e4e25212b6f6176e3b967e01eb634c15e4d474
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit a561c6ca316feb1a203327aa729ac0317f70df48)
Diffstat (limited to 'functest/opnfv_tests/openstack')
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/conf_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py index d82b70c10..8ba3cca3e 100644 --- a/functest/opnfv_tests/openstack/tempest/conf_utils.py +++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py @@ -229,7 +229,9 @@ def configure_tempest_update_params( getattr(config.CONF, 'tempest_validation_ssh_timeout')) rconfig.set('object-storage', 'operator_role', getattr(config.CONF, 'tempest_object_storage_operator_role')) - + if not rconfig.has_section('volume'): + rconfig.add_section('volume') + rconfig.set('volume', 'storage_protocol', env.get('STORAGE_PROTOCOL')) rconfig.set( 'identity', 'v3_endpoint_type', os.environ.get('OS_INTERFACE', 'public')) |