[java-oidc-common] 01/02: Improved testing: make sure that only either local or remote JWK is set.

Henri Mikkonen henri.mikkonen at iki.fi
Thu Mar 11 15:48:05 UTC 2021


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

hjmikkon pushed a commit to branch main
in repository java-oidc-common.

View the commit online:
http://git.shibboleth.net/view/?p=java-oidc-common.git;a=commit;h=3f2b886883cee7635775cec4cb95c9e967b70fde

commit 3f2b886883cee7635775cec4cb95c9e967b70fde
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Thu Mar 11 17:12:30 2021 +0200

    Improved testing: make sure that only either local or remote JWK is set.
---
 .../oidc/metadata/impl/ClientInformationNodeProcessorTest.java          | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/oidc-common-metadata-impl/src/test/java/net/shibboleth/oidc/metadata/impl/ClientInformationNodeProcessorTest.java b/oidc-common-metadata-impl/src/test/java/net/shibboleth/oidc/metadata/impl/ClientInformationNodeProcessorTest.java
index 8e2a837..a612d0b 100644
--- a/oidc-common-metadata-impl/src/test/java/net/shibboleth/oidc/metadata/impl/ClientInformationNodeProcessorTest.java
+++ b/oidc-common-metadata-impl/src/test/java/net/shibboleth/oidc/metadata/impl/ClientInformationNodeProcessorTest.java
@@ -211,7 +211,9 @@ public class ClientInformationNodeProcessorTest extends XMLObjectBaseTestCase {
             Assert.assertNotNull(jwkSet.getKeyByKeyId("mockRSA"));
             Assert.assertNotNull(jwkSet.getKeyByKeyId("mockX509RSA"));
             Assert.assertNotNull(jwkSet.getKeyByKeyId("mockX509EC"));
+            Assert.assertNull(metadata.getJWKSetURI());
         } else {
+            Assert.assertNull(metadata.getJWKSet());
             Assert.assertEquals(metadata.getJWKSetURI(), new URI("https://example.org/jwks"));
         }
         

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


More information about the commits mailing list