From 0b7c70606154366c2cfb8f6517f38896a5ed4485 Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Wed, 7 Aug 2024 12:03:32 +0200 Subject: [PATCH] tests: use dex-auth svc DNS name as public-url For CKF 1.8, dex-auth and oidc-gatekeeper's public-url config option can be set to http://dex-auth.kubeflow.svc:5556, this is because the whole authentication process is done internally in the cluster with dex-auth as an IdP and oidc-gatekeeper as an OIDC client. --- tests/integration/test_bundle_deployment.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_bundle_deployment.py b/tests/integration/test_bundle_deployment.py index b874e9b2..e7076737 100644 --- a/tests/integration/test_bundle_deployment.py +++ b/tests/integration/test_bundle_deployment.py @@ -47,9 +47,11 @@ async def test_bundle_deployment_works(self, ops_test: OpsTest, lightkube_client raise_on_error=False, timeout=1500, ) + + dex_svc_dns_name = "http://dex-auth.kubeflow.svc:5556" - await ops_test.model.applications["dex-auth"].set_config({"public-url": url}) - await ops_test.model.applications["oidc-gatekeeper"].set_config({"public-url": url}) + await ops_test.model.applications["dex-auth"].set_config({"public-url": dex_svc_dns_name}) + await ops_test.model.applications["oidc-gatekeeper"].set_config({"public-url": dex_svc_dns_name}) # Wait for the whole bundle to become active and idle await ops_test.model.wait_for_idle(