mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-01-26 05:27:28 +02:00
21 lines
483 B
Go
21 lines
483 B
Go
package middleware_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/oauth2-proxy/oauth2-proxy/v7/pkg/logger"
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
// TestMiddlewareSuite and related tests are in a *_test package
|
|
// to prevent circular imports with the `logger` package which uses
|
|
// this functionality
|
|
func TestMiddlewareSuite(t *testing.T) {
|
|
logger.SetOutput(GinkgoWriter)
|
|
logger.SetErrOutput(GinkgoWriter)
|
|
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "Middleware API")
|
|
}
|