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

Dockerfile and test for Hub cluster part #5

Merged
merged 2 commits into from
Sep 2, 2024
Merged

Conversation

ccardenosa
Copy link
Collaborator

These changes will be used by Prow to deploy and verify the Hub cluster part.

@ccardenosa ccardenosa self-assigned this Sep 2, 2024
{"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):
Copy link
Collaborator

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

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good

@ccardenosa
Copy link
Collaborator Author

Thanks for your comments @natifridman

@ccardenosa ccardenosa merged commit 511ba53 into main Sep 2, 2024
1 check passed
@ccardenosa ccardenosa deleted the left-shift-telco-hub branch September 2, 2024 13:49
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