diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2018-04-17 16:28:38 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2018-04-17 16:33:10 +0800 |
commit | 2ecbe8435b9f158633243b39503a9a418bec8b96 (patch) | |
tree | 1be227b06f453c808d1c6d6531b6192fdb1d71ec /clover/logging/conftest.py | |
parent | 867c4309a10df56eeb5098a78956e5d6951b8ba4 (diff) |
Cover validation of elasticsearch cluster
- cluster health is not red
- indics found
- log entry created by istio found
- requests in and out http load balance matches
pytest is used as the test runner and wrapped in `validate.py`
Change-Id: Iad540b69d05118fadc97df679cf3424513c15e38
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'clover/logging/conftest.py')
-rw-r--r-- | clover/logging/conftest.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clover/logging/conftest.py b/clover/logging/conftest.py new file mode 100644 index 0000000..d464fab --- /dev/null +++ b/clover/logging/conftest.py @@ -0,0 +1,15 @@ +# Copyright (c) Authors of Clover +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 + +from elasticsearch import Elasticsearch +import pytest + +ES_HOST="localhost:9200" + +@pytest.fixture +def es(): + return Elasticsearch([ES_HOST]) |