[java-idp-plugin-duo] branch main updated: Fix tests
Phil Smart
philip.smart at jisc.ac.uk
Thu Nov 17 13:42:56 UTC 2022
This is an automated email from the git hooks/post-receive script.
philsmart 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=c0e2aac26fe5cc3176faa827ef3be329d672b27e
The following commit(s) were added to refs/heads/main by this push:
new c0e2aac Fix tests
c0e2aac is described below
commit c0e2aac26fe5cc3176faa827ef3be329d672b27e
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Thu Nov 17 13:42:51 2022 +0000
Fix tests
---
.../plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
index add6ca8..3d4b107 100644
--- a/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
+++ b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
@@ -84,6 +84,9 @@ import net.shibboleth.idp.session.context.SessionContext;
import net.shibboleth.idp.ui.context.RelyingPartyUIContext;
import net.shibboleth.utilities.java.support.annotation.constraint.NonnullElements;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.net.HttpServletRequestResponseContext;
+import net.shibboleth.utilities.java.support.net.ThreadLocalHttpServletRequestProxy;
+import net.shibboleth.utilities.java.support.net.ThreadLocalHttpServletResponseProxy;
import net.shibboleth.utilities.java.support.security.impl.SecureRandomIdentifierGenerationStrategy;
@@ -391,8 +394,8 @@ public abstract class AbstractAuthnXmlFlowExecutionTests extends CustomAbstractX
builderContext.registerBean("shibboleth.DefaultIdentifierGenerationStrategy",
new SecureRandomIdentifierGenerationStrategy());
- builderContext.registerBean("shibboleth.HttpServletRequest",mockRequest);
- builderContext.registerBean("shibboleth.HttpServletResponse", mockResponse);
+ // Load the request and response context into the holder.
+ HttpServletRequestResponseContext.loadCurrent(mockRequest, mockResponse);
builderContext.registerBean("shibboleth.PostLoginSubjectCanonicalizationFlows", Collections.emptyList());
//create a real JSON parser
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list