summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2018-03-30 13:46:41 +0800
committerAlex Yang <yangyang1@zte.com.cn>2018-03-30 13:46:41 +0800
commitcfb75182ab0ac2800d556197703847d0d37b2d15 (patch)
tree1f5aca3f70e7825badf2d22909d33255d8970760
parent443488e6af0aa1a82997907cf7a426863eb4a157 (diff)
Fix unit test for number of hugepages
Change-Id: I2c7c2a9d38ed0789710ef6af371cb6663d7433cc Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
-rw-r--r--tests/unit/test_tempest.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/test_tempest.py b/tests/unit/test_tempest.py
index 9a70aec5..3c616bcd 100644
--- a/tests/unit/test_tempest.py
+++ b/tests/unit/test_tempest.py
@@ -218,7 +218,7 @@ def test_update_hosts_interface(isbare, tmpdir):
'interfaces': [{'name': 'ens8', 'mac': '11:11:11:11:11:11',
'assigned_networks': [{'ip': '', 'name': 'EXTERNAL'}]}],
'hugepagesize': '1G',
- 'hugepages': '20',
+ 'hugepages': '80',
}
assert client.hosts.get(host_id2).metadata == {
'id': host_id2, 'name': 'controller02', 'cluster_id': cluster_id,
@@ -232,7 +232,7 @@ def test_update_hosts_interface(isbare, tmpdir):
{'ip': '', 'name': 'physnet1'}],
'vswitch_type': 'dvs'}],
'hugepagesize': '1G',
- 'hugepages': '20',
+ 'hugepages': '80',
}
assert client.hosts.get(host_id3).metadata == {
'id': host_id3, 'name': 'computer01', 'cluster_id': cluster_id,
@@ -241,7 +241,7 @@ def test_update_hosts_interface(isbare, tmpdir):
'interfaces': [{'name': 'ens9', 'mac': '33:33:33:33:33:33',
'assigned_networks': [{'ip': '', 'name': 'HEARTBEAT'}]}],
'hugepagesize': '1G',
- 'hugepages': '20',
+ 'hugepages': '80',
}
else:
assert client.hosts.get(host_id1).metadata == {
@@ -250,7 +250,7 @@ def test_update_hosts_interface(isbare, tmpdir):
'interfaces': [{'name': 'ens8', 'mac': '11:11:11:11:11:11',
'assigned_networks': [{'ip': '', 'name': 'EXTERNAL'}]}],
'hugepagesize': '1G',
- 'hugepages': '20',
+ 'hugepages': '80',
}
assert client.hosts.get(host_id2).metadata == {
'id': host_id2, 'name': 'controller02', 'cluster_id': cluster_id,
@@ -263,7 +263,7 @@ def test_update_hosts_interface(isbare, tmpdir):
{'ip': '', 'name': 'physnet1'}],
'vswitch_type': 'dvs'}],
'hugepagesize': '1G',
- 'hugepages': '20',
+ 'hugepages': '80',
}
assert client.hosts.get(host_id3).metadata == {
'id': host_id3, 'name': 'computer01', 'cluster_id': cluster_id,
@@ -271,7 +271,7 @@ def test_update_hosts_interface(isbare, tmpdir):
'interfaces': [{'name': 'ens9', 'mac': '33:33:33:33:33:33',
'assigned_networks': [{'ip': '', 'name': 'HEARTBEAT'}]}],
'hugepagesize': '1G',
- 'hugepages': '20',
+ 'hugepages': '80',
}
tmpdir.remove()