def __init__(self, host, test_id, debug=False):
"""
param host: the elasticsearch host
test_id: id of the test to which we are reqstricting the queires
"""
self._es = Elasticsearch(host)
self._id = test_id
self.debug=debug
self.functiondict = {
'no_proxy_errors' : self.check_no_proxy_errors,
'bounded_response_time' : self.check_bounded_response_time,
'http_success_status' : self.check_http_success_status,
'http_status' : self.check_http_status,
# 'reachability' : self.check_reachability,
'bounded_retries' : self.check_bounded_retries,
'circuit_breaker' : self.check_circuit_breaker,
'at_most_requests': self.check_at_most_requests
}
assertionchecker.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录