From 53b8193d4b378fb9eab3d5e1de1a8e2ec798567f Mon Sep 17 00:00:00 2001 From: LarissaASLeite Date: Fri, 10 May 2024 09:48:08 +0200 Subject: [PATCH] P4ADEV-24P4ADEV-248-creation-api-get-token-selfcare tests --- build.gradle | 5 +---- .../it/gov/pagopa/payhub/auth/service/AuthServiceImpl.java | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 939facec..511a36df 100644 --- a/build.gradle +++ b/build.gradle @@ -85,13 +85,10 @@ test { jacocoTestReport { dependsOn test reports { - html.enabled = true - xml.enabled = true - csv.enabled = false + xml.required = true } } - processResources { expand(project.properties) exclude 'logback-spring.xml' diff --git a/src/main/java/it/gov/pagopa/payhub/auth/service/AuthServiceImpl.java b/src/main/java/it/gov/pagopa/payhub/auth/service/AuthServiceImpl.java index 0c3bdf4a..87b49761 100644 --- a/src/main/java/it/gov/pagopa/payhub/auth/service/AuthServiceImpl.java +++ b/src/main/java/it/gov/pagopa/payhub/auth/service/AuthServiceImpl.java @@ -32,5 +32,6 @@ public void authToken(String token) { if (!(data.get("aud").equals(audience) && data.get("iss").equals(issuer))){ throw new InvalidTokenException("Invalid audience or issuer in the token"); } + log.info("Token validated successfully"); } }