diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-14 17:49:28 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-14 17:49:28 -0600 |
| commit | 564e140de454c78d7e6d34044bb78f53bd0b2bf3 (patch) | |
| tree | f85607ebfb2575bce94b5618250ebd957f965f6e /test/integration/oidc.go | |
| parent | 7797dffa1412ca0e5a0ba95eb8aa39cddce8d10e (diff) | |
test: remove old oidc test server
Diffstat (limited to 'test/integration/oidc.go')
| -rw-r--r-- | test/integration/oidc.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/integration/oidc.go b/test/integration/oidc.go deleted file mode 100644 index 35653ef..0000000 --- a/test/integration/oidc.go +++ /dev/null @@ -1,27 +0,0 @@ -package test - -import ( - "net" - "net/http" - "testing" - - "github.com/oauth2-proxy/mockoidc" - "github.com/stretchr/testify/require" -) - -func NewOIDCTestServer(t *testing.T) *mockoidc.MockOIDC { - srv, err := mockoidc.NewServer(nil) - require.NoError(t, err) - - srv.AddMiddleware(func(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - t.Logf("%v %v %v\n", r.Method, r.URL.Path, r.URL.Query()) - next.ServeHTTP(w, r) - }) - }) - - ln, err := net.Listen("tcp4", "0.0.0.0:0") - require.NoError(t, err) - require.NoError(t, srv.Start(ln, nil)) - return srv -} |
