summaryrefslogtreecommitdiff
path: root/internal/authentication/ldap_user_provider_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/authentication/ldap_user_provider_test.go')
-rw-r--r--internal/authentication/ldap_user_provider_test.go10
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))
})
}
}