Skip to content

Commit

Permalink
Merge pull request #90 from Pandrex247/FISH-10024-Use-Zips-EE10-Squash
Browse files Browse the repository at this point in the history
FISH-10024 FISH-10044 Download and Use Zips (EE10)
  • Loading branch information
Pandrex247 authored Nov 5, 2024
2 parents fd12265 + c3697d4 commit 1578767
Show file tree
Hide file tree
Showing 62 changed files with 2,255 additions and 2,245 deletions.
File renamed without changes.
11 changes: 7 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[submodule "inject-tck/ditck-porting"]
path = inject-tck/ditck-porting
url = https://github.com/payara/ditck-porting
branch = EE10
[submodule "cdi-tck/glassfish-cdi-porting-tck"]
path = cdi-tck/glassfish-cdi-porting-tck
url = https://github.com/payara/glassfish-cdi-porting-tck
[submodule "cdi-tck/cditck-porting"]
path = cdi-tck/cditck-porting
url = https://github.com/payara/cditck-porting
branch = EE10
[submodule "inject-tck/ditck-porting"]
path = inject-tck/ditck-porting
url = https://github.com/payara/ditck-porting
branch = EE10
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# jakartaee-10-tck-runners

## Jakarta JSON Processing
Payara runners for the standalone Jakarta EE TCKs.
See individual module READMEs for details, but general usage is:

### Prerequisites
To be able to run the TCK test, you need to setup remote Payara Server in order to run the Arquillian against the container

### Test Executions
**(Make sure the Payara server up and running)**

Run maven test from jsonp-tck module

cd jsonp-tck
mvn test
`mvn clean verify -Dpayara.version=${payaraVersion} -Ppayara-server-managed -pl . -pl tck-download -pl tck-download/${tckToRun} -pl ${tckToRun}`
24 changes: 24 additions & 0 deletions authorization-tck/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Jakarta Authorization TCK Runner

## Prerequisite

Download and install the TCK into your local Maven repo.
From the top-level directory: `mvn clean install -pl . -pl tck-download -pl tck-download/jakarta-authorization-tck -Pjakarta-staging`

## Test Execution

To execute the full TCK against a managed Payara Server

```
mvn clean verify
```

### Debugging

Utilise the `payara-server-remote` profile.
This profile expects that the TCK has been run in its entirety at least once to perform the necessary setup.

