[java-idp-integration-tests] 02/07: Speed up IdP startup by not scanning for annotations in WEB-INF/lib
Tom Zeller
tzeller at dragonacea.biz
Wed May 5 20:46:40 UTC 2021
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch main
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=b484c907d71f6b7ded459a1d7b06f7eed8a790d1
commit b484c907d71f6b7ded459a1d7b06f7eed8a790d1
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Wed May 5 14:48:21 2021 -0500
Speed up IdP startup by not scanning for annotations in WEB-INF/lib
---
.../net/shibboleth/idp/test/BaseIntegrationTest.java | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index f6b57b8..a0a9388 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -831,6 +831,23 @@ public abstract class BaseIntegrationTest
replaceFile(pathToIdPWebXML, oldText, builder.toString());
}
+ @BeforeClass(enabled = true, dependsOnMethods = {"setUpIdPPaths"})
+ public void setUpIdPWebApp() throws Exception {
+ final Path pathToIdPXML = pathToIdPHome.resolve(Paths.get("jetty-base", "webapps", "idp.xml"));
+ Assert.assertTrue(pathToIdPXML.toAbsolutePath().toFile().exists(), "Path to idp.xml not found");
+
+ final String oldText = "</Configure>";
+
+ final StringBuilder builder = new StringBuilder();
+ builder.append(" <Call name=\"setAttribute\">\n");
+ builder.append(" <Arg>org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern</Arg>\n");
+ builder.append(" <Arg>none</Arg>\n");
+ builder.append(" </Call>\n");
+ builder.append("</Configure>\n");
+
+ replaceFile(pathToIdPXML, oldText, builder.toString());
+ }
+
/**
* Set the {@link #IDP_XML_SECURITY_MANAGER_PROP_NAME} property to {@link #IDP_XML_SECURITY_MANAGER_PROP_VALUE}.
* Save the previous value.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list