bug 1024557

De-dupes the list of DNS IPs that is put in the xenstore for network configuration

Added a duplicate DNS IP in the fake_network to create a valid test.

Change-Id: I25a00c7e47578b1667992aa4bad879667198465a
This commit is contained in:
Troy Toman
2012-07-13 17:22:23 -05:00
parent 21330329b4
commit 84bf198cbb

View File

@@ -435,7 +435,7 @@ class XenAPIVMTestCase(stubs.XenAPITestBase):
tcpip_data = ast.literal_eval(xenstore_value)
self.assertEquals(tcpip_data,
{'broadcast': '192.168.1.255',
'dns': ['192.168.1.3', '192.168.1.4'],
'dns': ['192.168.1.4', '192.168.1.3'],
'gateway': '192.168.1.1',
'gateway_v6': 'fe80::def',
'ip6s': [{'enabled': '1',