You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix test LdapSessionFactoryTests testSslTrustIsReloaded (#69001)
LdapSessionFactoryTests#testSslTrustIsReloaded relies on the resource watcher
to detect the cert file overwriting. Resource watcher detects changes by only
inspecting the file size on disk and the last access timestamp.
For the last access timestamp, the resolution can be as low as one second depending
on the JDK and the FS type. It is thus preferable to rely on file size differences in tests.
Closes#68995
Copy file name to clipboardExpand all lines: x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ldap/LdapSessionFactoryTests.java
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -222,7 +222,6 @@ public void testGroupLookupBase() throws Exception {
222
222
* If the realm's CA path is monitored for changes and the underlying SSL context is reloaded, then we will get two different outcomes
223
223
* (one failure, one success) depending on which file content is in place.
0 commit comments