[java-idp-plugin-webauthn] branch main updated: Fix test

Phil Smart philip.smart at jisc.ac.uk
Wed Jul 23 14:50:20 UTC 2025


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

philsmart pushed a commit to branch main
in repository java-idp-plugin-webauthn.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-webauthn.git;a=commit;h=11669fb25b302bbb7b6b05a08b1484b6136b1f22

The following commit(s) were added to refs/heads/main by this push:
     new 11669fb  Fix test
11669fb is described below

commit 11669fb25b302bbb7b6b05a08b1484b6136b1f22
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Wed Jul 23 15:50:16 2025 +0100

    Fix test
---
 .../storage/impl/IdPStorageServiceCredentialRespositoryTest.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespositoryTest.java b/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespositoryTest.java
index 7b7a927..fd6d67d 100644
--- a/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespositoryTest.java
+++ b/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespositoryTest.java
@@ -577,7 +577,7 @@ public class IdPStorageServiceCredentialRespositoryTest extends AbstractWebAuthn
         assertEquals(username, "jdoe");
     }
    
-    @Test(enabled= false)
+    @Test
     public void testGetUsernameFromCredentialIdCache_UsernameCredentialIdMappingInvalid() throws Exception {
         final CredentialRecord registration = createRegistration("jdoe", "John Doe", "user-handle".getBytes());
         repo.addRegistrationByUsername("jdoe", registration);
@@ -594,7 +594,7 @@ public class IdPStorageServiceCredentialRespositoryTest extends AbstractWebAuthn
         
         // Search for the other credentialId
         final String username = repo.getUsernameFromCredentialIdCache(new ByteArray("another-credentialId".getBytes()));
-        assertEquals(username, "jdoe");
+        assertNull(username);
     }
 
     @Test(expectedExceptions = CredentialRepositoryException.class)

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


More information about the commits mailing list