diff options
author | Shadi Haidar <sh1986@att.com> | 2020-02-06 10:48:20 -0500 |
---|---|---|
committer | Shadi Haidar <sh1986@att.com> | 2020-02-18 12:15:44 -0500 |
commit | 93722f9202d0f487dd1aceb2f40e88dd8f5f128c (patch) | |
tree | c8abf2c2fbac1b008a0e77103968f764d7fa9084 /src/test | |
parent | 93aec8271137e65101063d5d666c62d1e70109c8 (diff) |
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 <sh1986@att.com>
Change-Id: I45b5867e9f73b9355c0fa2a0be18cf610291511d
Signed-off-by: Shadi Haidar <sh1986@att.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/onap/dcae/inventory/InventoryApplicationTest.java | 8 |
1 files changed, 1 insertions, 7 deletions
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); } |