From 93722f9202d0f487dd1aceb2f40e88dd8f5f128c Mon Sep 17 00:00:00 2001 From: Shadi Haidar Date: Thu, 6 Feb 2020 10:48:20 -0500 Subject: Get keyStorePassword from file Instead of storing actual passsword in config file's keyStorePassword get the path to the password file from keyStorePassword and create a new config file with actual password in keyStorePassword then continue with normal application startup This also has bug fix for log errors per DCAEGEN2-2086; where logs dir and files are not getting created due to inventory user not having permissions to create dir/logs under /opt/logs/ Issue-ID: DCAEGEN2-2017 Issue-ID: DCAEGEN2-2086 Signed-off-by: Shadi Haidar Change-Id: I45b5867e9f73b9355c0fa2a0be18cf610291511d Signed-off-by: Shadi Haidar --- .../java/org/onap/dcae/inventory/InventoryApplicationTest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/test/java/org/onap/dcae/inventory/InventoryApplicationTest.java') diff --git a/src/test/java/org/onap/dcae/inventory/InventoryApplicationTest.java b/src/test/java/org/onap/dcae/inventory/InventoryApplicationTest.java index 8011452..aacbd25 100644 --- a/src/test/java/org/onap/dcae/inventory/InventoryApplicationTest.java +++ b/src/test/java/org/onap/dcae/inventory/InventoryApplicationTest.java @@ -59,13 +59,7 @@ public class InventoryApplicationTest { String userArgs[] = {"server"}; assertEquals(InventoryApplication.processArgs(userArgs).length, 2); - userArgs = new String[] {"server some-yaml.yaml"}; - assertArrayEquals(InventoryApplication.processArgs(userArgs), userArgs); - - userArgs = new String[] {"foo"}; - assertArrayEquals(InventoryApplication.processArgs(userArgs), userArgs); - - userArgs = new String[] {"foo bar"}; + userArgs = new String[] {"server", "some-junit-yaml.yaml"}; assertArrayEquals(InventoryApplication.processArgs(userArgs), userArgs); } -- cgit 1.2.3-korg