Revision b705c7a6 test/ganeti.backend_unittest.py
b/test/ganeti.backend_unittest.py | ||
---|---|---|
74 | 74 |
class TestNodeVerify(testutils.GanetiTestCase): |
75 | 75 |
def testMasterIPLocalhost(self): |
76 | 76 |
# this a real functional test, but requires localhost to be reachable |
77 |
local_data = (netutils.HostInfo().name, constants.IP4_ADDRESS_LOCALHOST) |
|
77 |
local_data = (netutils.Hostname.GetSysName(), |
|
78 |
constants.IP4_ADDRESS_LOCALHOST) |
|
78 | 79 |
result = backend.VerifyNode({constants.NV_MASTERIP: local_data}, None) |
79 | 80 |
self.failUnless(constants.NV_MASTERIP in result, |
80 | 81 |
"Master IP data not returned") |
Also available in: Unified diff