[java-opensaml] branch main updated: Reenable failing test with localized 404 URL.

Scott Cantor cantor.2 at osu.edu
Tue Nov 7 14:08:29 UTC 2023


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=3c3a8f59c7b0b9a27b00b4a571abb88b5f9b0aee

The following commit(s) were added to refs/heads/main by this push:
     new 3c3a8f59c Reenable failing test with localized 404 URL.
3c3a8f59c is described below

commit 3c3a8f59c7b0b9a27b00b4a571abb88b5f9b0aee
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Nov 7 09:08:25 2023 -0500

    Reenable failing test with localized 404 URL.
---
 .../metadata/resolver/impl/FileBackedHTTPMetadataResolverTest.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 443268dfc..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
@@ -79,7 +79,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         metadataURLHttp = RepositorySupport.buildHTTPResourceURL("java-opensaml", String.format("opensaml-saml-impl/src/test/resources/%s", relativeMDResource), false);
         
         entityID = "https://www.example.org/sp";
-        badMDURL = "http://test.shibboleth.net/foo/bar/baz/samlmd";
+        badMDURL = "https://test.shibboleth.net/foo/bar/baz/samlmd";
         backupFilePath = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") 
                 + "filebacked-http-metadata.xml";
         backupFile = new File(backupFilePath);
@@ -418,7 +418,7 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
      * 
      * @throws Exception if something goes wrong
      */
-    @Test(enabled=false)
+    @Test
     public void testNoBackupFileLoadWhenMetadataCached() throws Exception {
         try (FileOutputStream backupFileOutputStream = new FileOutputStream(backupFile)) {
             Resources.copy(Resources.getResource(relativeMDResource), backupFileOutputStream);
@@ -427,6 +427,8 @@ public class FileBackedHTTPMetadataResolverTest extends XMLObjectBaseTestCase {
         Assert.assertTrue(backupFile.exists(), "Backup file was not created");
         Assert.assertTrue(backupFile.length() > 0, "Backup file contains no data");
         
+        httpClientBuilder.setConnectionDisregardTLSCertificate(true);
+        
         metadataProvider = new FileBackedHTTPMetadataResolver(httpClientBuilder.buildClient(), badMDURL, backupFilePath);
         metadataProvider.setParserPool(parserPool);
         metadataProvider.setFailFastInitialization(true);

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


More information about the commits mailing list