Skip to content

Commit

Permalink
fix broken tests, removed trusted hosts, that forbids everything from…
Browse files Browse the repository at this point in the history
… test config
  • Loading branch information
Tobias Theel committed Nov 17, 2021
1 parent 5cd04ca commit 2c257f3
Show file tree
Hide file tree
Showing 2 changed files with 1,550 additions and 1,611 deletions.
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ func Test_LoginSignedJWT(t *testing.T) {
cfg.GoCloak.Realm,
rsaKey,
jwt.SigningMethodRS256,
&jwt.NumericDate{},
&jwt.NumericDate{time.Now().Add(2 * time.Hour)},
)
require.NoError(t, err, "Login failed")
}
Expand Down Expand Up @@ -5688,7 +5688,7 @@ func Test_CreatePermissionTicket(t *testing.T) {
})

// we're expecting validity error because we didn't supply secret
require.Equal(t, "token signature is invalid", err.Error())
require.Equal(t, "signature is invalid", err.Error())

claims, ok := pt.Claims.(*gocloak.PermissionTicketRepresentation) // ticketClaims)
require.Equal(t, true, ok)
Expand Down
Loading

0 comments on commit 2c257f3

Please sign in to comment.