diff options
| author | Josh Kearney <josh@jk0.org> | 2011-09-13 21:54:40 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-09-13 21:54:40 +0000 |
| commit | a565f3abd7fb7c5b10ea6942823aadd68fffada1 (patch) | |
| tree | ac7b285650455b6ad5394b8dad7559831494bc6a /nova/tests | |
| parent | 462635a8aa6301b79023e8232b20a0f753c0d24a (diff) | |
| parent | 98e2fd764b33fa5a3af6ca982a171717a12ee206 (diff) | |
Only allow up to 15 chars for a Windows hostname.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_xenapi.py | 3 |
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: |
