Converting network methods to use instance objects

Related to blueprint internal-uuids

Change-Id: I04f8f855411658674441a8d0cb7b589dee8b36fa
This commit is contained in:
Brian Waldon
2011-11-10 22:21:00 -05:00
parent f27d7b076a
commit 6b554713c7

View File

@@ -2008,6 +2008,19 @@ class ComputeAPITestCase(BaseTestCase):
instance_id = self._create_instance()
instance = self.compute_api.get(self.context, instance_id)
self.compute_api.attach_volume(self.context, instance, 1, '/dev/vdb')
def test_inject_network_info(self):
instance_id = self._create_instance()
self.compute.run_instance(self.context, instance_id)
instance = self.compute_api.get(self.context, instance_id)
self.compute_api.inject_network_info(self.context, instance)
self.compute_api.delete(self.context, instance)
def test_reset_network(self):
instance_id = self._create_instance()
self.compute.run_instance(self.context, instance_id)
instance = self.compute_api.get(self.context, instance_id)
self.compute_api.reset_network(self.context, instance)
self.compute_api.delete(self.context, instance)
def test_inject_file(self):