summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/tests/cluster_template_tests.py
diff options
context:
space:
mode:
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>2018-06-20 11:00:01 +0300
committerPanagiotis Karalis <pkaralis@intracom-telecom.com>2018-06-21 10:45:00 +0300
commitb24b949e50a742e96e3307426031e1fe3847b089 (patch)
tree3628b87eef59a5873d62cd06e079e238bfda79cc /snaps/openstack/tests/cluster_template_tests.py
parent485fe08235b7e2d06646b36c31b333e4b6096897 (diff)
Patch to make flavor configuration for tests more flexible.
JIRA: SNAPS-254 Change-Id: Ib81569df499bbf0652c2025fc7de37af92525f7f Signed-off-by: spisarski <s.pisarski@cablelabs.com> Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com> (cherry picked from commit 44e8131216787127980558824b2a1def94fe317e)
Diffstat (limited to 'snaps/openstack/tests/cluster_template_tests.py')
-rw-r--r--snaps/openstack/tests/cluster_template_tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/snaps/openstack/tests/cluster_template_tests.py b/snaps/openstack/tests/cluster_template_tests.py
index b08f260..eda790d 100644
--- a/snaps/openstack/tests/cluster_template_tests.py
+++ b/snaps/openstack/tests/cluster_template_tests.py
@@ -69,9 +69,10 @@ class CreateClusterTemplateTests(OSIntegrationTestCase):
self.image_creator = OpenStackImage(self.os_creds, os_image_settings)
- self.flavor_creator = OpenStackFlavor(
- self.os_creds, FlavorConfig(
- name=self.guid + '-flavor', ram=512, disk=10, vcpus=1))
+ flavor_config = openstack_tests.get_flavor_config(
+ name=self.guid + '-flavor', ram=512, disk=10,
+ vcpus=1, metadata=self.flavor_metadata)
+ self.flavor_creator = OpenStackFlavor(self.os_creds, flavor_config)
keypair_priv_filepath = 'tmp/' + self.guid
keypair_pub_filepath = keypair_priv_filepath + '.pub'