def test_Connection_to_ADV_Query_API(self): self.config['DATA'] = 'adv' request = testRunnerHelper.build_query_request(self.config) self.run_query_test(request, dataType='isd', min_queue=25, min_records=25)
def test_Connection_to_MAP_Query_API(self): self.config['DATA'] = 'map' request = testRunnerHelper.build_query_request(self.config, dataSource="SDW") self.run_query_test(request, dataType='isd', min_queue=25, min_records=25)
def test_Connection_to_Aggregate_Query_API(self): self.config['DATA'] = 'agg' self.config['LIMIT'] = 25 request = testRunnerHelper.build_query_request(self.config) testRunnerHelper.build_road_Segment(request, self.config) self.run_query_test(request, min_queue=4, min_records=3, limit=self.config['LIMIT'])
def test_Connection_to_Intersection_Query_API_SDW(self): self.config['DATA'] = 'int' request = testRunnerHelper.build_query_request(self.config, dataSource="SDW") self.run_query_test(request, dataType='isd', min_queue=5, min_records=5, timeOut=90)
def create_asyncClient_and_request(self, the_config, **kwargs): ode = client.ODEClient(the_config['HOST']) ode.get_token(the_config['USERNAME'], the_config['PASSWORD']) asycODE = client.AsyncODEClient(odeClient=ode) if the_config['REQUEST_TYPE'] in [ 'sub', ]: request = testRunnerHelper.build_subscription_request( the_config, **kwargs) else: request = testRunnerHelper.build_query_request( the_config, **kwargs) self.logger.info("Request: %s", request.toJson()) asycODE.setRequest(request) return asycODE
def test_Connection_to_Vehicle_Query_API_SDW(self): self.config['DATA'] = 'veh' request = testRunnerHelper.build_query_request(self.config, dataSource="SDW") self.run_query_test(request, min_queue=5, min_records=5, limit=250)
def test_Connection_to_ADV_Query_SDW_API(self): self.config['DATA'] = 'adv' request = testRunnerHelper.build_query_request(self.config, dataSource="SDW") self.run_query_test(request, min_queue=15, min_records=15)