-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEST] Add logging when LDAP server starts/stops #75322
[TEST] Add logging when LDAP server starts/stops #75322
Conversation
This commit adds logging to the in memory LDAP server in LdapTestCase that indicates when the server starts and stops and the addresses on which it is listening. Relates: elastic#75176
Pinging @elastic/es-security (Team:Security) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
String listenerConfig = listeners.stream() | ||
.map( | ||
l -> String.format( | ||
Locale.ROOT, | ||
"(%s @ %s:%d)", | ||
l.getListenerName(), | ||
NetworkAddress.format(resolveListenAddress(l.getListenAddress())), | ||
ldapServer.getListenPort(l.getListenerName()) | ||
) | ||
) | ||
.collect(Collectors.joining(",")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use InMemoryListenerConfig#toString
? Is it because of the listenAddress
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More due to the port - typically the config has port 0
and we want to know what port number was actually assigned.
This commit adds logging to the in memory LDAP server in LdapTestCase that indicates when the server starts and stops and the addresses on which it is listening. Relates: elastic#75176
💚 Backport successful
|
This commit adds logging to the in memory LDAP server in LdapTestCase that indicates when the server starts and stops and the addresses on which it is listening. Relates: elastic#75176
This commit adds logging to the in memory LDAP server in LdapTestCase
that indicates when the server starts and stops and the addresses on
which it is listening.
Relates: #75176