let tests work

This commit is contained in:
Livio Amstutz 2020-09-15 08:06:43 +02:00
parent 2dfdaa2223
commit 5a9e6e2c2a
4 changed files with 26 additions and 14 deletions

View file

@ -10,7 +10,6 @@ import (
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/pkg/op"
"github.com/caos/oidc/pkg/rp"
)
func NewAuthorizer(t *testing.T) op.Authorizer {
@ -58,9 +57,9 @@ func ExpectSigner(a op.Authorizer, t *testing.T) {
func ExpectVerifier(a op.Authorizer, t *testing.T) {
mockA := a.(*MockAuthorizer)
mockA.EXPECT().IDTokenVerifier().DoAndReturn(
func() rp.Verifier {
return &Verifier{}
mockA.EXPECT().IDTokenHintVerifier().DoAndReturn(
func() op.IDTokenHintVerifier {
return op.NewIDTokenHintVerifier("", nil)
})
}