-
Notifications
You must be signed in to change notification settings - Fork 3
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
Dockerfile and test for Hub cluster part #5
Conversation
Signed-off-by: Carlos Cardenosa <[email protected]>
tests/pytest/ztp-left-shifting/sno-hub/check-hub-installation.py
Outdated
Show resolved
Hide resolved
{"cmd": f"oc --kubeconfig {kubeconfig} whoami --show-console", "response": 200}, | ||
{"cmd": f"oc --kubeconfig {kubeconfig} get managedcluster local-cluster -ojsonpath='{{.spec.managedClusterClientConfigs[0].url}}'", "response": 403}, | ||
]) | ||
def test_http_endpoint(bash, endpoint): |
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.
Maybe it's missing bash fixture?
{"cmd": f"oc --kubeconfig {kubeconfig} whoami --show-console", "response": 200}, | ||
{"cmd": f"oc --kubeconfig {kubeconfig} get managedcluster local-cluster -ojsonpath='{{.spec.managedClusterClientConfigs[0].url}}'", "response": 403}, | ||
]) | ||
def test_http_endpoint(bash, endpoint): |
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's not so clear why you need to use parameterize here.
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.
As I said before, I just moved the code that was previously in the Openshift-CI step here for a conceptual test. At the moment I'm not that interested in this test being really very comprehensive, just that it works.
When we have the Openshift-CI part integrated, we can come back to this and discuss what tests to run to ensure that the Hub cluster and its components have been correctly installed.
My idea is that, later on, we can adjust the tests to run from eco-ci-cd.
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.
Sounds good
Co-authored-by: Nati Fridman <[email protected]>
Thanks for your comments @natifridman |
These changes will be used by Prow to deploy and verify the Hub cluster part.