diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-09-17 14:04:41 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-17 14:04:41 +1000 |
| commit | 9325e448d5b557b345264aab5b66c4a94737afaf (patch) | |
| tree | 09504fe3bf1a060b8c55fbee803fbaf3ccf14010 /internal/authentication/ldap_user_provider_test.go | |
| parent | c9507368abd3374364cca8e1e7b1cbe8494a7130 (diff) | |
test: misc lint updates (#6004)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/authentication/ldap_user_provider_test.go')
| -rw-r--r-- | internal/authentication/ldap_user_provider_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/authentication/ldap_user_provider_test.go b/internal/authentication/ldap_user_provider_test.go index c0e989429..b44a75373 100644 --- a/internal/authentication/ldap_user_provider_test.go +++ b/internal/authentication/ldap_user_provider_test.go @@ -152,14 +152,14 @@ func TestResolveGroupsFilter(t *testing.T) { name string have schema.AuthenticationBackendLDAP input string - profile ldapUserProfile + profile *ldapUserProfile expected string }{ { "ShouldResolveEmptyFilter", schema.AuthenticationBackendLDAP{}, "", - ldapUserProfile{}, + &ldapUserProfile{}, "", }, { @@ -176,7 +176,7 @@ func TestResolveGroupsFilter(t *testing.T) { }, }, "", - ldapUserProfile{ + &ldapUserProfile{ MemberOf: []string{"CN=abc,DC=example,DC=com", "CN=xyz,DC=example,DC=com"}, }, "(|(CN=abc)(CN=xyz))", @@ -195,7 +195,7 @@ func TestResolveGroupsFilter(t *testing.T) { }, }, "", - ldapUserProfile{ + &ldapUserProfile{ MemberOf: []string{"CN=abc,DC=example,DC=com", "CN=xyz,DC=example,DC=com"}, }, "(|(distinguishedName=CN=abc,DC=example,DC=com)(distinguishedName=CN=xyz,DC=example,DC=com))", @@ -210,7 +210,7 @@ func TestResolveGroupsFilter(t *testing.T) { nil, mockFactory) - assert.Equal(t, tc.expected, provider.resolveGroupsFilter("", &tc.profile)) + assert.Equal(t, tc.expected, provider.resolveGroupsFilter("", tc.profile)) }) } } |
