PyTest, test to cover VM creation a ovs nets
- test_osm_01_create_vm -> add 2 host and create one vm with dhcp
- test_osm_02_create_2_vm_ping_btw -> add 2 host and create two vm with dhcp and check ping between both vm.
- test_osm_03_test_service_openvim -> restart a service and check net status
- The test regresion launch the repo service and use the openvim CLI client available in the repo.
Change-Id: I3cb3c047fbd871f6d3a0c152dc6643a3248835d6
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
diff --git a/test/lib/config_parser.py b/test/lib/config_parser.py
new file mode 100644
index 0000000..1981fce
--- /dev/null
+++ b/test/lib/config_parser.py
@@ -0,0 +1,15 @@
+import yaml
+
+
+def get_config(file):
+ """
+ Parse test config file
+ :param file:
+ :return:
+ """
+ with open(file, 'r') as stream:
+ try:
+ return yaml.load(stream)
+ except yaml.YAMLError as exc:
+ print(exc)
+