-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Health check #37
Health check #37
Conversation
src/KubeLibrary/KubeLibrary.py
Outdated
@@ -3,6 +3,8 @@ | |||
import ssl | |||
import urllib3 | |||
from kubernetes import client, config | |||
import requests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requests is not needed, see the comment below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request module removed.
src/KubeLibrary/KubeLibrary.py
Outdated
@@ -11,27 +13,19 @@ | |||
|
|||
class KubeLibrary(object): | |||
"""KubeLibrary is a Robot Framework test library for Kubernetes. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please leave those empty lines as they improve readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
*** Keywords *** | ||
Healthcheck | ||
${output}= Get Healthcheck | ||
Log \nHealthcheck ${output}: console=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if your example keyword could also verify if all checks have passed with ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Evaluated the response and verified if all checks have passed with ok.
Incorporated all review comments. |
#21 Add keyword for cluster health check