From 00c77e0e9af6ae16484e4bee5f33de1eeb812227 Mon Sep 17 00:00:00 2001 From: Armando Migliaccio Date: Mon, 13 Feb 2012 18:46:57 +0000 Subject: bug 931604: improve how xenapi RRD records are retrieved switch to using FLAGS.xenapi_connection_url to obtain scheme and address to talk to in order to fetch RRD XMLs. See bug report for more info. Change-Id: Iad6520cdb15f32e9e50ab0d42026282e57aaa30d --- nova/tests/test_xenapi.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nova/tests') diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py index 6fc7fdf7d..9423c3f1f 100644 --- a/nova/tests/test_xenapi.py +++ b/nova/tests/test_xenapi.py @@ -236,6 +236,12 @@ class XenAPIVMTestCase(test.TestCase): instances = self.conn.list_instances() self.assertEquals(instances, []) + def test_get_rrd_server(self): + self.flags(xenapi_connection_url='myscheme://myaddress/') + server_info = vm_utils.get_rrd_server() + self.assertEqual(server_info[0], 'myscheme') + self.assertEqual(server_info[1], 'myaddress') + def test_get_diagnostics(self): instance = self._create_instance() self.conn.get_diagnostics(instance) -- cgit