Running Enea Automation Framework tests
The most relevant information from the Automation Framework and Test
Harness structure:
|---automation_framework
| |---unittestSuite
| | |---128tCleanup.json - Use case 1 - clean up - test.
| | |---128tDeploy.json - Use case 1 - test.
| | |---128t_FG_SFCCleanup.json - Use case 2 - clean up - test.
| | |---128t_FG_SFCDeploy.json - Use case 2 - test.
| | |---config
| | | |---cmc
- Folder containing the configuration files used by tests.
| | |---unittestLoader.py
| | |---unittestSuite.py
|---lab_config
| |---me1100-1
| | |---enp4s0f0_0000_04_00_0.json
| | |---enp4s0f1_0000_04_00_1.json
| | |---ibm_br.json - In-band management definition.
| | |---lan_br_enp4s0f1.json - Lan bridge definition.
| | |---me1100-1.json
- Target definition - make sure to update the "address".
| | |---sfc_br.json - Service chain bridge definition.
| | |---vnf_mgmt_br.json - VNF management bridge definition.
|---vnf_config
| |---128t
| | |---128tInstance.json - 128T instantiation - used in use case 1.
| | |---128t.json - 128T onboarding.
| | |---128tSFCInstance.json - 128T instantiation - used in use case 2.
| | |---centos_128t_internet_ci.iso - 128T cloud init (day-0) iso image.
| |---fortigate
| | |---fg_basic_fw.conf - Fortigate day-0 configuration.
| | |---fortigateInstance.json - Fortigate instantiantion.
| | |---fortigate.json - Fortigate onboarding.
| | |---fortigateLicense.lic
- Fortigate license - replace it with a valid License file.
|---vnf_image
| |---centos_128t_with_ci.qcow2 - 128T qcow2 image.
| |---fortios.qcow2 - Fortigate qcow2 image.
Make sure to update the relevant configuration file for your setup.
The essential files to consider are the target configuration
(me1100-1.json), the license for the Fortigate VNF, and
the 128T cloud-init iso image matching your network.
To run a test:> cd automation_and_systemtest/automation_framework/unittestSuite
> python unittestSuite.py -u admin -p admin -H 172.24.3.109 -n me1100-1 -s