diff options
author | Thomas <> | 2023-01-26 12:28:25 +0100 |
---|---|---|
committer | Thomas <> | 2023-01-26 12:28:25 +0100 |
commit | b732517662feb33f39f78ef94a3ef7f466924fa2 (patch) | |
tree | a93e15314530755f78d27ea02e91da6de6c844ea /modules/authmodule-eIDAS-v2/src | |
parent | d5dcae56c565d1ee464b9d679f4993f30b101f3b (diff) | |
download | National_eIDAS_Gateway-b732517662feb33f39f78ef94a3ef7f466924fa2.tar.gz National_eIDAS_Gateway-b732517662feb33f39f78ef94a3ef7f466924fa2.tar.bz2 National_eIDAS_Gateway-b732517662feb33f39f78ef94a3ef7f466924fa2.zip |
test(ernp): add test-case that requests MDS for Austrian test-identity
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src')
2 files changed, 42 insertions, 0 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/clients/ErnpRestClientProductionTest.java b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/clients/ErnpRestClientProductionTest.java index b834eb23..091f72a2 100644 --- a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/clients/ErnpRestClientProductionTest.java +++ b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/clients/ErnpRestClientProductionTest.java @@ -118,6 +118,33 @@ public class ErnpRestClientProductionTest { } + @Test + @SneakyThrows + public void searchWithMdsElga() { + final String personalIdentifierFirst = "7cEYWithDEElementsasdfsafsaf4CDVzNT4E7cjkU4VqForjUnit"; + final String cc = "CZ"; + final SimpleEidasData eidasDataFirst = SimpleEidasData.builder() + .citizenCountryCode(cc) + .familyName("ALLWGeppert ELGATest") + .givenName("Amèlîè Halina") + .dateOfBirth("1943-07-03") + .personalIdentifier(cc + "/AT/" + personalIdentifierFirst) + .pseudonym(personalIdentifierFirst) + .build(); + + // execute operation + ErnpRegisterResult resp = client.searchWithMds(eidasDataFirst.getGivenName(), eidasDataFirst.getFamilyName(), + eidasDataFirst.getDateOfBirth(), eidasDataFirst.getCitizenCountryCode()); + + // validate state + assertNotNull("no ERnP response", resp); + assertEquals("wrong resp size", 1, resp.getPersonResult().size()); + checkErnpResult(resp.getPersonResult().get(0), eidasDataFirst, 1); + assertEquals("wrong bpk", "vypyCkyczK7i+cgPWlJasuJphIA=", + resp.getPersonResult().get(0).getBpk()); + + } + @Ignore @Test @SneakyThrows diff --git a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/clients/ZmrClientProductionTest.java b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/clients/ZmrClientProductionTest.java index b6bdafdc..aa5aee6f 100644 --- a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/clients/ZmrClientProductionTest.java +++ b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/clients/ZmrClientProductionTest.java @@ -78,6 +78,21 @@ public class ZmrClientProductionTest { } + @Ignore + @Test + public void searchWithMdsOnlyTestIdentityElga() throws EidasSAuthenticationException { + + final ZmrRegisterResult result = client.searchWithMds(null, + "ALLWGeppert ELGATest", "Amèlîè Halina", "1943-07-03", + "AT"); + + assertNotNull("ZMR response", result); + assertNotNull("ZMR processId", result.getProcessId()); + assertNotNull("ZMR personResult", result.getPersonResult()); + assertEquals("personResult size", 1, result.getPersonResult().size()); + + } + @Test public void searchWithMdsOnlyTestIdentity() throws EidasSAuthenticationException { |