Ejemplo n.º 1
0
    def setUp(self):
        """
        Startup the container and start the agent.
        """
        super(DataSetQualificationTestCase, self).setUp()

        self.instrument_agent_manager = InstrumentAgentClient()
        self.instrument_agent_manager.start_container(
            deploy_file=self.test_config.container_deploy_file)

        self.container = self.instrument_agent_manager.container

        gevent.sleep(5)
        log.debug("Packet Config: %s", self.test_config.agent_packet_config)
        self.data_subscribers = InstrumentAgentDataSubscribers(
            packet_config=self.test_config.agent_packet_config, )
        self.event_subscribers = InstrumentAgentEventSubscribers(
            instrument_agent_resource_id=self.test_config.agent_resource_id)

        self.init_dataset_agent_client()

        self.event_subscribers.events_received = []
        self.data_subscribers.start_data_subscribers()

        log.debug("********* setUp complete.  Begin Testing *********")

        self.addCleanup(self._end_test)
Ejemplo n.º 2
0
 def setUp(self):
     """
     Setup the test case
     """
     self.ia_client = InstrumentAgentClient()