Skip to content

Commit

Permalink
tests: update incorrect usage of Auth0 in Salesforce tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IchordeDionysos committed Jul 18, 2024
1 parent ff90216 commit a03b869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions selfservice/strategy/oidc/provider_salesforce_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
)

func TestSalesforceUpdatedAtWorkaround(t *testing.T) {
actual, err := authZeroUpdatedAtWorkaround([]byte("{}"))
actual, err := salesforceUpdatedAtWorkaround([]byte("{}"))
require.NoError(t, err)
assert.Equal(t, "{}", string(actual))

actual, err = authZeroUpdatedAtWorkaround([]byte(`{"updated_at":1234}`))
actual, err = salesforceUpdatedAtWorkaround([]byte(`{"updated_at":1234}`))
require.NoError(t, err)
assert.Equal(t, `{"updated_at":1234}`, string(actual))

Expand All @@ -27,7 +27,7 @@ func TestSalesforceUpdatedAtWorkaround(t *testing.T) {
"updated_at": timestamp,
})
require.NoError(t, err)
actual, err = authZeroUpdatedAtWorkaround(input)
actual, err = salesforceUpdatedAtWorkaround(input)
require.NoError(t, err)
assert.Equal(t, fmt.Sprintf(`{"updated_at":%d}`, timestamp.Unix()), string(actual))
}
2 changes: 1 addition & 1 deletion selfservice/strategy/oidc/provider_userinfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestProviderClaimsRespectsErrorCodes(t *testing.T) {
name: "salesforce",
userInfoHandler: defaultUserinfoHandler,
userInfoEndpoint: "https://www.salesforce.com/userinfo",
provider: oidc.NewProviderAuth0(&oidc.Configuration{
provider: oidc.NewProviderSalesforce(&oidc.Configuration{
IssuerURL: "https://www.salesforce.com",
ID: "salesforce",
Provider: "salesforce",
Expand Down

0 comments on commit a03b869

Please sign in to comment.