Пример #1
0
 def test_hypervisor_setter(self):
     self.agent_config = AgentConfig(
         ["--config-path", self.agent_config_dir, "--hypervisor", "fake"])
     hypervisor = Hypervisor(self.agent_config)
     hypervisor.set_cpu_overcommit(2.0)
     assert_that(hypervisor.cpu_overcommit, equal_to(2.0))
     hypervisor.set_memory_overcommit(3.0)
     assert_that(hypervisor.memory_overcommit, equal_to(3.0))
Пример #2
0
 def test_hypervisor_setter(self):
     self.agent_config = AgentConfig(["--config-path",
                                     self.agent_config_dir,
                                     "--hypervisor", "fake"])
     hypervisor = Hypervisor(self.agent_config)
     hypervisor.set_cpu_overcommit(2.0)
     assert_that(hypervisor.cpu_overcommit, equal_to(2.0))
     hypervisor.set_memory_overcommit(3.0)
     assert_that(hypervisor.memory_overcommit, equal_to(3.0))