From 4837ce6109392d64422470a51318ab1b586d436f Mon Sep 17 00:00:00 2001 From: PALASH2201 Date: Sun, 13 Oct 2024 23:17:00 +0530 Subject: [PATCH] Fixed severity posed by sonarqube --- caching/.env.example | 4 + caching/.gitignore | 3 + caching/pom.xml | 27 ++++++- .../iluwatar/caching/database/MongoDb.java | 78 +++++++++++++++---- .../caching/database/MongoDbTest.java | 44 +++++++++-- 5 files changed, 128 insertions(+), 28 deletions(-) create mode 100644 caching/.env.example diff --git a/caching/.env.example b/caching/.env.example new file mode 100644 index 000000000000..00494198c5f3 --- /dev/null +++ b/caching/.env.example @@ -0,0 +1,4 @@ +MONGO_USER= +MONGO_PASSWORD= +MONGO_DB_NAME= +MONGO_DB_PORT= diff --git a/caching/.gitignore b/caching/.gitignore index b83d22266ac8..ba5b6ac0c701 100644 --- a/caching/.gitignore +++ b/caching/.gitignore @@ -1 +1,4 @@ /target/ + +### ENV Files ### +.env \ No newline at end of file diff --git a/caching/pom.xml b/caching/pom.xml index d7470b5e46d8..4e31f1c6bcfd 100644 --- a/caching/pom.xml +++ b/caching/pom.xml @@ -47,11 +47,30 @@ org.mongodb bson + 4.9.0 - - org.mongodb - mongodb-driver-legacy - + + org.mongodb + mongodb-driver-sync + 4.9.0 + + + org.mongodb + mongodb-driver-core + 4.9.0 + + + io.github.cdimascio + java-dotenv + 5.2.2 + + + org.projectlombok + lombok + 1.18.30 + provided + +