Skip to content

Commit

Permalink
update oidc_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Atif Ali <[email protected]>
  • Loading branch information
aali309 committed Nov 8, 2024
1 parent d168329 commit 9c0e980
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions util/oidc/oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ func TestGetUserInfo(t *testing.T) {
expectError bool
}{
{
key: formatUserInfoResponseCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
expectError: true,
},
},
Expand All @@ -654,7 +654,7 @@ func TestGetUserInfo(t *testing.T) {
encrypt bool
}{
{
key: formatAccessTokenCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
value: "FakeAccessToken",
encrypt: true,
},
Expand All @@ -673,7 +673,7 @@ func TestGetUserInfo(t *testing.T) {
expectError bool
}{
{
key: formatUserInfoResponseCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
expectError: true,
},
},
Expand All @@ -688,7 +688,7 @@ func TestGetUserInfo(t *testing.T) {
encrypt bool
}{
{
key: formatAccessTokenCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
value: "FakeAccessToken",
encrypt: true,
},
Expand All @@ -707,7 +707,7 @@ func TestGetUserInfo(t *testing.T) {
expectError bool
}{
{
key: formatUserInfoResponseCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
expectError: true,
},
},
Expand All @@ -730,7 +730,7 @@ func TestGetUserInfo(t *testing.T) {
encrypt bool
}{
{
key: formatAccessTokenCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
value: "FakeAccessToken",
encrypt: true,
},
Expand All @@ -749,7 +749,7 @@ func TestGetUserInfo(t *testing.T) {
expectError bool
}{
{
key: formatUserInfoResponseCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
expectError: true,
},
},
Expand Down Expand Up @@ -782,7 +782,7 @@ func TestGetUserInfo(t *testing.T) {
expectError bool
}{
{
key: formatUserInfoResponseCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
value: "{\"groups\":[\"githubOrg:engineers\"]}",
expectEncrypted: true,
expectError: false,
Expand All @@ -809,7 +809,7 @@ func TestGetUserInfo(t *testing.T) {
encrypt bool
}{
{
key: formatAccessTokenCacheKey("randomUser"),
key: formatUserInfoResponseCacheKey(jwt.MapClaims{"sub": "randomUser"}),
value: "FakeAccessToken",
encrypt: true,
},
Expand Down

0 comments on commit 9c0e980

Please sign in to comment.