test: fix failed cases

This commit is contained in:
ReaJason
2025-12-08 01:43:41 +08:00
parent c43d87eea1
commit 8b8cc7173d
4 changed files with 53 additions and 1 deletions
@@ -412,6 +412,10 @@ public class ShellAssertion {
Pair<String, String> urls = ShellAssertion.getUrls(url, shellType, shellTool, packer);
String shellUrl = urls.getLeft();
String urlPattern = urls.getRight();
if (urlPattern != null) {
shellUrl += "testProbe";
urlPattern += "testProbe";
}
ShellConfig shellConfig = ShellConfig.builder()
.server(server)
.serverVersion(serverVersion)
@@ -33,7 +33,7 @@ public class GlassFish7ContainerTest {
@Container
public static final GenericContainer<?> container = new GenericContainer<>(imageName)
.withCopyToContainer(warJakartaFile, "/usr/local/glassfish7/glassfish/domains/domain1/autodeploy/app.war")
.waitingFor(Wait.forLogMessage(".*deployed.*", 1))
.waitingFor(Wait.forLogMessage(".*(deployed|done).*", 1))
.withExposedPorts(8080);
@AfterAll