From ca79acec74cef8aeaa9274d3ce3a79657de755af Mon Sep 17 00:00:00 2001 From: Yuriy Movchan Date: Fri, 17 Jan 2025 01:23:02 +0300 Subject: [PATCH] feat(jans-auth): log current folder in UserJansExtUidAttributeTest test * feat(jans-auth): log current folder in UserJansExtUidAttributeTest test Signed-off-by: Yuriy Movchan * feat(jans-auth): log current folder in UserJansExtUidAttributeTest test Signed-off-by: Yuriy Movchan * feat(jans-auth): log current folder in UserJansExtUidAttributeTest test Signed-off-by: Yuriy Movchan * feat(jans-auth): log current folder in UserJansExtUidAttributeTest test Signed-off-by: Yuriy Movchan --------- Signed-off-by: Yuriy Movchan --- .../jans/as/server/comp/db/UserJansExtUidAttributeTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jans-auth-server/server/src/test/java/io/jans/as/server/comp/db/UserJansExtUidAttributeTest.java b/jans-auth-server/server/src/test/java/io/jans/as/server/comp/db/UserJansExtUidAttributeTest.java index ce6a859438e..800133aa225 100644 --- a/jans-auth-server/server/src/test/java/io/jans/as/server/comp/db/UserJansExtUidAttributeTest.java +++ b/jans-auth-server/server/src/test/java/io/jans/as/server/comp/db/UserJansExtUidAttributeTest.java @@ -11,6 +11,7 @@ import static org.junit.jupiter.api.Assertions.assertNull; import java.io.File; +import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import java.util.Properties; @@ -87,10 +88,9 @@ public static void init() { @Produces @ApplicationScoped public StringEncrypter getStringEncrypter() throws EncryptionException { - log.info("Current folder: {}", (new File(".").getAbsolutePath())); - System.out.println("Current folder: {}" +(new File(".").getAbsolutePath())); + String saltFilePath = Paths.get(Paths.get("").toAbsolutePath().toString(), "target/conf/salt").toAbsolutePath().toString(); + FileConfiguration cryptoConfiguration = new FileConfiguration(saltFilePath); - FileConfiguration cryptoConfiguration = new FileConfiguration("./target/conf/salt"); String encodeSalt = cryptoConfiguration.getString("encodeSalt"); return StringEncrypter.instance(encodeSalt);