From b31deff0fbd39cc8fdb450692d32f9c623c49800 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Mon, 16 Nov 2020 18:16:16 -0600 Subject: [PATCH] Update integration tests to use HTTPS Dex for UpstreamOIDCProvider testing. Signed-off-by: Matt Moyer --- test/integration/supervisor_upstream_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/integration/supervisor_upstream_test.go b/test/integration/supervisor_upstream_test.go index 40ef0e90..c96ae7af 100644 --- a/test/integration/supervisor_upstream_test.go +++ b/test/integration/supervisor_upstream_test.go @@ -5,6 +5,7 @@ package integration import ( "context" + "encoding/base64" "testing" "time" @@ -17,7 +18,7 @@ import ( ) func TestSupervisorUpstreamOIDCDiscovery(t *testing.T) { - library.SkipUnlessIntegration(t) + env := library.IntegrationEnv(t) t.Run("invalid missing secret and bad issuer", func(t *testing.T) { t.Parallel() @@ -50,7 +51,10 @@ func TestSupervisorUpstreamOIDCDiscovery(t *testing.T) { t.Run("valid", func(t *testing.T) { t.Parallel() spec := v1alpha1.UpstreamOIDCProviderSpec{ - Issuer: "https://accounts.google.com", // Use Google as an example of a valid OIDC issuer for now. + Issuer: env.OIDCUpstream.Issuer, + TLS: &v1alpha1.TLSSpec{ + CertificateAuthorityData: base64.StdEncoding.EncodeToString([]byte(env.OIDCUpstream.CABundle)), + }, AuthorizationConfig: v1alpha1.OIDCAuthorizationConfig{ AdditionalScopes: []string{"email", "profile"}, },