summaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
Diffstat (limited to 'functest')
-rw-r--r--functest/opnfv_tests/openstack/tempest/conf_utils.py4
-rw-r--r--functest/utils/env.py3
2 files changed, 5 insertions, 2 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'))
diff --git a/functest/utils/env.py b/functest/utils/env.py
index 29ff6a825..07398b8da 100644
--- a/functest/utils/env.py
+++ b/functest/utils/env.py
@@ -30,7 +30,8 @@ INPUTS = {
'VOLUME_DEVICE_NAME': 'vdb',
'NAMESERVER': '8.8.8.8',
'NEW_USER_ROLE': 'Member',
- 'USE_DYNAMIC_CREDENTIALS': 'True'
+ 'USE_DYNAMIC_CREDENTIALS': 'True',
+ 'STORAGE_PROTOCOL': 'iSCSI'
}