Skip to content

Commit

Permalink
Merge pull request #147 from arjantijms/refactor_policy_in_servlet
Browse files Browse the repository at this point in the history
Refactor the policy usage in Servlet test somewhat
  • Loading branch information
arjantijms committed Mar 12, 2024
2 parents a669613 + 0a255f7 commit 7d4c193
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
Expand Up @@ -27,11 +27,11 @@
<version>4.0.0-SNAPSHOT</version>
</parent>

<artifactId>app-mem-policy3</artifactId>
<artifactId>app-policy-use-within-servlet</artifactId>
<packaging>war</packaging>

<description>
Access a Servlet, and check from within that Servlet whether the
Access a Servlet (the resource), and check from within that Servlet whether the
permission checks from the Policy match with the expectations for that request.
</description>

Expand Down
Expand Up @@ -30,7 +30,7 @@


@RunWith(Arquillian.class)
public class AppPolicy3IT extends ArquillianBase {
public class AppPolicyWithinServletIT extends ArquillianBase {

@Deployment(testable = false)
public static Archive<?> createDeployment() {
Expand Down
17 changes: 12 additions & 5 deletions tck/pom.xml
Expand Up @@ -46,14 +46,21 @@
execute with mvn ... -Dtck.log.response
For a somewhat faster execution using GlassFish use:
mvn clean install -Dglassfish.keepServerRunning -Dglassfish.keepDeployment -DskipSBOM
-->
<modules>
<module>common</module>

<!-- Setting a Jakarta Authorization policy -->
<!-- Setting a custom Jakarta Authorization policy -->
<module>app-custom-policy</module>
<module>app-custom-policy2</module>
<module>app-policy3</module>


<!-- Using the default Jakarta Authorization policy from within a Servlet -->
<module>app-policy-within-servlet</module>
</modules>

<properties>
Expand All @@ -62,8 +69,6 @@
<zipname>${project.artifactId}-${project.version}</zipname>
<licenseFile>${project.basedir}/LICENSE_EFTL.md</licenseFile>

<security-api.version>4.0.0-SNAPSHOT</security-api.version>

<buildDirectory>${project.basedir}/target</buildDirectory>
</properties>

Expand Down Expand Up @@ -276,6 +281,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>unpack</id>
Expand All @@ -293,7 +299,7 @@
<artifactId>glassfish</artifactId>
<version>${glassfish.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
<overWrite>false</overWrite>
<outputDirectory>${glassfish.root}</outputDirectory>
</artifactItem>
</artifactItems>
Expand All @@ -305,6 +311,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<inherited>false</inherited>
<executions>
<execution>
<id>set-port</id>
Expand Down

0 comments on commit 7d4c193

Please sign in to comment.