Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guyp-descope committed Dec 20, 2023
1 parent 2b61dd1 commit 89f42d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions descope/internal/mgmt/sso_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func TestLoadSettingsSuccess(t *testing.T) {
"authUrl": "http://dummy.com",
"tokenUrl": "http://dummy.com",
"userDataUrl": "http://dummy.com",
"attributeMapping": map[string]any{
"userAttrMapping": map[string]any{
"givenName": "myGivenName",
},
},
Expand Down Expand Up @@ -465,7 +465,7 @@ func TestSSOConfigureOIDCSettingsSuccess(t *testing.T) {
require.Equal(t, "http://dummy.com", sett["tokenUrl"])
require.Equal(t, "http://dummy.com", sett["userDataUrl"])

userAttrMappingInt, found := sett["attributeMapping"]
userAttrMappingInt, found := sett["userAttrMapping"]
require.True(t, found)
userAttrMapping, ok := userAttrMappingInt.(map[string]any)
require.Equal(t, "myGivenName", userAttrMapping["givenName"])
Expand Down

0 comments on commit 89f42d4

Please sign in to comment.