Skip to content
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

Closed
wants to merge 11 commits into from
Closed

Conversation

satish-nubolab
Copy link
Contributor

#21 Add keyword for cluster health check

src/KubeLibrary/KubeLibrary.py Outdated Show resolved Hide resolved
@@ -3,6 +3,8 @@
import ssl
import urllib3
from kubernetes import client, config
import requests
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request module removed.

@@ -11,27 +13,19 @@

class KubeLibrary(object):
"""KubeLibrary is a Robot Framework test library for Kubernetes.

Copy link
Collaborator

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.

Copy link
Contributor Author

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
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@satish-nubolab
Copy link
Contributor Author

Incorporated all review comments.

@m-wcislo m-wcislo mentioned this pull request Feb 23, 2021
@satish-nubolab satish-nubolab deleted the health_check branch February 26, 2021 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants