functest.opnfv_tests.vnf.epc.juju_epc module¶
Juju testcase implementation.
-
class
functest.opnfv_tests.vnf.epc.juju_epc.
JujuEpc
(**kwargs)¶ Bases:
functest.core.singlevm.VmReady2
Abot EPC deployed with JUJU Orchestrator Case
-
check_app
(name='abot-epc-basic', status='active')¶ Check application status.
-
check_requirements
()¶ Check the requirements of the test case.
It can be overriden on purpose.
-
cidr
= '192.168.121.0/24'¶
-
clean
()¶ Clean created objects/functions.
-
deploy_orchestrator
()¶ Create network, subnet, router
Bootstrap juju
-
deploy_vnf
()¶ Deploy ABOT-OAI-EPC.
-
filename
= '/home/opnfv/functest/images/ubuntu-16.04-server-cloudimg-amd64-disk1.img'¶
-
filename_alt
= '/home/opnfv/functest/images/ubuntu-14.04-server-cloudimg-amd64-disk1.img'¶
-
flavor_alt_disk
= 10¶
-
flavor_alt_ram
= 4096¶
-
flavor_alt_vcpus
= 1¶
-
flavor_disk
= 10¶
-
flavor_ram
= 2048¶
-
flavor_vcpus
= 1¶
-
juju_timeout
= '4800'¶
-
prepare
()¶ Prepare testcase (Additional pre-configuration steps).
-
publish_image
(name=None)¶ Publish image
It allows publishing multiple images for the child testcases. It forces the same configuration for all subtestcases.
Returns: image
Raises: expection on error
-
publish_image_alt
(name=None)¶ Publish alternative image
It allows publishing multiple images for the child testcases. It forces the same configuration for all subtestcases.
Returns: image
Raises: expection on error
-
run
(**kwargs)¶ Boot the new VM
Here are the main actions: - publish the image - create the flavor
Returns: - TestCase.EX_OK - TestCase.EX_RUN_ERROR on error
-
test_vnf
()¶ Run test on ABoT.
-
-
functest.opnfv_tests.vnf.epc.juju_epc.
process_abot_test_result
(file_path)¶ Process ABoT Result
-
functest.opnfv_tests.vnf.epc.juju_epc.
sig_test_format
(sig_test)¶ Process the signaling result to have a short result
-
functest.opnfv_tests.vnf.epc.juju_epc.
update_data
(obj)¶ Update Result data