From 9f970895dd189468d953603ec6463e3c152b9657 Mon Sep 17 00:00:00 2001 From: Arjan Tijms Date: Mon, 20 May 2024 14:36:45 +0200 Subject: [PATCH] Updated TCK top Servlet 6.1 (still fails several tests which we have to address) Signed-off-by: Arjan Tijms --- appserver/tests/tck/servlet/j2ee.pass | 16 + appserver/tests/tck/servlet/javajoe.pass | 16 + appserver/tests/tck/servlet/pom.xml | 429 ++++++------------ .../tck-download/jakarta-servlet-tck/pom.xml | 54 ++- 4 files changed, 223 insertions(+), 292 deletions(-) create mode 100644 appserver/tests/tck/servlet/j2ee.pass create mode 100644 appserver/tests/tck/servlet/javajoe.pass diff --git a/appserver/tests/tck/servlet/j2ee.pass b/appserver/tests/tck/servlet/j2ee.pass new file mode 100644 index 00000000000..29e96f640d3 --- /dev/null +++ b/appserver/tests/tck/servlet/j2ee.pass @@ -0,0 +1,16 @@ +# +# Copyright (c) 2024, 2024 Contributors to the Eclipse Foundation. +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0, which is available at +# http://www.eclipse.org/legal/epl-2.0. +# +# This Source Code may also be made available under the following Secondary +# Licenses when the conditions for such availability set forth in the +# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, +# version 2 with the GNU Classpath Exception, which is available at +# https://www.gnu.org/software/classpath/license.html. +# +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 +# +AS_ADMIN_USERPASSWORD=j2ee \ No newline at end of file diff --git a/appserver/tests/tck/servlet/javajoe.pass b/appserver/tests/tck/servlet/javajoe.pass new file mode 100644 index 00000000000..1ecaba672ab --- /dev/null +++ b/appserver/tests/tck/servlet/javajoe.pass @@ -0,0 +1,16 @@ +# +# Copyright (c) 2024, 2024 Contributors to the Eclipse Foundation. +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0, which is available at +# http://www.eclipse.org/legal/epl-2.0. +# +# This Source Code may also be made available under the following Secondary +# Licenses when the conditions for such availability set forth in the +# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, +# version 2 with the GNU Classpath Exception, which is available at +# https://www.gnu.org/software/classpath/license.html. +# +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 +# +AS_ADMIN_USERPASSWORD=javajoe \ No newline at end of file diff --git a/appserver/tests/tck/servlet/pom.xml b/appserver/tests/tck/servlet/pom.xml index 260d0d507a1..aa9465119ab 100644 --- a/appserver/tests/tck/servlet/pom.xml +++ b/appserver/tests/tck/servlet/pom.xml @@ -1,23 +1,26 @@ - + + 4.0.0 @@ -27,309 +30,171 @@ glassfish-external-tck-servlet - pom - TCK: servlet + TCK: Servlet + Aggregates dependencies and runs the Servlet TCK on GlassFish - ${project.build.directory}/apache-ant-${ant.version} - https://archive.apache.org/dist/ant/binaries/apache-ant-${ant.version}-bin.zip - - ${project.build.directory}/servlet-tck - ${tck.home}/src/com/sun/ts/tests - - ${project.build.directory}/glassfish8 + UTF-8 + UTF-8 ${project.version} - ${glassfish.home}/glassfish/bin/asadmin - - org/glassfish/**\:com/sun/enterprise/** - - 14848 - 11527 - 18080 - 18181 - 17676 - 18686 - 13700 - 13920 - 13820 - 12000 + ${project.build.directory} + ${glassfish.root}/glassfish8 + + + + org.jboss.arquillian + arquillian-bom + 1.8.0.Final + pom + import + + + + + + + jakarta.servlet + jakarta.servlet-api + + + + + jakarta.tck + servlet-tck-runtime + 6.1.0 + test + + + + jakarta.tck + servlet-tck-util + 6.1.0 + test + + + + + + org.omnifaces.arquillian + arquillian-glassfish-server-managed + 1.4 + test + + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + test + - org.glassfish.main.distributions - glassfish - ${glassfish.version} - zip + org.jboss.shrinkwrap.resolver + shrinkwrap-resolver-impl-maven + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.jupiter + junit-jupiter + ${junit.version} test + + - org.glassfish.main.tests.tck - jakarta-servlet-tck - ${project.version} - zip + org.netbeans.tools + sigtest-maven-plugin + 1.7 - com.googlecode.maven-download-plugin - download-maven-plugin - - - download-ant - generate-resources - - wget - - - + maven-compiler-plugin - ${skipITs} - ${ant.zip.url} - true - ${project.build.directory} + 17 maven-dependency-plugin - - ${skipITs} - unpack-glassfish - pre-integration-test + test-compile - unpack-dependencies + unpack - glassfish - ${project.build.directory} - - - - unpack-tck - pre-integration-test - - unpack-dependencies - - - jakarta-servlet-tck - ${project.build.directory} + ${glassfish.root}/dependency-maven-plugin-markers + + + org.glassfish.main.distributions + ${glassfish-artifact-id} + ${glassfish.version} + zip + false + ${glassfish.root} + + - maven-antrun-plugin - - - org.apache.ant - ant - ${ant.version} - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - + org.apache.maven.plugins + maven-surefire-plugin - ${skipITs} + + jakarta.tck:servlet-tck-runtime + + + ${glassfish.root}/glassfish8 + + + + false + + + false + + + create-file-user --groups Manager:Employee --passwordfile ${maven.multiModuleProjectDirectory}/javajoe.pass javajoe + create-file-user --groups Administrator:Employee --passwordfile ${maven.multiModuleProjectDirectory}/j2ee.pass j2ee + + - - - prepare-tck-and-glassfish - pre-integration-test - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ]]> - - ]]> - - - - ]]> - - ]]> - - - - - run - - - - - configure-tck-tests - pre-integration-test - - run - - - - - - - - - - - - - - - - - - - - - - - - - Deploying from ${test.dir} - - - - - - - - - - - - - - - - - - - - - - run-tck-tests - integration-test - - run - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + full + + true + + + glassfish + full + + + + web + + web + web + + + + \ No newline at end of file diff --git a/appserver/tests/tck/tck-download/jakarta-servlet-tck/pom.xml b/appserver/tests/tck/tck-download/jakarta-servlet-tck/pom.xml index a8764cc61f3..283d53c849e 100644 --- a/appserver/tests/tck/tck-download/jakarta-servlet-tck/pom.xml +++ b/appserver/tests/tck/tck-download/jakarta-servlet-tck/pom.xml @@ -1,7 +1,7 @@