Ejemplo n.º 1
0
    def _prepare_case_env(self):
        self.node_count = self.__check_compute_count()
        self.case_recorder.write_interval(ansible_ctl.get_data_interval())
        self.case_recorder.write_start()
        self.case_recorder.write_node_number(self.node_count)

        assert_equal(True, ansible_ctl.start_daemon(), \
                    message='Failed to start data collection daemon!')
Ejemplo n.º 2
0
    def _prepare_case_env(self):
        self.__node_count = self.__check_compute_count()
        self.case_recorder.write_interval(ansible_ctl.get_data_interval())
        self.case_recorder.write_start()
        self.case_recorder.write_node_number(self.__node_count)

        assert_equal(True, ansible_ctl.start_daemon(), \
                    message='Failed to start data collection daemon!')
Ejemplo n.º 3
0
    def test_runtime(self):
        """ Testing footprint scenario: poller """
        self.__case_recorder.write_interval(ansible_ctl.get_data_interval())
        self.__case_recorder.write_start()

        assert_equal(True, ansible_ctl.start_daemon(), \
                    message='Failed to start data collection daemon!')

        # Run test scenario
        # In this case, wait for 15 mins to let RackHD run pollers
        LOG.info('Start test case...')
        time.sleep(900)
        LOG.info('End test case. Fetch log...')

        assert_equal(True, ansible_ctl.collect_data(), message='Failed to collect footprint data!')
        self.__case_recorder.write_end()

        parser.parse(self.__data_path)
Ejemplo n.º 4
0
    def test_runtime(self):
        """ Testing footprint scenario: poller """
        self.__case_recorder.write_interval(ansible_ctl.get_data_interval())
        self.__case_recorder.write_start()

        assert_equal(True, ansible_ctl.start_daemon(), \
                    message='Failed to start data collection daemon!')

        # Run test scenario
        # In this case, wait for 15 mins to let RackHD run pollers
        LOG.info('Start test case...')
        time.sleep(900)
        LOG.info('End test case. Fetch log...')

        assert_equal(True,
                     ansible_ctl.collect_data(),
                     message='Failed to collect footprint data!')
        self.__case_recorder.write_end()

        parser.parse(self.__data_path)