summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_get_conf.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/unit/test_get_conf.py b/tests/unit/test_get_conf.py
index dd8480fa..4da6a521 100644
--- a/tests/unit/test_get_conf.py
+++ b/tests/unit/test_get_conf.py
@@ -32,12 +32,12 @@ def test_get_yml_para(conf_file_dir, deploy_file_name, expected):
@pytest.mark.parametrize('deploy_file_name, network_file_name, expected', [
('deploy_virtual1.yml', 'network_virtual1.yml',
- ({'ens8': [{'ip': '', 'name': 'EXTERNAL'}],
- 'ens3': [{'ip': '', 'name': 'MANAGEMENT'},
- {'ip': '', 'name': 'PUBLICAPI'},
- {'ip': '', 'name': 'STORAGE'},
- {'ip': '', 'name': 'physnet1'}],
- 'ens9': [{'ip': '', 'name': 'HEARTBEAT'}]},
+ ({'ens8': [{'name': 'EXTERNAL'}],
+ 'ens3': [{'name': 'MANAGEMENT'},
+ {'name': 'PUBLICAPI'},
+ {'name': 'STORAGE'},
+ {'name': 'physnet1'}],
+ 'ens9': [{'name': 'HEARTBEAT'}]},
['computer01', 'computer02', 'controller01', 'controller02', 'controller03'],
{'MANAGEMENT': {'cidr': '10.20.11.0/24', 'gateway': '10.20.11.1',
'ip_ranges': [{'start': '10.20.11.3',
@@ -63,12 +63,12 @@ def test_get_yml_para(conf_file_dir, deploy_file_name, expected):
{'controller01': [], 'controller02': [], 'controller03': [],
'computer01': [], 'computer02': []})),
('deploy_virtual2.yml', 'network_virtual2.yml',
- ({'ens8': [{'ip': '', 'name': 'EXTERNAL'}],
- 'ens3': [{'ip': '', 'name': 'MANAGEMENT'},
- {'ip': '', 'name': 'PUBLICAPI'},
- {'ip': '', 'name': 'STORAGE'},
- {'ip': '', 'name': 'physnet1'}],
- 'ens9': [{'ip': '', 'name': 'HEARTBEAT'}]},
+ ({'ens8': [{'name': 'EXTERNAL'}],
+ 'ens3': [{'name': 'MANAGEMENT'},
+ {'name': 'PUBLICAPI'},
+ {'name': 'STORAGE'},
+ {'name': 'physnet1'}],
+ 'ens9': [{'name': 'HEARTBEAT'}]},
['all_in_one'],
{'MANAGEMENT': {'cidr': '10.20.11.0/24', 'gateway': '10.20.11.1',
'ip_ranges': [{'start': '10.20.11.3',