[java-opensaml] branch main updated: Move MDQ tests over to proxied test.shibboleth.net URL.

Scott Cantor cantor.2 at osu.edu
Mon Jan 24 21:59:13 UTC 2022


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=d6033ee40a0ecfa4e6ef3bba558ace5df9d74435

The following commit(s) were added to refs/heads/main by this push:
     new d6033ee40 Move MDQ tests over to proxied test.shibboleth.net URL.
d6033ee40 is described below

commit d6033ee40a0ecfa4e6ef3bba558ace5df9d74435
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Jan 24 16:59:10 2022 -0500

    Move MDQ tests over to proxied test.shibboleth.net URL.
---
 .../resolver/impl/AbstractDynamicHTTPMetadataResolverTest.java      | 5 +++--
 .../impl/FunctionDrivenDynamicHTTPMetadataResolverTest.java         | 6 ++++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/AbstractDynamicHTTPMetadataResolverTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/AbstractDynamicHTTPMetadataResolverTest.java
index a095bae19..a3ffcc039 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/AbstractDynamicHTTPMetadataResolverTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/AbstractDynamicHTTPMetadataResolverTest.java
@@ -56,8 +56,9 @@ public class AbstractDynamicHTTPMetadataResolverTest extends XMLObjectBaseTestCa
     @BeforeMethod
     public void setUp() throws Exception {
         httpClientBuilder = new HttpClientBuilder();
+        httpClientBuilder.setConnectionDisregardTLSCertificate(true);
         
-        HttpClient httpClient = httpClientBuilder.buildClient();
+        final HttpClient httpClient = httpClientBuilder.buildClient();
         
         entityDescriptor = buildXMLObject(EntityDescriptor.DEFAULT_ELEMENT_NAME);
         entityDescriptor.setEntityID("https://foo1.example.org/idp/shibboleth");
@@ -82,7 +83,7 @@ public class AbstractDynamicHTTPMetadataResolverTest extends XMLObjectBaseTestCa
     @Test
     public void testBasicRequest() throws ResolverException {
         // Test uses MDQ protocol
-        String baseURL = "http://test.shibboleth.net:9000";
+        String baseURL = "https://test.shibboleth.net/mdq";
         String entityID = "https://foo1.example.org/idp/shibboleth";
         String requestURL = new MetadataQueryProtocolRequestURLBuilder(baseURL).apply(new CriteriaSet(new EntityIdCriterion(entityID)));
         
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 a45c82a3b..e3ad00b20 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
@@ -218,11 +218,12 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
     
     @Test
     public void testMDQ() throws Exception {
-        String baseURL = "http://test.shibboleth.net:9000";
+        String baseURL = "https://test.shibboleth.net/mdq";
         String entityID = "https://foo1.example.org/idp/shibboleth";
         
         MetadataQueryProtocolRequestURLBuilder requestURLBuilder = new MetadataQueryProtocolRequestURLBuilder(baseURL);
         
+        httpClientBuilder.setConnectionDisregardTLSCertificate(true);
         resolver = new FunctionDrivenDynamicHTTPMetadataResolver(httpClientBuilder.buildClient());
         resolver.setId("myDynamicResolver");
         resolver.setParserPool(parserPool);
@@ -239,12 +240,13 @@ public class FunctionDrivenDynamicHTTPMetadataResolverTest extends XMLObjectBase
     
     @Test
     public void testMDQViaArtifact() throws Exception {
-        String baseURL = "http://test.shibboleth.net:9000";
+        String baseURL = "https://test.shibboleth.net/mdq";
         String entityID = "https://foo1.example.org/idp/shibboleth";
         
         MetadataQueryProtocolRequestURLBuilder requestURLBuilder = new MetadataQueryProtocolRequestURLBuilder(baseURL,
                 Collections.singletonList(new SAMLArtifactURLBuilder()));
         
+        httpClientBuilder.setConnectionDisregardTLSCertificate(true);
         resolver = new FunctionDrivenDynamicHTTPMetadataResolver(httpClientBuilder.buildClient());
         resolver.setId("myDynamicResolver");
         resolver.setParserPool(parserPool);

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


More information about the commits mailing list