[java-opensaml] branch main updated: Supress GITWEB tests for now

Rod Widdowson rdw at steadingsoftware.com
Sat Jul 5 15:11:28 UTC 2025


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=ecd877f2f05dae882cdefe0f0e438dab70dbcc8e

The following commit(s) were added to refs/heads/main by this push:
     new ecd877f2f Supress GITWEB tests for now
ecd877f2f is described below

commit ecd877f2f05dae882cdefe0f0e438dab70dbcc8e
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Jul 5 16:00:14 2025 +0100

    Supress GITWEB tests for now
---
 .../resolver/filter/impl/EntityRoleFilterTest.java | 10 ++---
 .../impl/FileBackedHTTPMetadataResolverTest.java   | 44 +++++++++++-----------
 ...ctionDrivenDynamicHTTPMetadataResolverTest.java | 22 +++++------
 .../resolver/impl/HTTPMetadataResolverTest.java    | 18 ++++-----
 .../SecurityEnhancedHTTPResourceTest.java          |  4 +-
 .../support/tests/DetachedSignatureTest.java       |  2 +-
 6 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/filter/impl/EntityRoleFilterTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/filter/impl/EntityRoleFilterTest.java
index c3704760f..f7d8c291f 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/filter/impl/EntityRoleFilterTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/filter/impl/EntityRoleFilterTest.java
@@ -51,7 +51,7 @@ public class EntityRoleFilterTest extends XMLObjectBaseTestCase {
     /** URL to InCommon metadata. */
     private String inCommonMDURL;
     
-    @BeforeClass
+    @BeforeClass(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     protected void setUpClass() throws Exception {
         httpClientBuilder = new HttpClientBuilder();
         httpClientBuilder.setConnectionTimeout(Duration.ofSeconds(5));
@@ -64,13 +64,13 @@ public class EntityRoleFilterTest extends XMLObjectBaseTestCase {
         inCommonMDURL = RepositorySupport.buildHTTPSResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/saml2/metadata/InCommon-metadata.xml");
     }
 
-    @BeforeMethod
+    @BeforeMethod(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     protected void setUpMethod() throws Exception {
         metadataProvider = new HTTPMetadataResolver(httpClient, inCommonMDURL);
         metadataProvider.setHttpClientSecurityParameters(httpClientParams);
     }
 
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testWhiteListSPRole() throws Exception {
         final ArrayList<QName> retainedRoles = new ArrayList<>();
         retainedRoles.add(SPSSODescriptor.DEFAULT_ELEMENT_NAME);
@@ -83,7 +83,7 @@ public class EntityRoleFilterTest extends XMLObjectBaseTestCase {
         metadataProvider.initialize();
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testWhiteListIdPRoles() throws Exception {
         final ArrayList<QName> retainedRoles = new ArrayList<>();
         retainedRoles.add(IDPSSODescriptor.DEFAULT_ELEMENT_NAME);
@@ -98,7 +98,7 @@ public class EntityRoleFilterTest extends XMLObjectBaseTestCase {
         metadataProvider.initialize();
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testWhiteListNoRole() throws Exception {
         final ArrayList<QName> retainedRoles = new ArrayList<>();
         final EntityRoleFilter filter = new EntityRoleFilter(retainedRoles);
diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FileBackedHTTPMetadataResolverTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FileBackedHTTPMetadataResolverTest.java
index 91233488f..5268c5c9e 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FileBackedHTTPMetadataResolverTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FileBackedHTTPMetadataResolverTest.java
@@ -68,7 +68,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
     private String entityID;
     private CriteriaSet criteriaSet;
 
-    @BeforeMethod
+    @BeforeMethod(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     protected void setUp() throws Exception {
         httpClientBuilder = new HttpClientBuilder();
         
@@ -87,13 +87,13 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         criteriaSet = new CriteriaSet(new EntityIdCriterion(entityID));
     }
 
-    @AfterMethod
+    @AfterMethod(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     protected void tearDown() throws IOException {
         Path nioBackupFilePath = backupFile.toPath();
         Files.deleteIfExists(nioBackupFilePath);
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testInactive() throws Exception {
         final boolean allowActivation = false;
 
@@ -121,7 +121,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception ...
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testGetEntityDescriptor() throws Exception {
         Assert.assertFalse(backupFile.exists());
         
@@ -147,7 +147,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testFailFastBadURL() throws Exception {
         metadataProvider = new FileBackedHTTPMetadataResolver(httpClientBuilder.buildClient(), badMDURL, backupFilePath);
         
@@ -171,7 +171,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testNoFailFastBadURL() throws Exception {
         metadataProvider = new FileBackedHTTPMetadataResolver(httpClientBuilder.buildClient(), badMDURL, backupFilePath);
         
@@ -199,7 +199,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      *  
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testFailFastBadBackupFile() throws Exception {
         try {
             // Use a known existing directory as backup file path, which is an invalid argument.
@@ -226,7 +226,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      *  
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testNoFailFastBadBackupFile() throws Exception {
         try {
             // Use a known existing directory as backup file path, which is an invalid argument.
@@ -259,7 +259,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testInitFromBackupFile() throws Exception {
         try (FileOutputStream backupFileOutputStream = new FileOutputStream(backupFile)) {
             Resources.copy(Resources.getResource(relativeMDResource), backupFileOutputStream);
@@ -315,7 +315,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testInitFromExpiredBackupFile() throws Exception {
         try (FileOutputStream backupFileOutputStream = new FileOutputStream(backupFile)) {
             Resources.copy(Resources.getResource(relativeMDResourceExpired), backupFileOutputStream);
@@ -368,7 +368,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testInitFromBadBackupFileNonFailFast() throws Exception {
         try (FileOutputStream backupFileOutputStream = new FileOutputStream(backupFile)) {
             Resources.copy(Resources.getResource(relativeMDResourceBad), backupFileOutputStream);
@@ -418,7 +418,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testNoBackupFileLoadWhenMetadataCached() throws Exception {
         try (FileOutputStream backupFileOutputStream = new FileOutputStream(backupFile)) {
             Resources.copy(Resources.getResource(relativeMDResource), backupFileOutputStream);
@@ -462,7 +462,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertNotNull(metadataProvider.resolveSingle(criteriaSet), "Metadata retrieved from cached metadata was null");
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testTrustEngineSocketFactoryNoHTTPSNoTrustEngine() throws Exception  {
         // Make sure resolver works when TrustEngine socket factory is configured but just using an HTTP URL.
         httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory(true));
@@ -481,7 +481,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertEquals(descriptor.getEntityID(), entityID, "Entity's ID does not match requested ID");
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testTrustEngineSocketFactoryNoHTTPSWithTrustEngine() throws Exception  {
         // Make sure resolver works when TrustEngine socket factory is configured but just using an HTTP URL.
         httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
@@ -503,7 +503,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertEquals(descriptor.getEntityID(), entityID, "Entity's ID does not match requested ID");
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSNoTrustEngine() throws Exception  {
         try {
             System.setProperty("javax.net.ssl.trustStore", getClass().getResource("repo.truststore.jks").getFile());
@@ -530,7 +530,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         }
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineExplicitKey() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
         
@@ -552,7 +552,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
     }
     
 
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineInvalidKey() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
         
@@ -574,7 +574,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         }
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineValidPKIX() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
         
@@ -597,7 +597,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertEquals(descriptor.getEntityID(), entityID, "Entity's ID does not match requested ID");
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineValidPKIXExplicitName() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
         
@@ -619,7 +619,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertEquals(descriptor.getEntityID(), entityID, "Entity's ID does not match requested ID");
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineInvalidPKIX() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
         
@@ -641,7 +641,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         }
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineValidPKIXInvalidName() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
         
@@ -664,7 +664,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         }
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineWrongSocketFactory() throws Exception  {
         // Trust engine set, but appropriate socket factory not set
         metadataProvider = new FileBackedHTTPMetadataResolver(httpClientBuilder.buildClient(), metadataURLHttps, backupFilePath);
diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FunctionDrivenDynamicHTTPMetadataResolverTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FunctionDrivenDynamicHTTPMetadataResolverTest.java
index e4b3e5307..31279c63e 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FunctionDrivenDynamicHTTPMetadataResolverTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FunctionDrivenDynamicHTTPMetadataResolverTest.java
@@ -62,7 +62,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
     }
     
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testInactive() throws Exception {
         // Repo should return 'text/xml', which is supported by default.
         String template = RepositorySupport.buildHTTPResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml", false);
@@ -88,7 +88,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed);
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testTemplateFromRepoDefaultContentTypes() throws Exception {
         // Repo should return 'text/xml', which is supported by default.
         String template = RepositorySupport.buildHTTPResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml", false);
@@ -295,7 +295,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed.getDOM());
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testTrustEngineSocketFactoryNoHTTPSNoTrustEngine() throws Exception {
         String template = RepositorySupport.buildHTTPResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml", false);
         String entityID = "https://www.example.org/sp";
@@ -323,7 +323,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed.getDOM());
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testTrustEngineSocketFactoryNoHTTPSWithTrustEngine() throws Exception  {
         String template = RepositorySupport.buildHTTPResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml", false);
         String entityID = "https://www.example.org/sp";
@@ -356,7 +356,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed.getDOM());
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSNoTrustEngine() throws Exception  {
         try {
             System.setProperty("javax.net.ssl.trustStore", getClass().getResource("repo.truststore.jks").getFile());
@@ -392,7 +392,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         }
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineExplicitKey() throws Exception  {
         String template = RepositorySupport.buildHTTPSResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml");
         String entityID = "https://www.example.org/sp";
@@ -456,7 +456,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed);
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineValidPKIX() throws Exception  {
         String template = RepositorySupport.buildHTTPSResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml");
         String entityID = "https://www.example.org/sp";
@@ -489,7 +489,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed.getDOM());
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineValidPKIXExplicitName() throws Exception  {
         String template = RepositorySupport.buildHTTPSResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml");
         String entityID = "https://www.example.org/sp";
@@ -522,7 +522,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed.getDOM());
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineInvalidPKIX() throws Exception  {
         String template = RepositorySupport.buildHTTPSResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml");
         String entityID = "https://www.example.org/sp";
@@ -553,7 +553,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed);
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineValidPKIXInvalidName() throws Exception  {
         String template = RepositorySupport.buildHTTPSResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml");
         String entityID = "https://www.example.org/sp";
@@ -584,7 +584,7 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
         Assert.assertNull(ed);
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineWrongSocketFactory() throws Exception  {
         String template = RepositorySupport.buildHTTPSResourceURL("java-opensaml", "opensaml-saml-impl/src/test/resources/org/opensaml/saml/metadata/resolver/impl/${entityID}.xml");
         String entityID = "https://www.example.org/sp";
diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/HTTPMetadataResolverTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/HTTPMetadataResolverTest.java
index c8a354333..e228bd351 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/HTTPMetadataResolverTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/HTTPMetadataResolverTest.java
@@ -92,7 +92,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception 
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testInactive() throws Exception {
         try {
             metadataProvider = new HTTPMetadataResolver(httpClientBuilder.buildClient(), metadataURLHttp);
@@ -116,7 +116,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * Tests the {@link HTTPMetadataResolver#lookupEntityID(String)} method.
      * @throws Exception 
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testGetEntityDescriptor() throws Exception {
         try {
             metadataProvider = new HTTPMetadataResolver(httpClientBuilder.buildClient(), metadataURLHttp);
@@ -165,7 +165,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception if something goes wrong
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testNoFailFastBadURL() throws Exception {
         metadataProvider = new HTTPMetadataResolver(httpClientBuilder.buildClient(), badMDURL);
         
@@ -188,7 +188,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertNull(descriptor);
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testTrustEngineSocketFactoryNoHTTPSNoTrustEngine() throws Exception  {
         // Make sure resolver works when TrustEngine socket factory is configured but just using an HTTP URL.
         httpClientBuilder.setTLSSocketFactory(buildSocketFactory(true));
@@ -207,7 +207,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertEquals(descriptor.getEntityID(), entityID, "Entity's ID does not match requested ID");
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testTrustEngineSocketFactoryNoHTTPSWithTrustEngine() throws Exception  {
         // Make sure resolver works when TrustEngine socket factory is configured but just using an HTTP URL.
         httpClientBuilder.setTLSSocketFactory(buildSocketFactory());
@@ -230,7 +230,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertEquals(descriptor.getEntityID(), entityID, "Entity's ID does not match requested ID");
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSNoTrustEngine() throws Exception  {
         try {
             System.setProperty("javax.net.ssl.trustStore", getClass().getResource("repo.truststore.jks").getFile());
@@ -256,7 +256,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         }
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineExplicitKey() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(buildSocketFactory());
         
@@ -303,7 +303,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         }
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineValidPKIX() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(buildSocketFactory());
         
@@ -326,7 +326,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertEquals(descriptor.getEntityID(), entityID, "Entity's ID does not match requested ID");
     }
     
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testHTTPSTrustEngineValidPKIXExplicitName() throws Exception  {
         httpClientBuilder.setTLSSocketFactory(buildSocketFactory());
         
diff --git a/opensaml-security-api/src/test/java/org/opensaml/security/httpclient/SecurityEnhancedHTTPResourceTest.java b/opensaml-security-api/src/test/java/org/opensaml/security/httpclient/SecurityEnhancedHTTPResourceTest.java
index 461a880f2..8f928fbaa 100644
--- a/opensaml-security-api/src/test/java/org/opensaml/security/httpclient/SecurityEnhancedHTTPResourceTest.java
+++ b/opensaml-security-api/src/test/java/org/opensaml/security/httpclient/SecurityEnhancedHTTPResourceTest.java
@@ -59,14 +59,14 @@ public class SecurityEnhancedHTTPResourceTest {
         handler.initialize();
     }
 
-    @Test public void testNoSecurityAdded() throws IOException, ComponentInitializationException {
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS) public void testNoSecurityAdded() throws IOException, ComponentInitializationException {
         final HTTPResource existsResource = new HTTPResource(client, existsHttp);
         existsResource.setHttpClientContextHandler(handler);
         
         Assert.assertTrue(ResourceTestHelper.compare(existsResource, new ClassPathResource(path)));
     }
 
-    @Test public void testHostnameRejected() throws IOException, ComponentInitializationException {
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS) public void testHostnameRejected() throws IOException, ComponentInitializationException {
         final HTTPResource existsResource = new HTTPResource(client, existsHttps);
         existsResource.setHttpClientContextHandler(handler);
         
diff --git a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/signature/support/tests/DetachedSignatureTest.java b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/signature/support/tests/DetachedSignatureTest.java
index 26aa35f58..9e099aaa7 100644
--- a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/signature/support/tests/DetachedSignatureTest.java
+++ b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/signature/support/tests/DetachedSignatureTest.java
@@ -137,7 +137,7 @@ public class DetachedSignatureTest extends XMLObjectBaseTestCase {
      * @throws MarshallingException thrown if the XMLObject tree can not be marshalled
      * @throws SignatureException ...
      */
-    @Test
+    @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
     public void testExternalSignatureAndVerification() throws MarshallingException, SignatureException {
         // This is necessary as of Santuario 2.3.0, which removed the -DirectHTTP and -LocalFilesystem resolvers by default.
         // Unfortunately it's stored in static storage and no way to clear or reset after the test.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list