summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-15 14:42:08 -0600
committermo khan <mo@mokhan.ca>2025-05-15 14:42:08 -0600
commitc151c1a77d31c5e01885691b6df1ea7b0be0b0e5 (patch)
tree254aed8be6abaffaeba71df5bcb35d41d52bb2b2 /test
parent3d01a69471fc4f0ae9f2f4145620b6aea50f2216 (diff)
parentb6968005e1e1758e37edc7830c02e2217ee5fd90 (diff)
Merge branch 'envoy-cleanup' into 'main'
Delete code that is now handled by envoy See merge request gitlab-org/software-supply-chain-security/authorization/sparkled!7
Diffstat (limited to 'test')
-rw-r--r--test/integration/container_test.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/integration/container_test.go b/test/integration/container_test.go
index b956250..73724fb 100644
--- a/test/integration/container_test.go
+++ b/test/integration/container_test.go
@@ -14,18 +14,16 @@ import (
"github.com/stretchr/testify/require"
"github.com/testcontainers/testcontainers-go"
"github.com/xlgmokha/x/pkg/env"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web"
)
-func environmentVariables(srv *oidc.TestServer) map[string]string {
+func environmentVariables(srv *web.OIDCServer) map[string]string {
return map[string]string{
"APP_ENV": "test",
- "BIND_ADDR": ":8080",
"DEBUG": env.Fetch("DEBUG", ""),
"HMAC_SESSION_SECRET": "secret",
"OAUTH_CLIENT_ID": srv.MockOIDC.ClientID,
"OAUTH_CLIENT_SECRET": srv.MockOIDC.ClientSecret,
- "OAUTH_REDIRECT_URL": "",
"OIDC_ISSUER": srv.Issuer(),
}
}
@@ -34,7 +32,7 @@ func TestContainer(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel()
- srv := oidc.NewTestServer(t)
+ srv := web.NewOIDCServer(t)
defer srv.Close()
container := NewContainer(t, ctx, environmentVariables(srv))