Esempio n. 1
0
 def test_check_boot_time(self):
     """
     check if there's boot time delay
     """
     max_boot_time = 60
     boot_time_sec = utils_lib.getboottime(self)
     utils_lib.compare_nums(self, num1=boot_time_sec, num2=max_boot_time, ratio=0, msg="Compare with cfg specified max_boot_time")
Esempio n. 2
0
 def test_check_boot_time(self):
     '''
     polarion_id: RHEL7-93100
     bz: 1776710
     check the boot time.
     '''
     max_boot_time = self.params.get('max_boot_time')
     boot_time_sec = utils_lib.getboottime(self)
     utils_lib.compare_nums(self,
                            num1=boot_time_sec,
                            num2=max_boot_time,
                            ratio=0,
                            msg="Compare with cfg specified max_boot_time")
Esempio n. 3
0
 def test_check_reboot_time(self):
     """
     case_tag:
         GeneralVerification
     case_name:
         test_check_reboot_time
     case_file:
         os_tests.tests.test_nutanix_vm.test_check_reboot_time
     component:
         GeneralVerification
     bugzilla_id:
         N/A
     is_customer_case:
         False
     customer_case_id:
         N/A
     testplan:
         N/A
     maintainer:
         [email protected]
     description:
         Verify VM reboot time
     key_steps: |
         1. Reboot VM gracefully
         1. Get system boot time via "systemd-analyze"
         2. Compare with acpi_reboot in nutanix.yaml
     expect_result:
         Boot time less than acpi_reboot in nutanix.yaml
     debug_want:
         systemd-analyze
     debug_want:
         N/A
     """
     self.vm.reboot(wait=True)
     utils_lib.init_connection(self)
     reboot_time = self.vm.params['BootTime']['acpi_reboot']
     boot_time_sec = utils_lib.getboottime(self)
     utils_lib.compare_nums(self,
                            num1=boot_time_sec,
                            num2=reboot_time,
                            ratio=0,
                            msg="Compare with cfg specified reboot_time")
Esempio n. 4
0
 def test_check_firstlaunch_time(self):
     """
     case_tag:
         GeneralVerification
     case_name:
         test_check_firstlaunch_time
     case_file:
         os_tests.tests.test_nutanix_vm.test_check_firstlaunch_time
     component:
         GeneralVerification
     bugzilla_id:
         N/A
     is_customer_case:
         False
     customer_case_id:
         N/A
     testplan:
         N/A
     maintainer:
         [email protected]
     description:
         Verify VM first launch time
     key_steps: |
         1. Get system boot time via "systemd-analyze"
         2. Compare with first_launch in nutanix.yaml
     expect_result:
         Boot time less than first_launch in nutanix.yaml
     debug_want:
         systemd-analyze
     debug_want:
         N/A
     """
     firstlaunch_time = self.vm.params['BootTime']['first_launch']
     boot_time_sec = utils_lib.getboottime(self)
     utils_lib.compare_nums(
         self,
         num1=boot_time_sec,
         num2=firstlaunch_time,
         ratio=0,
         msg="Compare with cfg specified firstlaunch_time")