aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/test/java
diff options
context:
space:
mode:
authorThomas <>2022-03-10 10:42:56 +0100
committerThomas <>2022-03-10 10:42:56 +0100
commit8af25296dddd9cf3c43931f8cb4d552bb94ebf3d (patch)
tree802ec5cc965c0f02346c5790123f2a8b1126613d /modules/authmodule-eIDAS-v2/src/test/java
parent299c7c03abdae50b42bd917197ead682933847e0 (diff)
downloadNational_eIDAS_Gateway-8af25296dddd9cf3c43931f8cb4d552bb94ebf3d.tar.gz
National_eIDAS_Gateway-8af25296dddd9cf3c43931f8cb4d552bb94ebf3d.tar.bz2
National_eIDAS_Gateway-8af25296dddd9cf3c43931f8cb4d552bb94ebf3d.zip
fix(matching): store pendingRequest and set relayState again in case of ms-connector staging
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src/test/java')
-rw-r--r--modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAuthnResponseTaskTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAuthnResponseTaskTest.java b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAuthnResponseTaskTest.java
index 87681435..a67b7f27 100644
--- a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAuthnResponseTaskTest.java
+++ b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAuthnResponseTaskTest.java
@@ -156,6 +156,9 @@ public class ReceiveAuthnResponseTaskTest {
Assert.assertEquals("msConnectorStage", true,
(Boolean) executionContext.get(MsEidasNodeConstants.EXECCONTEXT_PARAM_MSCONNECTOR_STAGING));
+ IRequest storedReq = storage.getPendingRequest(pendingReq.getPendingRequestId());
+ Assert.assertNotNull("pendingReq not stored", storedReq);
+
//validate state
Assert.assertEquals("Wrong http statusCode", 302, httpResp.getStatus());
Assert.assertNotNull("No redirect header", httpResp.getHeaderValue("Location"));