summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-09-13 15:33:34 -0500
committerJosh Kearney <josh@jk0.org>2011-09-13 15:33:34 -0500
commit98e2fd764b33fa5a3af6ca982a171717a12ee206 (patch)
tree205ab5730417c5c5f51ec2f4108e685bea1f922a /nova/tests
parent3f92fc99c23b0cc17f31ff9d988733abac98028a (diff)
Only allow up to 15 chars for a Windows hostname.
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_xenapi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index 4a83d139e..47c6a3c95 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -364,7 +364,7 @@ class XenAPIVMTestCase(test.TestCase):
def _test_spawn(self, image_ref, kernel_id, ramdisk_id,
instance_type_id="3", os_type="linux",
- architecture="x86-64", instance_id=1,
+ hostname="test", architecture="x86-64", instance_id=1,
check_injection=False,
create_record=True, empty_dns=False):
stubs.stubout_loopingcall_start(self.stubs)
@@ -377,6 +377,7 @@ class XenAPIVMTestCase(test.TestCase):
'ramdisk_id': ramdisk_id,
'instance_type_id': instance_type_id,
'os_type': os_type,
+ 'hostname': hostname,
'architecture': architecture}
instance = db.instance_create(self.context, values)
else: