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

tests: add kfp-ui test case in repo level integration tests #253

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
13 changes: 13 additions & 0 deletions tests/integration/test_kfp_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,16 @@ async def test_viz_server_healthcheck(ops_test: OpsTest):
result_status, result_text = await fetch_response(url=f"http://{url}:8888", headers=headers)

assert result_status == 200


# ---- KFP UI focused test cases
async def test_ui_server_healthcheck(ops_test: OpsTest):
"""Run a healthcheck on the ui server endpoint."""
status = await ops_test.model.get_status()
units = status["applications"]["kfp-ui"]["units"]
url = units["kfp-ui/0"]["address"]
headers = {"kubeflow-userid": "user"}
import pdb; pdb.set_trace()
result_status, result_text = await fetch_response(url=f"http://{url}:3000", headers=headers)

assert result_status == 200