summaryrefslogtreecommitdiffstats
path: root/tests/functest/odl-sfc/sfc.py
diff options
context:
space:
mode:
authorVijayendra Radhakrishna <vradhakrishna@mvista.com>2016-12-13 12:18:18 +0530
committerVijayendra Radhakrishna <vradhakrishna@mvista.com>2016-12-13 18:09:13 +0530
commit824e0073bd59b9cd81b23ac1ae7b4afaf5b9e5e3 (patch)
tree68a14b435a6f5f8ad44fae40583cd2e7902e60a1 /tests/functest/odl-sfc/sfc.py
parent8b09f0ad06e5ae941fc497754cc5778fae9018de (diff)
Move flavor creations params to config file
- Moving flavor creation params from hard coding to config file Change-Id: Ia3dac28a9a26518edde17dc2ee5495c1ab1de00b Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>
Diffstat (limited to 'tests/functest/odl-sfc/sfc.py')
-rwxr-xr-xtests/functest/odl-sfc/sfc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/functest/odl-sfc/sfc.py b/tests/functest/odl-sfc/sfc.py
index 22301a28..8bd48d2a 100755
--- a/tests/functest/odl-sfc/sfc.py
+++ b/tests/functest/odl-sfc/sfc.py
@@ -55,7 +55,10 @@ def main():
test_utils.download_image(COMMON_CONFIG.url,
COMMON_CONFIG.image_path)
_, custom_flv_id = os_utils.get_or_create_flavor(
- COMMON_CONFIG.flavor, 1500, 10, 1, public=True)
+ COMMON_CONFIG.flavor,
+ COMMON_CONFIG.ram_size_in_mb,
+ COMMON_CONFIG.disk_size_in_gb,
+ COMMON_CONFIG.vcpu_count, public=True)
if not custom_flv_id:
logger.error("Failed to create custom flavor")
sys.exit(1)
>199 200 201 202