diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2021-08-05 14:17:07 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-05 14:17:07 +1000 |
| commit | a3b14871baeca9ebfbaded981bebb6f9c36b0311 (patch) | |
| tree | b95ecc9cccb71022c4841f97555054fc6dd404d8 /internal/configuration/validator/authentication_test.go | |
| parent | c5c6bda8b066f390b4c0863777dc3eba77fee792 (diff) | |
perf(authentication): improve ldap dynamic replacement performance (#2239)
This change means we only check the filters for the existence of placeholders that cannot be replaced at startup. We then utilized cached results of that lookup for subsequent replacements.
Diffstat (limited to 'internal/configuration/validator/authentication_test.go')
| -rw-r--r-- | internal/configuration/validator/authentication_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/configuration/validator/authentication_test.go b/internal/configuration/validator/authentication_test.go index d135b8112..479db7071 100644 --- a/internal/configuration/validator/authentication_test.go +++ b/internal/configuration/validator/authentication_test.go @@ -387,7 +387,7 @@ func (suite *LDAPAuthenticationBackendSuite) TestShouldSetDefaultDisplayNameAttr suite.Assert().False(suite.validator.HasWarnings()) suite.Assert().False(suite.validator.HasErrors()) - suite.Assert().Equal("displayname", suite.configuration.LDAP.DisplayNameAttribute) + suite.Assert().Equal("displayName", suite.configuration.LDAP.DisplayNameAttribute) } func (suite *LDAPAuthenticationBackendSuite) TestShouldSetDefaultRefreshInterval() { |
