From 98c18c8750c3a709c41ecf242d4172eb1c0a3a1e Mon Sep 17 00:00:00 2001 From: Arjan Tijms Date: Wed, 12 Jun 2024 16:43:39 +0200 Subject: [PATCH] Update Pages TCK to 4.0.0 Signed-off-by: Arjan Tijms --- appserver/tests/tck/pages/j2ee.pass | 16 + appserver/tests/tck/pages/javajoe.pass | 16 + appserver/tests/tck/pages/pom.xml | 423 +++++++----------- .../tck-download/jakarta-pages-tck/pom.xml | 43 +- .../tests/tck/tck-download/javatest/pom.xml | 17 + nucleus/parent/pom.xml | 6 + 6 files changed, 236 insertions(+), 285 deletions(-) create mode 100644 appserver/tests/tck/pages/j2ee.pass create mode 100644 appserver/tests/tck/pages/javajoe.pass diff --git a/appserver/tests/tck/pages/j2ee.pass b/appserver/tests/tck/pages/j2ee.pass new file mode 100644 index 00000000000..29e96f640d3 --- /dev/null +++ b/appserver/tests/tck/pages/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/pages/javajoe.pass b/appserver/tests/tck/pages/javajoe.pass new file mode 100644 index 00000000000..1ecaba672ab --- /dev/null +++ b/appserver/tests/tck/pages/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/pages/pom.xml b/appserver/tests/tck/pages/pom.xml index 140718ed458..6444fa0a118 100644 --- a/appserver/tests/tck/pages/pom.xml +++ b/appserver/tests/tck/pages/pom.xml @@ -17,6 +17,16 @@ --> + + 4.0.0 @@ -27,314 +37,201 @@ glassfish-external-tck-pages - pom + jar TCK: pages + Aggregates dependencies and runs the pages 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}/pages-tck - ${tck.home}/src/com/sun/ts/tests - - ${project.build.directory}/glassfish8 - + ${glassfish.root}/glassfish8 + ${project.build.directory} ${project.version} - ${glassfish.home}/glassfish/bin/asadmin - - org/glassfish/**\:com/sun/enterprise/** - - 14848 - 11527 - 18080 - 18181 - 17676 - 18686 - 13700 - 13920 - 13820 - 12000 + + UTF-8 + UTF-8 + + + + org.jboss.arquillian + arquillian-bom + 1.8.0.Final + pom + import + + + + + - org.glassfish.main.distributions - glassfish - ${glassfish.version} - zip - test + jakarta.servlet.jsp + jakarta.servlet.jsp-api + + - org.glassfish.main.tests.tck + jakarta.tck jakarta-pages-tck - ${project.version} - zip + 4.0.0 + test + + + + + jakarta.tck + common + 11.0.0-M1 + test + + + + jakarta.tck + signaturetest + 11.0.0-M1 + test + + + + javatest + javatest + 5.0 + test + + + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + test + + + org.junit.jupiter + junit-jupiter + test + + + junit + junit + test + + + + + jakarta.tck + sigtest-maven-plugin + 2.2 + test + + + + + org.omnifaces.arquillian + arquillian-glassfish-server-managed + 1.5 + test - 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 + unpack-glassfish-and-certs - unpack-dependencies + unpack + generate-test-resources - glassfish - ${project.build.directory} - - - - unpack-tck - pre-integration-test - - unpack-dependencies - - - jakarta-pages-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-failsafe-plugin - ${skipITs} + + jakarta.tck:jakarta-pages-tck + + + + ${glassfish.root}/glassfish8 + + + true + + + set server-config.network-config.protocols.protocol.http-listener-1.http.trace-enabled=true + create-file-user --groups guest --passwordfile ${project.basedir}/javajoe.pass javajoe + create-file-user --groups staff:mgr --passwordfile ${project.basedir}/j2ee.pass j2ee + list-file-users + + ee.jakarta.tck.pages.lib.implementation.sun.common.SunRIURL + + + ${project.build.directory}/jdk-bundle + ${glassfish.root}/glassfish8/glassfish/modules/jakarta.servlet.jsp-api.jar:${glassfish.root}/glassfish8/glassfish/modules/jakarta.servlet-api.jar:${glassfish.root}/glassfish8/glassfish/modules/jakarta.el-api.jar:${project.build.directory}/jdk-bundle/java.base:${project.build.directory}/jdk-bundle/java.rmi:${project.build.directory}/jdk-bundle/java.sql:${project.build.directory}/jdk-bundle/java.naming + - prepare-tck-and-glassfish - pre-integration-test - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ]]> - - ]]> - - - - ]]> - - ]]> - - - - - run - - - - - configure-tck-tests - pre-integration-test + run-tests - run + integration-test + verify - - - - - - - - - - - - - - - Deploying from ${test.dir} - - - - - - - - - - - - - - - - - - - - - - run-tck-tests integration-test - - run - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + full + + true + + + glassfish + full + + + + web + + web + web + + + diff --git a/appserver/tests/tck/tck-download/jakarta-pages-tck/pom.xml b/appserver/tests/tck/tck-download/jakarta-pages-tck/pom.xml index 49f7eac3504..d4df7b73a1e 100644 --- a/appserver/tests/tck/tck-download/jakarta-pages-tck/pom.xml +++ b/appserver/tests/tck/tck-download/jakarta-pages-tck/pom.xml @@ -1,7 +1,7 @@ - + 4.0.0 + org.glassfish.main.tests.tck tck-download @@ -32,8 +30,9 @@ TCK: Install Jakarta Pages TCK - jakarta-pages-tck-3.1.0.zip - https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee10/staged/eftl/${tck.test.pages.file} + jakarta-pages-tck-${tck.test.pages.version}.zip + https://download.eclipse.org/jakartaee/pages/4.0/${tck.test.pages.file} + 4.0.0 @@ -41,43 +40,43 @@ com.googlecode.maven-download-plugin download-maven-plugin + + ${tck.test.pages.url} + true + ${project.build.directory} + download-pages-tck - generate-resources wget + generate-resources - - true - true - ${tck.test.pages.url} - false - ${project.build.directory} - + maven-install-plugin - install-pages-tck - process-resources + install-pages-tck-jar install-file + process-resources - ${project.build.directory}/${tck.test.pages.file} - ${project.groupId} - ${project.artifactId} - ${project.version} - zip + ${project.build.directory}/pages-tck/artifacts/jakarta-pages-tck-4.0.0.jar + jakarta.tck + jakarta-pages-tck + ${tck.test.pages.version} + jar true + diff --git a/appserver/tests/tck/tck-download/javatest/pom.xml b/appserver/tests/tck/tck-download/javatest/pom.xml index 72a4d94aefd..1b7935153e4 100644 --- a/appserver/tests/tck/tck-download/javatest/pom.xml +++ b/appserver/tests/tck/tck-download/javatest/pom.xml @@ -123,6 +123,23 @@ true + + + install-javatest-as-5 + package + + install-file + + + ${project.build.directory}/javatest.jar + ${project.build.directory}/javatest-sources.jar + javatest + javatest + 5.0 + jar + true + + diff --git a/nucleus/parent/pom.xml b/nucleus/parent/pom.xml index fe494e790ca..88bf65c3b36 100644 --- a/nucleus/parent/pom.xml +++ b/nucleus/parent/pom.xml @@ -651,6 +651,12 @@ ${mimepull.version} + + org.junit.jupiter + junit-jupiter + ${junit.version} + test + org.junit.jupiter junit-jupiter-engine