Skip to content

Commit

Permalink
Merge pull request #30517 from Channyboy/29899-waitForSSl
Browse files Browse the repository at this point in the history
Update FAT test to wait for SSL start
  • Loading branch information
Channyboy authored Jan 10, 2025
2 parents 4f050fb + f943d22 commit 800aede
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2023 IBM Corporation and others.
* Copyright (c) 2023, 2025 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -120,6 +120,7 @@ private static void isJava11014() throws IOException {
public void nonExistentLibrary() throws Exception {
server = serverNonExistentLibrary;
server.startServer();
server.waitForSSLStart();

//CWWKG0033W The value [<value>] specified for the reference attribute [libraryRef] was not found in the configuration.
Assert.assertNotNull("CWWKG0033W Not found", server.waitForStringInLogUsingMark("CWWKG0033W"));
Expand All @@ -136,6 +137,7 @@ public void nonExistentLibrary() throws Exception {
public void noMicrometerCore() throws Exception {
server = serverNoMicrometerCore;
server.startServer();
server.waitForSSLStart();

//CWMMC0014I emits that metrics is using libraryRef
Assert.assertNotNull("CWMMC0014I Not found", server.waitForStringInLogUsingMark("CWMMC0014I"));
Expand Down Expand Up @@ -190,6 +192,7 @@ public void externalPrometheusMicrometer() throws Exception {
}

server.startServer();
server.waitForSSLStart();

//CWMMC0014I emits that metrics is using libraryRef
Assert.assertNotNull("CWMMC0014I Not found", server.waitForStringInLogUsingMark("CWMMC0014I"));
Expand Down Expand Up @@ -236,6 +239,7 @@ public void externalPrometheusMicrometer() throws Exception {
public void externalMicrometerUselessJar() throws Exception {
server = serverMicrometerUseless;
server.startServer();
server.waitForSSLStart();

//CWMMC0014I emits that metrics is using libraryRef
Assert.assertNotNull("CWMMC0014I Not found", server.waitForStringInLogUsingMark("CWMMC0014I"));
Expand Down

0 comments on commit 800aede

Please sign in to comment.