Update TestLDAPSearch_Parallel to notice different var for external ldap server
This commit is contained in:
parent
99c635c38d
commit
09b9075abb
@ -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.
|
// 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.
|
// It requires the test LDAP server from the tools deployment.
|
||||||
if len(env.ToolsNamespace) == 0 {
|
if len(env.ToolsNamespace) == 0 || !strings.Contains(env.SupervisorUpstreamLDAP.Host, "tools.svc.cluster.local") {
|
||||||
t.Skip("Skipping test because it requires the test LDAP server in the tools namespace.")
|
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())
|
ctx, cancelFunc := context.WithCancel(context.Background())
|
||||||
|
Loading…
Reference in New Issue
Block a user