aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-10-23 22:17:51 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-10-23 22:26:31 +0200
commit29d3486fa411c64e63c5bdcdf20d9c86bbb00f7c (patch)
tree775fd30307a8d70f0ee1a053e33ba68a4f7a0ad2
parent0ecc50df5129dd4c3f0ce251c64c18b1d9ad3a25 (diff)
Disable Glance API v1
It has been deprecated since Newton [1]. Even if the related tests are skipped in latest tempest [2], API v1 has to be disabled in Gambia's tempest.conf [3]. [1] https://docs.openstack.org/glance/latest/user/glanceapi.html [2] https://artifacts.opnfv.org/logs/functest/lf-pod1/2018-10-22_02-34-24/tempest_full/tempest-report.html [3] https://artifacts.opnfv.org/logs/functest/lf-pod1/gambia/2018-10-23_10-34-07/tempest_full/tempest-report.html Change-Id: I3b6bb632412c0fecaa659da262760af64d79fa71 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit dddd8073c97ca09937504cb10c1a7be2a0986380)
-rw-r--r--functest/opnfv_tests/openstack/tempest/conf_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py
index 60d7f3218..b4d7ad79f 100644
--- a/functest/opnfv_tests/openstack/tempest/conf_utils.py
+++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py
@@ -221,6 +221,10 @@ def configure_tempest_update_params(
rconfig.set('identity', 'default_domain_id', domain_id)
rconfig.set('identity-feature-enabled', 'api_v2', False)
rconfig.set('identity-feature-enabled', 'api_v2_admin', False)
+ if not rconfig.has_section('image-feature-enabled'):
+ rconfig.add_section('image-feature-enabled')
+ rconfig.set('image-feature-enabled', 'api_v2', True)
+ rconfig.set('image-feature-enabled', 'api_v1', False)
if not rconfig.has_section('network'):
rconfig.add_section('network')
rconfig.set('network', 'default_network', cidr)