@@ -80,26 +80,4 @@ public static String getUrl(GenericContainer<?> container) {
8080 log .info ("container started, app url is : {}" , url );
8181 return url ;
8282 }
83-
84- static Stream <Arguments > tomcatCasesProvider () {
85- Server server = Server .Tomcat ;
86- List <String > supportedShellTypes = List .of (
87- ShellType .JAKARTA_FILTER ,
88- ShellType .JAKARTA_LISTENER ,
89- ShellType .JAKARTA_VALVE ,
90- ShellType .JAKARTA_WEBSOCKET ,
91- ShellType .AGENT_FILTER_CHAIN ,
92- ShellType .AGENT_FILTER_CHAIN_ASM ,
93- ShellType .CATALINA_AGENT_CONTEXT_VALVE ,
94- ShellType .CATALINA_AGENT_CONTEXT_VALVE_ASM
95- );
96- List <Packers > testPackers = List .of (Packers .Base64 );
97- return TestCasesProvider .getTestCases (imageName , server , supportedShellTypes , testPackers );
98- }
99-
100- @ ParameterizedTest (name = "{0}|{1}{2}|{3}" )
101- @ MethodSource ("tomcatCasesProvider" )
102- void testTomcat (String imageName , String shellType , ShellTool shellTool , Packers packer ) {
103- testShellInjectAssertOk (getUrl (container ), Server .Tomcat , shellType , shellTool , Opcodes .V1_8 , packer , container , python );
104- }
10583}
0 commit comments