def test_search_by_name_flat_object(self):
        def action():
            return self.pv_service.find_vm_by_name(self.si, "DC0", "DC0_C0_RP10_VM24")

        self.logger.info(PERFORMANCE_TEST.format("find_vm_by_name", START))
        runner = PerfMethodWrapper(action, "search_by_name_flat_object", self.logger)
        runner.run(N_RUNS)
        self.logger.info(PERFORMANCE_TEST.format("find_vm_by_name", END))
    def test_find_by_uuid_without_path_nested_object(self):
        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_by_uuid(self.si, "4236d4e4-f36a-9bf5-1d61-7c31e9059cfc")

        self.logger.info(PERFORMANCE_TEST.format("test_find_by_uuid_without_path_nested_object", START))
        runner = PerfMethodWrapper(action, "test_find_by_uuid_without_path_nested_object", self.logger)
        runner.run(N_RUNS)
        self.logger.info(PERFORMANCE_TEST.format("test_find_by_uuid_without_path_nested_object", END))
    def test_find_by_name_nested_object(self):
        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_vm_by_name(self.si, "DC0/raz_test/raztest2/final", "DC0_C0_RP0_VM0")

        self.logger.info(PERFORMANCE_TEST.format("test_find_by_name_nested_object", START))
        runner = PerfMethodWrapper(action, "test_find_by_name_nested_object", self.logger)
        runner.run(N_RUNS)
        self.logger.info(PERFORMANCE_TEST.format("test_find_by_name_nested_object", END))
    def test_find_by_uuid_without_path_flat_object(self):
        def action():
            # vm name = DC0_C0_RP10_VM20
            return self.pv_service.find_by_uuid(self.si, "423634ae-0188-ff08-a60a-83f1b43a2cc4")

        self.logger.info(PERFORMANCE_TEST.format("test_find_by_uuid_without_path_flat_object", START))
        runner = PerfMethodWrapper(action, "test_find_by_uuid_without_path", self.logger)
        runner.run(N_RUNS)
        self.logger.info(PERFORMANCE_TEST.format("test_find_by_uuid_without_path_flat_object", END))
Example #5
0
    def test_search_by_name_flat_object(self):
        def action():
            return self.pv_service.find_vm_by_name(self.si, 'DC0',
                                                   'DC0_C0_RP10_VM24')

        self.logger.info(PERFORMANCE_TEST.format('find_vm_by_name', START))
        runner = PerfMethodWrapper(action, 'search_by_name_flat_object',
                                   self.logger)
        runner.run(N_RUNS)
        self.logger.info(PERFORMANCE_TEST.format('find_vm_by_name', END))
    def test_find_by_uuid_with_dc_path(self):
        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_by_uuid(self.si, '4236d4e4-f36a-9bf5-1d61-7c31e9059cfc', True, 'DC0')

        self.logger.info(PERFORMANCE_TEST.format('test_find_by_uuid_with_dc_path', START))
        runner = PerfMethodWrapper(action,
                                   'test_find_by_uuid_with_dc_path',
                                   self.logger)
        runner.run(N_RUNS)
        self.logger.info(PERFORMANCE_TEST.format('test_find_by_uuid_with_dc_path', END))
    def test_find_by_uuid_with_dc_object(self):
        dc = self.pv_service.find_item_in_path_by_type(self.si, "DC0", vim.Datacenter)

        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_by_uuid(self.si, "4236d4e4-f36a-9bf5-1d61-7c31e9059cfc", True, None, dc)

        self.logger.info(PERFORMANCE_TEST.format("test_find_by_uuid_with_dc_object", START))
        runner = PerfMethodWrapper(action, "test_find_by_uuid_with_dc_object", self.logger)
        runner.run(N_RUNS)
        self.logger.info(PERFORMANCE_TEST.format("test_find_by_uuid_with_dc_object", END))
    def test_find_by_uuid_flat_obj_with_dc_object(self):
        dc = self.pv_service.find_item_in_path_by_type(self.si, "DC0", vim.Datacenter)

        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_by_uuid(self.si, "423634ae-0188-ff08-a60a-83f1b43a2cc4", True, None, dc)

        self.logger.info(PERFORMANCE_TEST.format("test_find_by_uuid_flat_obj_with_dc_object", START))
        runner = PerfMethodWrapper(action, "test_find_by_uuid_flat_obj_with_dc_object", self.logger)
        runner.run(N_RUNS)
        self.logger.info(PERFORMANCE_TEST.format("test_find_by_uuid_flat_obj_with_dc_object", END))
