diff options
author | Thomas <> | 2022-03-10 09:53:05 +0100 |
---|---|---|
committer | Thomas <> | 2022-03-10 09:53:05 +0100 |
commit | 0735a9bb3c338ff80d12156f0904a0714bdf16c3 (patch) | |
tree | cd52eead8c729368336af45e48f78038ed92cd0f /modules/authmodule-eIDAS-v2/src/test/java | |
parent | 9c57501bafec01eb327905a06d757d8ad6cdce68 (diff) | |
download | National_eIDAS_Gateway-0735a9bb3c338ff80d12156f0904a0714bdf16c3.tar.gz National_eIDAS_Gateway-0735a9bb3c338ff80d12156f0904a0714bdf16c3.tar.bz2 National_eIDAS_Gateway-0735a9bb3c338ff80d12156f0904a0714bdf16c3.zip |
fix(core): add missing relayState and store pendingRequest in case of ms-connector staging work-around
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/ReceiveEidasResponseTaskTest.java | 3 |
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/ReceiveEidasResponseTaskTest.java b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveEidasResponseTaskTest.java index ba77610a..47ad5cbd 100644 --- a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveEidasResponseTaskTest.java +++ b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveEidasResponseTaskTest.java @@ -160,6 +160,9 @@ public class ReceiveEidasResponseTaskTest { 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")); |