[java-idp-plugin-duo] branch main updated: Relocate unit test.

Scott Cantor cantor.2 at osu.edu
Tue Apr 16 23:05:00 UTC 2024


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

scantor pushed a commit to branch main
in repository java-idp-plugin-duo.

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

The following commit(s) were added to refs/heads/main by this push:
     new eb74c305 Relocate unit test.
eb74c305 is described below

commit eb74c305013ab373aa601fe356c3bd7371e8e2e8
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Apr 16 19:04:57 2024 -0400

    Relocate unit test.
---
 .../shibboleth/idp/plugin/authn/duo/SealerKeyStore.jks    | Bin 984 -> 0 bytes
 .../shibboleth/idp/plugin/authn/duo/SealerKeyStore.kver   |   1 -
 .../authn/duo/impl}/PasswordlessCookieManagerTest.java    |  12 ++++++------
 .../idp/plugin/authn/spring}/TestResourceConverter.java   |   2 +-
 4 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/idp-duo-api/src/test/resources/net/shibboleth/idp/plugin/authn/duo/SealerKeyStore.jks b/idp-duo-api/src/test/resources/net/shibboleth/idp/plugin/authn/duo/SealerKeyStore.jks
deleted file mode 100644
index 147d92bb..00000000
Binary files a/idp-duo-api/src/test/resources/net/shibboleth/idp/plugin/authn/duo/SealerKeyStore.jks and /dev/null differ
diff --git a/idp-duo-api/src/test/resources/net/shibboleth/idp/plugin/authn/duo/SealerKeyStore.kver b/idp-duo-api/src/test/resources/net/shibboleth/idp/plugin/authn/duo/SealerKeyStore.kver
deleted file mode 100644
index 2cd48df3..00000000
--- a/idp-duo-api/src/test/resources/net/shibboleth/idp/plugin/authn/duo/SealerKeyStore.kver
+++ /dev/null
@@ -1 +0,0 @@
-CurrentVersion = 1
diff --git a/idp-duo-api/src/test/java/net/shibboleth/idp/plugin/authn/duo/PasswordlessCookieManagerTest.java b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/PasswordlessCookieManagerTest.java
similarity index 94%
rename from idp-duo-api/src/test/java/net/shibboleth/idp/plugin/authn/duo/PasswordlessCookieManagerTest.java
rename to idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/PasswordlessCookieManagerTest.java
index b0e8a030..c45251c1 100644
--- a/idp-duo-api/src/test/java/net/shibboleth/idp/plugin/authn/duo/PasswordlessCookieManagerTest.java
+++ b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/PasswordlessCookieManagerTest.java
@@ -12,8 +12,10 @@
  * limitations under the License.
  */
 
-package net.shibboleth.idp.plugin.authn.duo;
+package net.shibboleth.idp.plugin.authn.duo.impl;
 
+import net.shibboleth.idp.plugin.authn.duo.PasswordlessCookieManager;
+import net.shibboleth.idp.plugin.authn.spring.TestResourceConverter;
 import net.shibboleth.shared.annotation.constraint.NotEmpty;
 import net.shibboleth.shared.component.ComponentInitializationException;
 import net.shibboleth.shared.net.CookieManager;
@@ -39,15 +41,13 @@ import jakarta.servlet.http.HttpServletRequest;
 import jakarta.servlet.http.HttpServletResponse;
 
 /**
- * Test for {@link DataSealer}.
+ * Test for {@link PasswordlessCookieManager}.
  */
 @SuppressWarnings("javadoc")
 public class PasswordlessCookieManagerTest {
 
     @Nonnull @NotEmpty private static final String COOKIE_NAME = "_cookieName";
     
-    @Nonnull @NotEmpty private static final String SEALED_VALUE = "AAdzZWNyZXQxEUmXRgYcpPmfun5aNJtN60oxB3Mknti8GyvBQfxAuIuId4VOMyO65fN9iSagz5m8oiP5s0dJMBQa4%2FQ%3D";
-    
     private Resource keystoreResource;
     private Resource versionResource;
     
@@ -60,12 +60,12 @@ public class PasswordlessCookieManagerTest {
     @BeforeClass
     public void beforeClass() throws DataSealerException, ComponentInitializationException {
         ClassPathResource resource =
-                new ClassPathResource("/net/shibboleth/idp/plugin/authn/duo/SealerKeyStore.jks");
+                new ClassPathResource("/net/shibboleth/idp/plugin/authn/duo/impl/SealerKeyStore.jks");
         Assert.assertTrue(resource.exists());
         keystoreResource = TestResourceConverter.of(resource);
 
         resource =
-                new ClassPathResource("/net/shibboleth/idp/plugin/authn/duo/SealerKeyStore.kver");
+                new ClassPathResource("/net/shibboleth/idp/plugin/authn/duo/impl/SealerKeyStore.kver");
         Assert.assertTrue(resource.exists());
         versionResource = TestResourceConverter.of(resource);
         
diff --git a/idp-duo-api/src/test/java/net/shibboleth/idp/plugin/authn/duo/TestResourceConverter.java b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/spring/TestResourceConverter.java
similarity index 98%
rename from idp-duo-api/src/test/java/net/shibboleth/idp/plugin/authn/duo/TestResourceConverter.java
rename to idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/spring/TestResourceConverter.java
index 8b3a1b26..36f09e5e 100644
--- a/idp-duo-api/src/test/java/net/shibboleth/idp/plugin/authn/duo/TestResourceConverter.java
+++ b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/spring/TestResourceConverter.java
@@ -12,7 +12,7 @@
  * limitations under the License.
  */
 
-package net.shibboleth.idp.plugin.authn.duo;
+package net.shibboleth.idp.plugin.authn.spring;
 
 import java.io.File;
 import java.io.IOException;

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


More information about the commits mailing list