Example #9
0
    def test_find_by_name_nested_object(self):
        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_vm_by_name(
                self.si, 'DC0/raz_test/raztest2/final', 'DC0_C0_RP0_VM0')

        self.logger.info(
            PERFORMANCE_TEST.format('test_find_by_name_nested_object', START))
        runner = PerfMethodWrapper(action, 'test_find_by_name_nested_object',
                                   self.logger)
        runner.run(N_RUNS)
        self.logger.info(
            PERFORMANCE_TEST.format('test_find_by_name_nested_object', END))
Example #10
0
    def test_find_by_uuid_with_dc_path(self):
        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_by_uuid(
                self.si, '4236d4e4-f36a-9bf5-1d61-7c31e9059cfc', True, 'DC0')

        self.logger.info(
            PERFORMANCE_TEST.format('test_find_by_uuid_with_dc_path', START))
        runner = PerfMethodWrapper(action, 'test_find_by_uuid_with_dc_path',
                                   self.logger)
        runner.run(N_RUNS)
        self.logger.info(
            PERFORMANCE_TEST.format('test_find_by_uuid_with_dc_path', END))
Example #11
0
    def test_find_by_uuid_without_path_flat_object(self):
        def action():
            # vm name = DC0_C0_RP10_VM20
            return self.pv_service.find_by_uuid(
                self.si, '423634ae-0188-ff08-a60a-83f1b43a2cc4')

        self.logger.info(
            PERFORMANCE_TEST.format(
                'test_find_by_uuid_without_path_flat_object', START))
        runner = PerfMethodWrapper(action, 'test_find_by_uuid_without_path',
                                   self.logger)
        runner.run(N_RUNS)
        self.logger.info(
            PERFORMANCE_TEST.format(
                'test_find_by_uuid_without_path_flat_object', END))
Example #12
0
    def test_find_by_uuid_with_dc_object(self):
        dc = self.pv_service.find_item_in_path_by_type(self.si, 'DC0',
                                                       vim.Datacenter)

        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_by_uuid(
                self.si, '4236d4e4-f36a-9bf5-1d61-7c31e9059cfc', True, None,
                dc)

        self.logger.info(
            PERFORMANCE_TEST.format('test_find_by_uuid_with_dc_object', START))
        runner = PerfMethodWrapper(action, 'test_find_by_uuid_with_dc_object',
                                   self.logger)
        runner.run(N_RUNS)
        self.logger.info(
            PERFORMANCE_TEST.format('test_find_by_uuid_with_dc_object', END))
Example #13
0
    def test_find_by_uuid_flat_obj_with_dc_object(self):
        dc = self.pv_service.find_item_in_path_by_type(self.si, 'DC0',
                                                       vim.Datacenter)

        def action():
            # vm name = DC0_C0_RP0_VM0
            return self.pv_service.find_by_uuid(
                self.si, '423634ae-0188-ff08-a60a-83f1b43a2cc4', True, None,
                dc)

        self.logger.info(
            PERFORMANCE_TEST.format(
                'test_find_by_uuid_flat_obj_with_dc_object', START))
        runner = PerfMethodWrapper(
            action, 'test_find_by_uuid_flat_obj_with_dc_object', self.logger)
        runner.run(N_RUNS)
        self.logger.info(
            PERFORMANCE_TEST.format(
                'test_find_by_uuid_flat_obj_with_dc_object', END))