Add test for agent update

This commit is contained in:
Johannes Erdfelt
2011-06-09 22:04:32 +00:00
parent 7612141d8f
commit 11e295b8cb

View File

@@ -266,6 +266,14 @@ class ComputeTestCase(test.TestCase):
"File Contents") "File Contents")
self.compute.terminate_instance(self.context, instance_id) self.compute.terminate_instance(self.context, instance_id)
def test_agent_update(self):
"""Ensure instance can have its agent updated"""
instance_id = self._create_instance()
self.compute.run_instance(self.context, instance_id)
self.compute.agent_update(self.context, instance_id,
'http://127.0.0.1/agent', '00112233445566778899aabbccddeeff')
self.compute.terminate_instance(self.context, instance_id)
def test_snapshot(self): def test_snapshot(self):
"""Ensure instance can be snapshotted""" """Ensure instance can be snapshotted"""
instance_id = self._create_instance() instance_id = self._create_instance()