コード例 #1
0
ファイル: vm_tests.py プロジェクト: bobross419/pyvcloud
 def test_0170_customize_at_next_poer_on(self):
     """Test the method related to customize_at_next_power_on in vm.py.
     This test passes if customize at next power on operation is successful.
     """
     logger = Environment.get_default_logger()
     vm_name = TestVM._test_vapp_first_vm_name
     vm = VM(TestVM._sys_admin_client, href=TestVM._test_vapp_first_vm_href)
     vm.reload()
     vm.customize_at_next_power_on()
コード例 #2
0
 def test_0170_customize_at_next_power_on(self):
     """Test the method related to customize_at_next_power_on in vm.py.
     This test passes if customize at next power on operation is successful.
     """
     logger = Environment.get_default_logger()
     vm_name = TestVM._test_vapp_first_vm_name
     vm = VM(TestVM._sys_admin_client, href=TestVM._test_vapp_first_vm_href)
     vm.reload()
     vm.customize_at_next_power_on()
     task = vm.power_on()
     TestVM._sys_admin_client. \
         get_task_monitor().wait_for_success(task=task)
     status = vm.get_guest_customization_status()
     self.assertEqual(status, 'GC_PENDING')