mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Merge pull request #65794 from zvonand/zvonand-fix-65762
Try to make `test_ldap_external_user_directory` less flaky
This commit is contained in:
commit
36644df625
@ -15,7 +15,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- ${LDAP_EXTERNAL_PORT:-1389}:${LDAP_INTERNAL_PORT:-1389}
|
- ${LDAP_EXTERNAL_PORT:-1389}:${LDAP_INTERNAL_PORT:-1389}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "ldapsearch -x -b dc=example,dc=org cn > /dev/null"
|
test: >
|
||||||
|
ldapsearch -x -H ldap://localhost:$$LDAP_PORT_NUMBER -D $$LDAP_ADMIN_DN -w $$LDAP_ADMIN_PASSWORD -b $$LDAP_ROOT
|
||||||
|
| grep -c -E "member: cn=j(ohn|ane)doe"
|
||||||
|
| grep 2 >> /dev/null
|
||||||
interval: 10s
|
interval: 10s
|
||||||
retries: 10
|
retries: 10
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
|
@ -2640,7 +2640,9 @@ class ClickHouseCluster:
|
|||||||
[
|
[
|
||||||
"bash",
|
"bash",
|
||||||
"-c",
|
"-c",
|
||||||
f"/opt/bitnami/openldap/bin/ldapsearch -x -H ldap://{self.ldap_host}:{self.ldap_port} -D cn=admin,dc=example,dc=org -w clickhouse -b dc=example,dc=org",
|
f"/opt/bitnami/openldap/bin/ldapsearch -x -H ldap://{self.ldap_host}:{self.ldap_port} -D cn=admin,dc=example,dc=org -w clickhouse -b dc=example,dc=org"
|
||||||
|
f'| grep -c -E "member: cn=j(ohn|ane)doe"'
|
||||||
|
f"| grep 2 >> /dev/null",
|
||||||
],
|
],
|
||||||
user="root",
|
user="root",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user