mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 15:10:43 +08:00
test: images use specific version
This commit is contained in:
+2
-2
@@ -33,7 +33,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@Slf4j
|
||||
@Testcontainers
|
||||
public class Jetty10ContainerTest {
|
||||
public static final String imageName = "jetty:10-jre11";
|
||||
public static final String imageName = "jetty:10.0.25-jre11";
|
||||
@Container
|
||||
public final static GenericContainer<?> container = new GenericContainer<>(imageName)
|
||||
.withCopyToContainer(warFile, "/var/lib/jetty/webapps/app.war")
|
||||
@@ -44,7 +44,7 @@ public class Jetty10ContainerTest {
|
||||
void testJDK() {
|
||||
String url = getUrl(container);
|
||||
String data = VulTool.post(url + "/b64", DetectionTool.getJdkDetection());
|
||||
assertEquals("JRE|11.0.26|55", data);
|
||||
assertEquals("JRE|11.0.28|55", data);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@Slf4j
|
||||
@Testcontainers
|
||||
public class Jetty11ContainerTest {
|
||||
public static final String imageName = "jetty:11.0-jre17";
|
||||
public static final String imageName = "jetty:11.0.25-jre17";
|
||||
@Container
|
||||
public final static GenericContainer<?> container = new GenericContainer<>(imageName)
|
||||
.withCopyToContainer(warJakartaFile, "/var/lib/jetty/webapps/app.war")
|
||||
@@ -50,7 +50,7 @@ public class Jetty11ContainerTest {
|
||||
void testJDK() {
|
||||
String url = getUrl(container);
|
||||
String data = VulTool.post(url + "/b64", DetectionTool.getJdkDetection());
|
||||
assertEquals("JRE|17.0.15|61", data);
|
||||
assertEquals("JRE|17.0.16|61", data);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@Slf4j
|
||||
@Testcontainers
|
||||
public class Jetty94ContainerTest {
|
||||
public static final String imageName = "jetty:9.4-jre8";
|
||||
public static final String imageName = "jetty:9.4.57-jre8";
|
||||
@Container
|
||||
public final static GenericContainer<?> container = new GenericContainer<>(imageName)
|
||||
.withCopyToContainer(warFile, "/var/lib/jetty/webapps/app.war")
|
||||
@@ -44,7 +44,7 @@ public class Jetty94ContainerTest {
|
||||
void testJDK() {
|
||||
String url = getUrl(container);
|
||||
String data = VulTool.post(url + "/b64", DetectionTool.getJdkDetection());
|
||||
assertEquals("JRE|1.8.0_442|52", data);
|
||||
assertEquals("JRE|1.8.0_462|52", data);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@Slf4j
|
||||
@Testcontainers
|
||||
public class Tomcat10ContainerTest {
|
||||
public static final String imageName = "tomcat:10.1-jre11";
|
||||
public static final String imageName = "tomcat:10.1.44-jre11";
|
||||
|
||||
@Container
|
||||
public final static GenericContainer<?> container = new GenericContainer<>(imageName)
|
||||
@@ -44,7 +44,7 @@ public class Tomcat10ContainerTest {
|
||||
void testJDK() {
|
||||
String url = getUrl(container);
|
||||
String data = VulTool.post(url + "/b64", DetectionTool.getJdkDetection());
|
||||
assertEquals("JRE|11.0.26|55", data);
|
||||
assertEquals("JRE|11.0.28|55", data);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@Testcontainers
|
||||
public class Tomcat11ContainerTest {
|
||||
|
||||
public static final String imageName = "tomcat:11.0-jre17";
|
||||
public static final String imageName = "tomcat:11.0.10-jre17";
|
||||
@Container
|
||||
public final static GenericContainer<?> container = new GenericContainer<>(imageName)
|
||||
.withCopyToContainer(warJakartaFile, "/usr/local/tomcat/webapps/app.war")
|
||||
@@ -45,7 +45,7 @@ public class Tomcat11ContainerTest {
|
||||
void testJDK() {
|
||||
String url = getUrl(container);
|
||||
String data = VulTool.post(url + "/b64", DetectionTool.getJdkDetection());
|
||||
assertEquals("JRE|17.0.14|61", data);
|
||||
assertEquals("JRE|17.0.16|61", data);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-2
@@ -29,7 +29,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@Testcontainers
|
||||
public class Tomcat11JRE21ContainerTest {
|
||||
|
||||
public static final String imageName = "tomcat:11.0-jre21";
|
||||
public static final String imageName = "tomcat:11.0.10-jre21";
|
||||
|
||||
@Container
|
||||
public final static GenericContainer<?> container = new GenericContainer<>(imageName)
|
||||
@@ -41,7 +41,7 @@ public class Tomcat11JRE21ContainerTest {
|
||||
void testJDK() {
|
||||
String url = getUrl(container);
|
||||
String data = VulTool.post(url + "/b64", DetectionTool.getJdkDetection());
|
||||
assertEquals("JRE|21.0.6|65", data);
|
||||
assertEquals("JRE|21.0.8|65", data);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@Slf4j
|
||||
@Testcontainers
|
||||
public class Tomcat9ContainerTest {
|
||||
public static final String imageName = "tomcat:9-jre9";
|
||||
public static final String imageName = "tomcat:9.0.8-jre9";
|
||||
@Container
|
||||
public final static GenericContainer<?> container = new GenericContainer<>(imageName)
|
||||
.withCopyToContainer(warFile, "/usr/local/tomcat/webapps/app.war")
|
||||
|
||||
Reference in New Issue
Block a user