aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/snaps
diff options
context:
space:
mode:
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>2018-06-07 16:11:33 +0300
committerCédric Ollivier <cedric.ollivier@orange.com>2018-06-12 14:05:10 +0200
commit5a94beb62293151ef6f4e94ed500579de1f3673e (patch)
tree3579d3eba9b8916c8086243d41debd2db64af77b /functest/opnfv_tests/openstack/snaps
parent17f2f22e0af5f63df1671120c05b735f0905435f (diff)
SNAPS via functest with flavor metadata configurable
The required data for the SNAPS flavors are sent through the config_functest yaml file in order for the SNAPS scenarios to be configured accordingly. If the config_functest yaml file includes empty flavor_extra_specs or there is not included this parameter, the SNAPS scenarios will be executed using the hardcoded value. Change-Id: I4ef46d1fe93497d658414170a72c4520d8f37808 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/snaps')
-rw-r--r--functest/opnfv_tests/openstack/snaps/snaps_test_runner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/snaps/snaps_test_runner.py b/functest/opnfv_tests/openstack/snaps/snaps_test_runner.py
index 7b111ed1b..70327ff89 100644
--- a/functest/opnfv_tests/openstack/snaps/snaps_test_runner.py
+++ b/functest/opnfv_tests/openstack/snaps/snaps_test_runner.py
@@ -44,7 +44,8 @@ class SnapsTestRunner(unit.Suite):
self.use_keystone = (
getattr(config.CONF, 'snaps_use_keystone') == 'True')
- self.flavor_metadata = getattr(config.CONF, 'flavor_extra_specs', None)
+ self.flavor_metadata = getattr(config.CONF, 'snaps_flavor_extra_specs',
+ None)
self.logger.info("Using flavor metadata '%s'", self.flavor_metadata)
self.image_metadata = None