Improve paths validation and creation in certServiceClient, improve coverage
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>
Fri, 28 Feb 2020 11:27:12 +0000 (12:27 +0100)
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>
Wed, 4 Mar 2020 13:20:55 +0000 (14:20 +0100)
commitd18af899b0bb9813c3e1bc3111171787e85ccfc4
tree2580993897a464b0a8749d7473f67dc37171227a
parent1d535a1b38e26c7035db2bde7405261d97bf7261
Improve paths validation and creation in certServiceClient, improve coverage

Add tests for path validation
Add tests for CsrConfigurationFactory
Ensure path from env can end with "/"
Ensure path built in file creator is not dependent on representation of root path

Issue-ID: AAF-996
Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
Change-Id: I3d6a7f534d49ff64177917989727a7330e3f6869
certServiceClient/pom.xml
certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/PKCS12FilesCreator.java
certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvValidationUtils.java
certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvValidationUtilsTest.java [new file with mode: 0644]
certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/model/CsrConfigurationFactoryTest.java
pom.xml