From 60fac3073876a9a5591c42cd3fa0cb5237ed2177 Mon Sep 17 00:00:00 2001 From: zhongjun Date: Thu, 3 Aug 2017 22:14:27 +0800 Subject: Add the unit test by pytest for get_conf.py Add the unit test cases by pytest way for get_conf.py, other python files will be added unit test cases gradually in the future. Change-Id: I2495645defcf7ee1b6014b27810ac956eec9f7de Signed-off-by: zhongjun --- tests/data/lab_conf/deploy_virtual1.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/data/lab_conf/deploy_virtual1.yml (limited to 'tests/data/lab_conf/deploy_virtual1.yml') diff --git a/tests/data/lab_conf/deploy_virtual1.yml b/tests/data/lab_conf/deploy_virtual1.yml new file mode 100644 index 00000000..7fdfc3ba --- /dev/null +++ b/tests/data/lab_conf/deploy_virtual1.yml @@ -0,0 +1,31 @@ +adapter: libvirt +hosts: +- name: 'controller01' + roles: + - 'CONTROLLER_LB' + template: 'templates/virtual_environment/vms/controller.xml' +- name: 'controller02' + roles: + - 'CONTROLLER_LB' + template: 'templates/virtual_environment/vms/controller.xml' +- name: 'controller03' + roles: + - 'CONTROLLER_LB' + template: 'templates/virtual_environment/vms/controller.xml' +- name: 'computer01' + roles: + - 'COMPUTER' + template: 'templates/virtual_environment/vms/computer.xml' +- name: 'computer02' + roles: + - 'COMPUTER' + template: 'templates/virtual_environment/vms/computer.xml' +disks: + daisy: 50 + controller: 110 + compute: 110 + ceph: 110 +daisy_passwd: 'r00tme' +daisy_ip: '10.20.11.2' +daisy_gateway: '10.20.11.1' +ceph_disk_name: '/dev/sdb' \ No newline at end of file -- cgit 1.2.3-korg