aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-27 20:23:23 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-27 20:28:04 +0200
commit7fe8606eff8e44f5dbfd4ef4d6961f55fe6c7d8f (patch)
treedde37ae5ee908f41bbe07e2015bf75efb2274b55
parent890bc75c29ef98fe2eb0dd8e456ad6eafa9d26a1 (diff)
Use only one image in heat_ims
It calls VmReady2.run instead of publishing alt image. Change-Id: If24741fbc5bf7fa3f61ef39a054b148ce53fc4fc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/ci/config_patch.yaml4
-rw-r--r--functest/opnfv_tests/vnf/ims/heat_ims.py25
2 files changed, 9 insertions, 20 deletions
diff --git a/functest/ci/config_patch.yaml b/functest/ci/config_patch.yaml
index d9df47c87..1c3ab4c03 100644
--- a/functest/ci/config_patch.yaml
+++ b/functest/ci/config_patch.yaml
@@ -125,9 +125,7 @@ fdio:
extra_alt_properties: {'hw_mem_page_size':'large'}
heat_ims:
flavor_extra_specs: {'hw:mem_page_size':'large'}
- flavor_alt_extra_specs: {'hw:mem_page_size':'large'}
extra_properties: {'hw_mem_page_size':'large'}
- extra_alt_properties: {'hw_mem_page_size':'large'}
vyos_vrouter:
flavor_extra_specs: {'hw:mem_page_size':'large'}
flavor_alt_extra_specs: {'hw:mem_page_size':'large'}
@@ -263,9 +261,7 @@ ovs:
extra_alt_properties: {'hw_mem_page_size':'large'}
heat_ims:
flavor_extra_specs: {'hw:mem_page_size':'large'}
- flavor_alt_extra_specs: {'hw:mem_page_size':'large'}
extra_properties: {'hw_mem_page_size':'large'}
- extra_alt_properties: {'hw_mem_page_size':'large'}
vyos_vrouter:
flavor_extra_specs: {'hw:mem_page_size':'large'}
flavor_alt_extra_specs: {'hw:mem_page_size':'large'}
diff --git a/functest/opnfv_tests/vnf/ims/heat_ims.py b/functest/opnfv_tests/vnf/ims/heat_ims.py
index 32783dae7..7ad1e96bf 100644
--- a/functest/opnfv_tests/vnf/ims/heat_ims.py
+++ b/functest/opnfv_tests/vnf/ims/heat_ims.py
@@ -34,12 +34,12 @@ class HeatIms(singlevm.VmReady2):
__logger = logging.getLogger(__name__)
- filename_alt = ('/home/opnfv/functest/images/'
- 'ubuntu-14.04-server-cloudimg-amd64-disk1.img')
+ filename = ('/home/opnfv/functest/images/'
+ 'ubuntu-14.04-server-cloudimg-amd64-disk1.img')
- flavor_alt_ram = 2048
- flavor_alt_vcpus = 2
- flavor_alt_disk = 25
+ flavor_ram = 2048
+ flavor_vcpus = 2
+ flavor_disk = 25
quota_security_group = 20
quota_security_group_rule = 100
@@ -72,9 +72,6 @@ class HeatIms(singlevm.VmReady2):
version=get_config("vnf.version", config_file),
)
self.__logger.debug("VNF configuration: %s", self.vnf)
-
- self.image_alt = None
- self.flavor_alt = None
self.keypair = None
self.stack = None
self.clearwater = None
@@ -122,7 +119,8 @@ class HeatIms(singlevm.VmReady2):
status = testcase.TestCase.EX_RUN_ERROR
try:
assert self.cloud
- self.start_time = time.time()
+ assert super(HeatIms, self).run(
+ **kwargs) == testcase.TestCase.EX_OK
self.result = 0
if not self.execute():
self.result = 100
@@ -136,18 +134,13 @@ class HeatIms(singlevm.VmReady2):
def deploy_vnf(self):
"""Deploy Clearwater IMS."""
start_time = time.time()
-
- self.image_alt = self.publish_image_alt()
- self.flavor_alt = self.create_flavor_alt()
- # KeyPair + Image + Flavor OK
-
descriptor = self.vnf['descriptor']
parameters = self.vnf['parameters']
parameters['public_mgmt_net_id'] = self.ext_net.id
parameters['public_sig_net_id'] = self.ext_net.id
- parameters['flavor'] = self.flavor_alt.name
- parameters['image'] = self.image_alt.name
+ parameters['flavor'] = self.flavor.name
+ parameters['image'] = self.image.name
parameters['key_name'] = self.keypair.name
parameters['external_mgmt_dns_ip'] = env.get('NAMESERVER')
parameters['external_sig_dns_ip'] = env.get('NAMESERVER')