예제 #1
0
    def setUp(cls):
        cls.hypervisor_json = """
        {
            "hypervisors":[
                {
                "service":
                {
                    "host":"parentcell",
                    "id":"7"
                },
                "vcpus_used":"2",
                "hypervisor_type":"xen",
                "local_gb_used":"21",
                "hypervisor_hostname":"hypervisor_test",
                "memory_mb_used":"4608",
                "memory_mb":"12285",
                "current_workload":"0",
                "vcpus":"0",
                "cpu_info": "2",
                "running_vms":"2",
                "free_disk_gb":"888",
                "hypervisor_version":"6000000",
                "disk_available_least":"None",
                "local_gb":"909",
                "free_ram_mb":"7677",
                "id":"1"
                }
            ]
        }"""

        cls.hypervisors = Hypervisors.deserialize(cls.hypervisor_json, "json")
예제 #2
0
    def setUp(cls):
        cls.hypervisor_json = """
        {
            "hypervisors":[
                {
                "service":
                {
                    "host":"parentcell",
                    "id":"7"
                },
                "vcpus_used":"2",
                "hypervisor_type":"xen",
                "local_gb_used":"21",
                "hypervisor_hostname":"hypervisor_test",
                "memory_mb_used":"4608",
                "memory_mb":"12285",
                "current_workload":"0",
                "vcpus":"0",
                "cpu_info": "2",
                "running_vms":"2",
                "free_disk_gb":"888",
                "hypervisor_version":"6000000",
                "disk_available_least":"None",
                "local_gb":"909",
                "free_ram_mb":"7677",
                "id":"1"
                }
            ]
        }"""

        cls.hypervisors = Hypervisors.deserialize(cls.hypervisor_json, "json")
예제 #3
0
 def setUp(cls):
     cls.hypervisor_xml = """<?xml version="1.0" encoding="UTF-8"?>
     <hypervisors>
             <hypervisor
                 vcpus_used="2" hypervisor_type="xen"
                 local_gb_used="21" hypervisor_hostname="hypervisor_test"
                 memory_mb_used="4608" memory_mb="12285"
                 current_workload="0" vcpus="0" cpu_info="2"
                 running_vms="2" free_disk_gb="888"
                 hypervisor_version="6000000" disk_available_least="None"
                 local_gb="909" free_ram_mb="7677" id="1">
                     <service host="parentcell" id="7" />
             </hypervisor>
     </hypervisors>"""
     cls.hypervisors = Hypervisors.deserialize(cls.hypervisor_xml, "xml")
예제 #4
0
 def setUp(cls):
     cls.hypervisor_xml = """<?xml version="1.0" encoding="UTF-8"?>
     <hypervisors>
             <hypervisor
                 vcpus_used="2" hypervisor_type="xen"
                 local_gb_used="21" hypervisor_hostname="hypervisor_test"
                 memory_mb_used="4608" memory_mb="12285"
                 current_workload="0" vcpus="0" cpu_info="2"
                 running_vms="2" free_disk_gb="888"
                 hypervisor_version="6000000" disk_available_least="None"
                 local_gb="909" free_ram_mb="7677" id="1">
                     <service host="parentcell" id="7" />
             </hypervisor>
     </hypervisors>"""
     cls.hypervisors = Hypervisors.deserialize(cls.hypervisor_xml, "xml")