Update TestLDAPSearch_Parallel to notice different var for external ldap server

This commit is contained in:
Benjamin A. Petersen 2022-09-28 16:02:56 -04:00
parent 99c635c38d
commit 09b9075abb
No known key found for this signature in database
GPG Key ID: E2849239C6F9124E
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ func TestLDAPSearch_Parallel(t *testing.T) {
// Note that these tests depend on the values hard-coded in the LDIF file in test/deploy/tools/ldap.yaml.
// It requires the test LDAP server from the tools deployment.
if len(env.ToolsNamespace) == 0 {
t.Skip("Skipping test because it requires the test LDAP server in the tools namespace.")
if len(env.ToolsNamespace) == 0 || !strings.Contains(env.SupervisorUpstreamLDAP.Host, "tools.svc.cluster.local") {
t.Skip("Skipping test because it requires the test OpenLDAP server in the tools namespace of the target cluster.")
}
ctx, cancelFunc := context.WithCancel(context.Background())