fix: waiting more time for the log to appear (#27208)
closes: #26790 Signed-off-by: Steve Hawkins <shawkins@redhat.com>
This commit is contained in:
parent
5f56a9b356
commit
daa6cf5951
1 changed files with 2 additions and 5 deletions
|
@ -89,11 +89,8 @@ public class WatchedSecretsTest extends BaseOperatorTest {
|
|||
k8sclient.resource(dbSecret).update();
|
||||
|
||||
// dynamically check pod 0 to avoid race conditions
|
||||
Awaitility.await().atMost(1, TimeUnit.MINUTES).ignoreExceptions()
|
||||
.until(() -> k8sclient
|
||||
.raw(String.format("/api/v1/namespaces/%s/pods/%s/log?previous=true", namespace,
|
||||
kc.getMetadata().getName() + "-0"))
|
||||
.contains("password authentication failed for user \"" + username + "\""));
|
||||
Awaitility.await().atMost(2, TimeUnit.MINUTES).ignoreExceptions().until(() ->
|
||||
k8sclient.pods().withName(kc.getMetadata().getName() + "-0").getLog().contains("password authentication failed for user \"" + username + "\""));
|
||||
}
|
||||
|
||||
private StatefulSet getStatefulSet(Keycloak kc) {
|
||||
|
|
Loading…
Reference in a new issue