예제 #1
0
def _test_vm_power_on():
    """Ensures power button is shown for a VM"""
    logger.info("Checking for power button")
    vm_name = virtual_machines.get_first_vm_title()
    logger.debug("VM " + vm_name + " selected")
    if not virtual_machines.is_pwr_option_visible(vm_name, option=virtual_machines.Vm.POWER_ON):
        raise OptionNotAvailable("Power button does not exist")
예제 #2
0
def _test_vm_power_on():
    """Ensures power button is shown for a VM"""
    logger.info("Checking for power button")
    vm_name = vms.Vm.get_first_vm_title()
    logger.debug("VM " + vm_name + " selected")
    if not vms.is_pwr_option_visible(vm_name, option=vms.Vm.POWER_ON):
        raise OptionNotAvailable("Power button does not exist")