Skip to content

Commit d0ba0d4

Browse files
authored
Merge pull request #1128 from oracle/logging-elastic-tests
Added 30 sec sleep time to wait for WLS logs to be pushed to ELK Stac…
2 parents 5b2974d + ee3ceb7 commit d0ba0d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ItElasticLogging.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ public void testWeblogicLogSearch() throws Exception {
234234
String managedServerNameBase = domainMap.get("managedServerNameBase").toString();
235235
String managedServerPodName = domainUid + "-" + managedServerNameBase + "1";
236236

237+
// Wait 30 seconds for WLS log to be pushed to ELK Stack
238+
logger.info("Wait 30 seconds for WLS log to be pushed to ELK Stack");
239+
Thread.sleep(30 * 1000);
240+
237241
// Verify that log hits for admin server are not empty
238242
String regex = ".*took\":(\\d+),.*hits\":\\{(.+)\\}";
239243
String queryCriteria = "/_search?q=log:" + adminServerPodName + " | grep RUNNING";

0 commit comments

Comments
 (0)