Fix Unit test logging failure 77/14877/1
authoraravind.est <aravindhan.a@est.tech>
Fri, 5 Sep 2025 18:23:36 +0000 (19:23 +0100)
committeraravind.est <aravindhan.a@est.tech>
Fri, 5 Sep 2025 18:28:10 +0000 (19:28 +0100)
commit3697ae0f1af719e4382a37f85f97e44393b44fef
tree7254fc0f6315fec156453683578eb05278f4762e
parentb9ee6ce1869d834eb626a33d87ce94c167bac230
Fix Unit test logging failure

Spring Boot Version 3.2.0(Last used before upgrade) contains logback library version 1.4.11.
logback version 1.4.11 is vulnerable to CVE-2023-6378. This CVE is related to creating missing parent directories.
It is fixed as part of 1.4.12+ (https://github.com/advisories/GHSA-vmq6-5m68-f53m). The fix is to avoid creating missing parent directories.

We are getting couple of reports related to this issue in the ApplicationTest unit test(After Spring Boot upgrade to 3.5.5 (Which includes logback 1.5.18)).

So the fix is to introduce a temporary application log file for the unit test.

This doesn't happen when running this container because the /var/log/information-coordinator-service is created as part of the Docker build (In Dockerfile).

Issue-ID: INT-193
Change-Id: I63088541045b3faf0038223c4e81f7ab35d7a878
Signed-off-by: aravind.est <aravindhan.a@est.tech>
src/test/java/org/oransc/ics/ApplicationTest.java