summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-02 01:34:12 +0000
committerGerrit Code Review <review@openstack.org>2012-08-02 01:34:12 +0000
commitfe21967c6afce187e250efc2976ecd0b06e724c8 (patch)
treecd3b600c981a4af5f7170120367692f903a15e1b /nova/tests
parent997250d43ee953ae25892213110b9a12860f8377 (diff)
parent9893c3eb5794e689736e881ec0551bdfeda48d8f (diff)
Merge "Remove agent_update from the compute manager."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/compute/test_compute.py20
-rw-r--r--nova/tests/test_virt_drivers.py6
2 files changed, 0 insertions, 26 deletions
diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py
index 4988a4be9..d59753d58 100644
--- a/nova/tests/compute/test_compute.py
+++ b/nova/tests/compute/test_compute.py
@@ -766,26 +766,6 @@ class ComputeTestCase(BaseTestCase):
self.compute.terminate_instance(self.context, instance=instance)
- def test_agent_update(self):
- """Ensure instance can have its agent updated"""
- called = {'agent_update': False}
-
- def fake_driver_agent_update(self2, instance, url, md5hash):
- called['agent_update'] = True
- self.assertEqual(url, 'http://fake/url/')
- self.assertEqual(md5hash, 'fakehash')
-
- self.stubs.Set(nova.virt.fake.FakeDriver, 'agent_update',
- fake_driver_agent_update)
-
- instance = self._create_fake_instance()
- self.compute.run_instance(self.context, instance['uuid'])
- self.compute.agent_update(self.context, instance['uuid'],
- 'http://fake/url/', 'fakehash')
- self.assertTrue(called['agent_update'])
- self.compute.terminate_instance(self.context,
- instance=jsonutils.to_primitive(instance))
-
def test_snapshot(self):
"""Ensure instance can be snapshotted"""
instance = jsonutils.to_primitive(self._create_fake_instance())
diff --git a/nova/tests/test_virt_drivers.py b/nova/tests/test_virt_drivers.py
index b724c2276..fb109731f 100644
--- a/nova/tests/test_virt_drivers.py
+++ b/nova/tests/test_virt_drivers.py
@@ -259,12 +259,6 @@ class _VirtDriverTestCase(_FakeDriverBackendTestCase):
base64.b64encode('testcontents'))
@catch_notimplementederror
- def test_agent_update(self):
- instance_ref, network_info = self._get_running_instance()
- self.connection.agent_update(instance_ref, 'http://www.openstack.org/',
- 'd41d8cd98f00b204e9800998ecf8427e')
-
- @catch_notimplementederror
def test_resume_state_on_host_boot(self):
instance_ref, network_info = self._get_running_instance()
self.connection.resume_state_on_host_boot(self.ctxt, instance_ref,