summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2011-02-17 15:36:10 -0800
committerJustin Santa Barbara <justin@fathomdb.com>2011-02-17 15:36:10 -0800
commitffa40f37662864ed0e40bd0239f75e48d4b73a6a (patch)
tree7bffff9a3e00b7574e31636ccfe50beecd88ea67 /nova/tests
parent9a7213b615bcaa2127f76146d594f5247ea0d0a4 (diff)
parent76a82e57dfbca67e1e70a12db4f4b5c2111e4d93 (diff)
Merged with trunk
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_compute.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py
index 2aa0690e7..b049ac943 100644
--- a/nova/tests/test_compute.py
+++ b/nova/tests/test_compute.py
@@ -202,6 +202,14 @@ class ComputeTestCase(test.TestCase):
self.compute.set_admin_password(self.context, instance_id)
self.compute.terminate_instance(self.context, instance_id)
+ def test_inject_file(self):
+ """Ensure we can write a file to an instance"""
+ instance_id = self._create_instance()
+ self.compute.run_instance(self.context, instance_id)
+ self.compute.inject_file(self.context, instance_id, "/tmp/test",
+ "File Contents")
+ self.compute.terminate_instance(self.context, instance_id)
+
def test_snapshot(self):
"""Ensure instance can be snapshotted"""
instance_id = self._create_instance()