From bdc45030adaadc4af72e7afeb8cbf3d0bc965cbd Mon Sep 17 00:00:00 2001 From: Ilias Rinis Date: Thu, 3 Oct 2024 10:34:10 +0200 Subject: [PATCH] e2e: use url-friendly provider name --- test/e2e/templates_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/templates_test.go b/test/e2e/templates_test.go index 47d8b02956..4b98d60ca8 100644 --- a/test/e2e/templates_test.go +++ b/test/e2e/templates_test.go @@ -55,7 +55,7 @@ func TestTemplatesConfig(t *testing.T) { oauthConfigCopy.Spec.IdentityProviders = []configv1.IdentityProvider{ { - Name: "super duper production-ready htpasswd idp", + Name: "super-duper-production-ready-htpasswd-idp", IdentityProviderConfig: configv1.IdentityProviderConfig{ Type: configv1.IdentityProviderTypeHTPasswd, HTPasswd: &configv1.HTPasswdIdentityProvider{ @@ -109,7 +109,7 @@ func TestTemplatesConfig(t *testing.T) { // modify URL to go to the IdP login oauthURL.Path = "/oauth/token/display" - oauthURL.RawQuery = fmt.Sprintf("client_id=openshift-browser-client&idp=super+duper+production-ready+htpasswd+idp&redirect_uri=%s&response_type=code", url.QueryEscape(oauthURL.String())) + oauthURL.RawQuery = fmt.Sprintf("client_id=openshift-browser-client&idp=super-duper-production-ready-htpasswd-idp&redirect_uri=%s&response_type=code", url.QueryEscape(oauthURL.String())) oauthURL.Path = "/oauth/authorize" resp, err = httpClient.Get(oauthURL.String()) require.NoError(t, err)