コード例 #1
0
ファイル: api_v1_1_tests.py プロジェクト: Carl-Shi/RackHD
    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!')
コード例 #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!')
コード例 #3
0
ファイル: poller_tests.py プロジェクト: cgx027/RackHD
    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)
コード例 #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)