[java-opensaml] branch main updated: Re-enable repoitory accessing tests.
Scott Cantor
cantor.2 at osu.edu
Sun Jul 6 16:06:28 UTC 2025
This is an automated email from the git hooks/post-receive script.
scantor 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=cd5bf9bc070a76837d9e12e234175fa3628ed875
The following commit(s) were added to refs/heads/main by this push:
new cd5bf9bc0 Re-enable repoitory accessing tests.
cd5bf9bc0 is described below
commit cd5bf9bc070a76837d9e12e234175fa3628ed875
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Sun Jul 6 12:06:26 2025 -0400
Re-enable repoitory accessing tests.
---
.../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 f7d8c291f..c3704760f 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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @BeforeClass
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @BeforeMethod
protected void setUpMethod() throws Exception {
metadataProvider = new HTTPMetadataResolver(httpClient, inCommonMDURL);
metadataProvider.setHttpClientSecurityParameters(httpClientParams);
}
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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 5268c5c9e..91233488f 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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @BeforeMethod
protected void setUp() throws Exception {
httpClientBuilder = new HttpClientBuilder();
@@ -87,13 +87,13 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
criteriaSet = new CriteriaSet(new EntityIdCriterion(entityID));
}
- @AfterMethod(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @AfterMethod
protected void tearDown() throws IOException {
Path nioBackupFilePath = backupFile.toPath();
Files.deleteIfExists(nioBackupFilePath);
}
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
public void testInactive() throws Exception {
final boolean allowActivation = false;
@@ -121,7 +121,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
*
* @throws Exception ...
*/
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
public void testHTTPSTrustEngineExplicitKey() throws Exception {
httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
@@ -552,7 +552,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
}
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
public void testHTTPSTrustEngineInvalidKey() throws Exception {
httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
@@ -574,7 +574,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
}
}
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
public void testHTTPSTrustEngineInvalidPKIX() throws Exception {
httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
@@ -641,7 +641,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
}
}
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
public void testHTTPSTrustEngineValidPKIXInvalidName() throws Exception {
httpClientBuilder.setTLSSocketFactory(HTTPMetadataResolverTest.buildSocketFactory());
@@ -664,7 +664,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
}
}
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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 31279c63e..e4b3e5307 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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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 e228bd351..c8a354333 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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
public void testNoFailFastBadURL() throws Exception {
metadataProvider = new HTTPMetadataResolver(httpClientBuilder.buildClient(), badMDURL);
@@ -188,7 +188,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
Assert.assertNull(descriptor);
}
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
public void testHTTPSTrustEngineExplicitKey() throws Exception {
httpClientBuilder.setTLSSocketFactory(buildSocketFactory());
@@ -303,7 +303,7 @@ public class HTTPMetadataResolverTest extends XMLObjectBaseTestCase {
}
}
- @Test(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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 8f928fbaa..461a880f2 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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS) public void testNoSecurityAdded() throws IOException, ComponentInitializationException {
+ @Test 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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS) public void testHostnameRejected() throws IOException, ComponentInitializationException {
+ @Test 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 9e099aaa7..26aa35f58 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(enabled=RepositorySupport.ENABLE_GITWEB_TESTS)
+ @Test
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