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/validate.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/validate.py')
-rw-r--r-- | clover/logging/validate.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clover/logging/validate.py b/clover/logging/validate.py index 821f912..aca0394 100644 --- a/clover/logging/validate.py +++ b/clover/logging/validate.py @@ -9,6 +9,8 @@ from kubernetes import client, config from kubernetes.stream import stream import sh import re +import os +import pytest FLUENTD_NAMESPACE = 'logging' FLUENTD_PATTERN = 'fluentd-.*' @@ -54,3 +56,4 @@ def main(): if __name__ == '__main__': main() + pytest.main([os.path.dirname(os.path.realpath(__file__))]) |