* Move into the TCK for the rerun: `cd authorization-tck/target/authorization-tck-3.0.0/tck`
* Install the common TCK module (make sure you don't clean!): `mvn install -Ppayara-server-remote,jakarta-staging -pl . -pl common -DskipTests`
* Start the configured Payara Server found at `authorization-tck/target/authorization-tck-3.0.0/tck/target/payara7` and attach your debugger
* Run your specific TCK module test (make sure you don't clean!), for example: `mvn verify -Ppayara-server-remote,jakarta-staging -f app-custom-policy2 -Dit.test=AppCustomPolicy2IT#testAuthenticatedSpecial`
414 changes: 414 additions & 0 deletions authorization-tck/payara-pom.xml

Large diffs are not rendered by default.

134 changes: 57 additions & 77 deletions authorization-tck/pom.xml

Large diffs are not rendered by default.

60 changes: 31 additions & 29 deletions batch-tck/apitests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation

<!-- Used to help determine sh vs. bat -->
<script.ext/>
<payara.executable>${payara.home}${file.separator}glassfish${file.separator}bin${file.separator}asadmin${script.ext}</payara.executable>

<slf4j.version>1.7.30</slf4j.version>
<slf4j.version>2.0.16</slf4j.version>
</properties>

<dependencies>
Expand All @@ -51,24 +50,24 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<groupId>jakarta.batch</groupId>
<artifactId>com.ibm.jbatch.tck</artifactId>
<scope>test</scope>
<version>${jakarta.batch.version}</version>
<version>${jakarta.tck.batch.version}</version>
</dependency>
<dependency>
<groupId>jakarta.batch</groupId>
<artifactId>com.ibm.jbatch.tck.appbean</artifactId>
<scope>test</scope>
<version>${jakarta.batch.version}</version>
<version>${jakarta.tck.batch.version}</version>
</dependency>
<dependency>
<groupId>jakarta.batch</groupId>
<artifactId>com.ibm.jbatch.tck.spi</artifactId>
<scope>test</scope>
<version>${jakarta.batch.version}</version>
<version>${jakarta.tck.batch.version}</version>
</dependency>
<dependency>
<groupId>jakarta.batch</groupId>
<artifactId>jakarta.batch.arquillian.extension</artifactId>
<version>${jakarta.batch.version}</version>
<version>${jakarta.tck.batch.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
Expand All @@ -88,7 +87,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<groupId>jakarta.batch</groupId>
<artifactId>jakarta.batch.reporting</artifactId>
<scope>test</scope>
<version>${jakarta.batch.version}</version>
<version>${jakarta.tck.batch.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down Expand Up @@ -124,7 +123,6 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>${download.maven.plugin.version}</version>
<executions>
<execution>
<id>download-derby</id>
Expand All @@ -133,7 +131,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>wget</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<url>${derby.zip.url}</url>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}</outputDirectory>
Expand All @@ -145,7 +143,6 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven.antrun.plugin.version}</version>
<executions>
<execution>
<id>copy-arquillian-config</id>
Expand All @@ -154,7 +151,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target>
<copy file="${project.basedir}${file.separator}src${file.separator}test${file.separator}resources${file.separator}arquillian.xml"
todir="${project.build.directory}${file.separator}test-classes"
Expand All @@ -170,7 +167,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target unless="skip.setup">
<move todir="${payara.db.home}">
<fileset dir="${db.download.location}" />
Expand All @@ -189,9 +186,9 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target if="payara.server.managed" unless="skip.setup">
<exec executable="${payara.executable}">
<exec executable="${payara.asadmin}">
<arg value="start-domain" />
</exec>
</target>
Expand All @@ -205,7 +202,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target>
<exec executable="${payara.db.home}${file.separator}bin${file.separator}startNetworkServer${script.ext}" spawn="true" dir="${payara.db.home}"/>
<echo message="Waiting 3 seconds for database in forked process to start..."/>
Expand All @@ -221,7 +218,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target>
<exec executable="${payara.db.home}${file.separator}bin${file.separator}ij${script.ext}" dir="${payara.db.home}">
<arg value="${basedir}${file.separator}src${file.separator}test${file.separator}resources${file.separator}derby.ddl.jbatch-tck.sql" />
Expand All @@ -237,9 +234,9 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target unless="skip.setup">
<exec executable="${payara.executable}">
<exec executable="${payara.asadmin}">
<arg value="create-jdbc-connection-pool" />
<arg value="--datasourceClassname=org.apache.derby.jdbc.ClientDataSource40" />
<arg value="--resType=javax.sql.DataSource" />
Expand All @@ -257,9 +254,9 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target unless="skip.setup">
<exec executable="${payara.executable}">
<exec executable="${payara.asadmin}">
<arg value="create-jdbc-resource" />
<arg value="--poolName=batchtck" />
<arg value="jdbc/orderDB" />
Expand All @@ -275,9 +272,9 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target if="payara.server.managed" unless="skip.setup">
<exec executable="${payara.executable}">
<exec executable="${payara.asadmin}">
<arg value="stop-domain" />
</exec>
</target>
Expand All @@ -290,9 +287,9 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target if="payara.server.remote" unless="skip.setup">
<exec executable="${payara.executable}">
<exec executable="${payara.asadmin}">
<arg value="restart-domain" />
</exec>
</target>
Expand All @@ -306,7 +303,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<goal>run</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<skip>${skipTests}</skip>
<target>
<exec executable="${payara.db.home}${file.separator}bin${file.separator}stopNetworkServer${script.ext}" dir="${payara.db.home}"/>
</target>
Expand All @@ -318,7 +315,6 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven.dependency.plugin.version}</version>
<executions>
<execution>
<id>unpack-tck</id>
Expand All @@ -342,7 +338,6 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration>
<failIfNoTests>false</failIfNoTests>
<systemPropertyVariables>
Expand Down Expand Up @@ -372,7 +367,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<execution>
<id>ee-core-suite-web</id>
<goals>
<goal>integration-test</goal>
Expand Down Expand Up @@ -407,7 +402,7 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<execution>
<id>appjoboperator-suite-web</id>
<goals>
<goal>integration-test</goal>
Expand All @@ -424,6 +419,13 @@ Copyright (c) 2022 Contributors to the Eclipse Foundation
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<id>verify</id>
<phase>verify</phase>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
Loading

0 comments on commit 1578767

Please sign in to comment.