From ef1781a5fb460f360934d1cdd0db76346387da22 Mon Sep 17 00:00:00 2001 From: Zeeshan Mehboob Date: Tue, 3 Dec 2024 18:42:37 +0530 Subject: [PATCH] [RENAMED] KBA to KBI, and error msg to challenge_format Signed-off-by: Zeeshan Mehboob --- .../esignet/plugin/mock/service/MockHelperServiceTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mock-plugin/src/test/java/io/mosip/esignet/plugin/mock/service/MockHelperServiceTest.java b/mock-plugin/src/test/java/io/mosip/esignet/plugin/mock/service/MockHelperServiceTest.java index b73f1f2..a41e6a1 100644 --- a/mock-plugin/src/test/java/io/mosip/esignet/plugin/mock/service/MockHelperServiceTest.java +++ b/mock-plugin/src/test/java/io/mosip/esignet/plugin/mock/service/MockHelperServiceTest.java @@ -60,7 +60,7 @@ public void setUp() throws Exception { supportedKycAuthFormats.put("PIN", List.of("number")); supportedKycAuthFormats.put("BIO", List.of("encoded-json")); supportedKycAuthFormats.put("WLA", List.of("jwt")); - supportedKycAuthFormats.put("KBA", List.of("base64url-encoded-json")); + supportedKycAuthFormats.put("KBI", List.of("base64url-encoded-json")); supportedKycAuthFormats.put("PWD", List.of("alpha-numeric")); // Get the field @@ -309,7 +309,7 @@ public void doKycAuthMock_withInValidAuthChallenge_thenFail() { KycAuthDto kycAuthDto = new KycAuthDto(); // Assume this is properly initialized AuthChallenge authChallenge = new AuthChallenge(); - authChallenge.setAuthFactorType("KBA"); + authChallenge.setAuthFactorType("KBI"); authChallenge.setChallenge("e3dq.2ef.3ww23"); authChallenge.setFormat("jwt"); kycAuthDto.setChallengeList(List.of(authChallenge)); @@ -317,7 +317,7 @@ public void doKycAuthMock_withInValidAuthChallenge_thenFail() { try{ mockHelperService.doKycAuthMock("relyingPartyId", "clientId", kycAuthDto, true); }catch (KycAuthException e){ - Assert.assertEquals(e.getErrorCode(),"invalid_auth_challenge"); + Assert.assertEquals(e.getErrorCode(),"invalid_challenge_format"); } }