Merge "Adds get_available_resource to hyperv driver"

This commit is contained in:
Jenkins
2012-09-10 17:03:41 +00:00
committed by Gerrit Code Review
4 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ Test suite for the Hyper-V driver and related APIs.
"""
import os
import platform
import shutil
import sys
import uuid
@@ -151,6 +152,11 @@ class HyperVAPITestCase(basetestcase.BaseTestCase):
finally:
super(HyperVAPITestCase, self).tearDown()
def test_get_available_resource(self):
dic = self._conn.get_available_resource()
self.assertEquals(dic['hypervisor_hostname'], platform.node())
def test_list_instances(self):
num_vms = self._hypervutils.get_vm_count()
instances = self._conn.list_instances()