functest.opnfv_tests.vnf.ims.heat_ims module¶
HeatIms testcase implementation.
-
class
functest.opnfv_tests.vnf.ims.heat_ims.
HeatIms
(**kwargs)¶ Bases:
functest.core.singlevm.VmReady2
Clearwater vIMS deployed with Heat Orchestrator Case.
-
clean
()¶ Clean created objects/functions.
-
create_network_resources
()¶ Create all tenant network resources
It creates a router which gateway is the external network detected. The new subnet is attached to that router.
Raises: expection on error
-
deploy_vnf
()¶ Deploy Clearwater IMS.
-
execute
()¶ Prepare Tenant/User
network, security group, fip, VM creation
-
filename
= '/home/opnfv/functest/images/ubuntu-14.04-server-cloudimg-amd64-disk1.img'¶
-
flavor_disk
= 3¶
-
flavor_ram
= 1024¶
-
flavor_vcpus
= 1¶
-
parameters
= {'private_mgmt_net_cidr': '192.168.100.0/24', 'private_mgmt_net_gateway': '192.168.100.254', 'private_mgmt_net_pool_end': '192.168.100.253', 'private_mgmt_net_pool_start': '192.168.100.1'}¶
-
quota_port
= 50¶
-
quota_security_group
= 20¶
-
quota_security_group_rule
= 100¶
-
run
(**kwargs)¶ Deploy and test clearwater
Here are the main actions: - deploy clearwater stack via heat - test the vnf instance
Returns: - TestCase.EX_OK - TestCase.EX_RUN_ERROR on error
-
test_vnf
()¶ Run test on clearwater ims instance.
-