diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-05-02 19:26:06 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-05-02 19:26:06 +0000 |
| commit | 65f05c403e852cebeb7b052e36bbd129aedf4d4f (patch) | |
| tree | a68d2263bdd4b4e365e78b0e2cdb1ce9ac76a5ce /nova/tests | |
| parent | 46fc9dccf2d8666e6b64ad060b1deb4c3c591768 (diff) | |
| parent | 3be272f432b4385cf77787416762a360687a36bd (diff) | |
Implement get_host_ip_addr in the libvirt compute driver.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_virt.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py index 47432baef..1311ba361 100644 --- a/nova/tests/test_virt.py +++ b/nova/tests/test_virt.py @@ -646,6 +646,11 @@ class LibvirtConnTestCase(test.TestCase): self.assertTrue(count) + def test_get_host_ip_addr(self): + conn = libvirt_conn.LibvirtConnection(False) + ip = conn.get_host_ip_addr() + self.assertEquals(ip, FLAGS.my_ip) + def tearDown(self): self.manager.delete_project(self.project) self.manager.delete_user(self.user) |
