let tests work
This commit is contained in:
parent
2dfdaa2223
commit
5a9e6e2c2a
4 changed files with 26 additions and 14 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue